Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: third_party/WebKit/Source/core/paint/BoxPainter.cpp

Issue 1367193003: NOT FOR LANDING Allocate SVGImageForContainer on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some NeedsRebaseline and revived some LayoutListMarker code that turned out to be important Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/BoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxPainter.cpp b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
index a4e829f2a8703a4084df1fc5648e4860cc61a7e7..2e390b691491decf9b16a188508816bd9fb9583e 100644
--- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
@@ -464,7 +464,7 @@ void BoxPainter::paintFillLayerExtended(const LayoutBoxModelObject& obj, const P
// if op != SkXfermode::kSrcOver_Mode, a mask is being painted.
SkXfermode::Mode compositeOp = op == SkXfermode::kSrcOver_Mode ? bgOp : op;
const LayoutObject* clientForBackgroundImage = backgroundObject ? backgroundObject : &obj;
- RefPtr<Image> image = bgImage->image(clientForBackgroundImage, geometry.tileSize());
+ RefPtr<Image> image = bgImage->image(clientForBackgroundImage, geometry.tileSize(), obj.style()->effectiveZoom(), bgImage->url());
InterpolationQuality interpolationQuality = chooseInterpolationQuality(*clientForBackgroundImage, context, image.get(), &bgLayer, LayoutSize(geometry.tileSize()));
if (bgLayer.maskSourceType() == MaskLuminance)
context->setColorFilter(ColorFilterLuminanceToAlpha);

Powered by Google App Engine
This is Rietveld 408576698