| 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 3b1f0b38ee6dabdfe748554c65791d4706b57fe1..c56ba6aef747f79079e4d69b08dc94241e8f2e73 100644
|
| --- a/third_party/WebKit/Source/core/paint/BoxPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/BoxPainter.cpp
|
| @@ -437,7 +437,7 @@ void BoxPainter::paintFillLayerExtended(const LayoutBoxModelObject& obj, const P
|
|
|
| BackgroundImageGeometry geometry;
|
| if (bgImage)
|
| - geometry.calculate(obj, paintInfo.paintContainer(), paintInfo.globalPaintFlags(), bgLayer, scrolledPaintRect, backgroundObject);
|
| + geometry.calculate(obj, paintInfo.paintContainer(), paintInfo.globalPaintFlags(), bgLayer, scrolledPaintRect);
|
| bool shouldPaintBackgroundImage = bgImage && bgImage->canRender(obj, obj.style()->effectiveZoom());
|
|
|
| // Paint the color first underneath all images, culled if background image occludes it.
|
| @@ -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.imageContainerSize(), obj.style()->effectiveZoom());
|
| InterpolationQuality interpolationQuality = chooseInterpolationQuality(*clientForBackgroundImage, context, image.get(), &bgLayer, LayoutSize(geometry.tileSize()));
|
| if (bgLayer.maskSourceType() == MaskLuminance)
|
| context->setColorFilter(ColorFilterLuminanceToAlpha);
|
|
|