Bug 1265715 - followup - Correct dirty region; r=me, a=lizzard
authorCJKu <cku@mozilla.com>
Wed, 04 May 2016 03:55:26 +0800
changeset 332778 307b5eca8726f6a72a1d69ba76630a6dbf402477
parent 332777 90495a003e1d66fb1207cca2afc1bc2cdb959d10
child 332779 1010a952f966ffc7ff17cd1ae1f3e8bb61cd39ae
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, lizzard
bugs1265715
milestone48.0a2
Bug 1265715 - followup - Correct dirty region; r=me, a=lizzard MozReview-Commit-ID: 5iI8Cg5wry6
layout/base/nsDisplayList.cpp
--- a/layout/base/nsDisplayList.cpp
+++ b/layout/base/nsDisplayList.cpp
@@ -505,17 +505,18 @@ ClipBackgroundByText(nsIFrame* aFrame, n
   // so we get images embedded in text shape!
 
   gfxContext* ctx = aContext->ThebesContext();
   gfxContextMatrixAutoSaveRestore save(ctx);
   gfxRect bounds = nsLayoutUtils::RectToGfxRect(aFillRect, aFrame->PresContext()->AppUnitsPerDevPixel());
   ctx->SetMatrix(ctx->CurrentMatrix().Translate(bounds.TopLeft()));
   ctx->NewPath();
 
-  nsLayoutUtils::PaintFrame(aContext, aFrame, aFrame->GetRect(),
+  nsLayoutUtils::PaintFrame(aContext, aFrame,
+                            nsRect(nsPoint(0, 0), aFrame->GetSize()),
                             NS_RGB(255, 255, 255),
                             nsDisplayListBuilderMode::GENERATE_GLYPH, 0);
 
   ctx->Clip();
 }
 
 /* static */ void
 nsDisplayListBuilder::AddAnimationsAndTransitionsToLayer(Layer* aLayer,