Bug 1417411 - Invalidate nsDisplayPerspective items when the inner transform frame changes. r=miko a=gchang
authorMatt Woodrow <mwoodrow@mozilla.com>
Sat, 18 Nov 2017 10:57:46 +1300
changeset 442521 3480ca96e9cd95c0c889899a07d8b738c594c517
parent 442520 ad61044a4ba8ce0077c8ad6a415a0555fd8fac7c
child 442522 f24456236534520e2c381c765fcfd7a775fbc5cd
push id8239
push userarchaeopteryx@coole-files.de
push dateMon, 27 Nov 2017 10:55:23 +0000
treeherdermozilla-beta@66c82ad8b8a9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmiko, gchang
bugs1417411
milestone58.0
Bug 1417411 - Invalidate nsDisplayPerspective items when the inner transform frame changes. r=miko a=gchang
layout/painting/nsDisplayList.h
--- a/layout/painting/nsDisplayList.h
+++ b/layout/painting/nsDisplayList.h
@@ -6186,16 +6186,18 @@ public:
 
   virtual nsRect GetComponentAlphaBounds(nsDisplayListBuilder* aBuilder) const override
   {
     return mList.GetComponentAlphaBounds(aBuilder);
   }
 
   nsIFrame* TransformFrame() { return mTransformFrame; }
 
+  virtual nsIFrame* FrameForInvalidation() const override { return mTransformFrame; }
+
   virtual int32_t ZIndex() const override;
 
   virtual void
   DoUpdateBoundsPreserves3D(nsDisplayListBuilder* aBuilder) override {
     if (mList.GetChildren()->GetTop()) {
       static_cast<nsDisplayTransform*>(mList.GetChildren()->GetTop())->DoUpdateBoundsPreserves3D(aBuilder);
     }
   }