Bug 1486477 - Initialize nsDisplayCanvasThemedBackground properly r=mattwoodrow
authorMiko Mynttinen <mikokm@gmail.com>
Thu, 30 Aug 2018 00:01:45 +0000
changeset 482334 24e01317f8c2ab542de4f63304b1a0d23c3dfbd5
parent 482333 76ccb62dd14d57f1fdb8e9448b97eb06500ba9d7
child 482335 872ea5bd5a172c4c0d8bb65f9b064c8e9568f144
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersmattwoodrow
bugs1486477
milestone63.0a1
Bug 1486477 - Initialize nsDisplayCanvasThemedBackground properly r=mattwoodrow Differential Revision: https://phabricator.services.mozilla.com/D4438
layout/generic/nsCanvasFrame.h
--- a/layout/generic/nsCanvasFrame.h
+++ b/layout/generic/nsCanvasFrame.h
@@ -221,16 +221,18 @@ public:
   NS_DISPLAY_DECL_NAME("CanvasBackgroundImage", TYPE_CANVAS_BACKGROUND_IMAGE)
 };
 
 class nsDisplayCanvasThemedBackground : public nsDisplayThemedBackground {
 public:
   nsDisplayCanvasThemedBackground(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame)
     : nsDisplayThemedBackground(aBuilder, aFrame,
                                 aFrame->GetRectRelativeToSelf() + aBuilder->ToReferenceFrame(aFrame))
-  {}
+  {
+    nsDisplayThemedBackground::Init(aBuilder);
+  }
 
   virtual void Paint(nsDisplayListBuilder* aBuilder, gfxContext* aCtx) override;
 
   NS_DISPLAY_DECL_NAME("CanvasThemedBackground", TYPE_CANVAS_THEMED_BACKGROUND)
 };
 
 #endif /* nsCanvasFrame_h___ */