From 205642625c1dce14f7f2a0a1586dbc47d16febfe Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Mon, 7 Jul 2014 17:46:28 +1200 Subject: [PATCH] Bug 1022612. Part 13: Set mDidComputeVisibility in ProcessDisplayItems. r=mattwoodrow --HG-- extra : rebase_source : c1a929e549c437388aa308b3dfda68b923eb0236 --- layout/base/FrameLayerBuilder.cpp | 1 + layout/base/nsDisplayList.h | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index f46bb6245db2..aa44cc0c487e 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -2750,6 +2750,7 @@ ContainerState::ProcessDisplayItems(nsDisplayList* aList, } aList->AppendToTop(&savedItems); + aList->SetDidComputeVisibility(); } void diff --git a/layout/base/nsDisplayList.h b/layout/base/nsDisplayList.h index a2f11ed44d06..253edaf3cd8a 100644 --- a/layout/base/nsDisplayList.h +++ b/layout/base/nsDisplayList.h @@ -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: