Bug 1022612. Part 13: Set mDidComputeVisibility in ProcessDisplayItems. r=mattwoodrow

--HG--
extra : rebase_source : c1a929e549c437388aa308b3dfda68b923eb0236
This commit is contained in:
Robert O'Callahan 2014-07-07 17:46:28 +12:00
parent 54efd05508
commit 205642625c
2 changed files with 12 additions and 0 deletions

View File

@ -2750,6 +2750,7 @@ ContainerState::ProcessDisplayItems(nsDisplayList* aList,
}
aList->AppendToTop(&savedItems);
aList->SetDidComputeVisibility();
}
void

View File

@ -1704,10 +1704,21 @@ public:
bool DidComputeVisibility() const { return mDidComputeVisibility; }
#endif
void SetDidComputeVisibility()
{
#if defined(DEBUG) || defined(MOZ_DUMP_PAINTING)
mDidComputeVisibility = true;
#endif
}
void SetIsOpaque()
{
mIsOpaque = true;
}
void SetNeedsTransparentSurface()
{
mForceTransparentSurface = true;
}
nsRect GetVisibleRect() const { return mVisibleRect; }
private: