Bug 1458993 - Use correct bounds for WR solid color. r=miko
authorMatt Woodrow <mwoodrow@mozilla.com>
Thu, 22 Nov 2018 22:15:34 +0000
changeset 504200 8e32d7856fd8675929fb2521d022823bd43b4850
parent 504199 a5d7f9ff483baf1e9c238740518b0a35cc837204
child 504201 c8e66d503efd9abe025e5217198d06f6655e7b6b
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmiko
bugs1458993
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1458993 - Use correct bounds for WR solid color. r=miko MozReview-Commit-ID: Gp5C4v8qJXI Differential Revision: https://phabricator.services.mozilla.com/D12713
layout/painting/nsDisplayList.cpp
--- a/layout/painting/nsDisplayList.cpp
+++ b/layout/painting/nsDisplayList.cpp
@@ -3576,17 +3576,17 @@ bool
 nsDisplaySolidColor::CreateWebRenderCommands(
   mozilla::wr::DisplayListBuilder& aBuilder,
   mozilla::wr::IpcResourceUpdateQueue& aResources,
   const StackingContextHelper& aSc,
   mozilla::layers::WebRenderLayerManager* aManager,
   nsDisplayListBuilder* aDisplayListBuilder)
 {
   LayoutDeviceRect bounds = LayoutDeviceRect::FromAppUnits(
-    GetPaintRect(), mFrame->PresContext()->AppUnitsPerDevPixel());
+    mBounds, mFrame->PresContext()->AppUnitsPerDevPixel());
   wr::LayoutRect roundedRect = wr::ToRoundedLayoutRect(bounds);
 
   aBuilder.PushRect(roundedRect,
                     roundedRect,
                     !BackfaceIsHidden(),
                     wr::ToColorF(ToDeviceColor(mColor)));
 
   return true;