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

--HG--
extra : rebase_source : 456aaeba5a9bb3e8d34e0d900dd693f337cf2b12
This commit is contained in:
Robert O'Callahan 2014-07-07 17:46:28 +12:00
parent 6c54f5517c
commit 2d1cc777ee
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: