diff --git a/layout/base/nsDisplayList.h b/layout/base/nsDisplayList.h index 64fbf667b81e..e0631bf1e314 100644 --- a/layout/base/nsDisplayList.h +++ b/layout/base/nsDisplayList.h @@ -3589,28 +3589,20 @@ class nsDisplayTransform: public nsDisplayItem public: StoreList(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame, nsDisplayList* aList) : - nsDisplayWrapList(aBuilder, aFrame, aList), - mHasBounds(false) {} + nsDisplayWrapList(aBuilder, aFrame, aList) {} StoreList(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame, nsDisplayItem* aItem) : - nsDisplayWrapList(aBuilder, aFrame, aItem), - mHasBounds(false) {} + nsDisplayWrapList(aBuilder, aFrame, aItem) {} virtual ~StoreList() {} virtual void UpdateBounds(nsDisplayListBuilder* aBuilder) override {} virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder, bool* aSnap) override { - if (!mHasBounds) { - // The bounds should not be computed until now, because we don't - // get accmulated transform before. - nsDisplayWrapList::UpdateBounds(aBuilder); - mHasBounds = true; - } + // The bounds should not be computed until now, because we don't + // get accmulated transform before. + nsDisplayWrapList::UpdateBounds(aBuilder); return nsDisplayWrapList::GetBounds(aBuilder, aSnap); } - - private: - bool mHasBounds; }; public: