Index: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp |
index d9fb1bd39c6ea698f61867ff0f09ddbc133df42d..a75829e3e215c3381a449cc285a0728d8502220d 100644 |
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp |
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp |
@@ -170,8 +170,7 @@ void BackgroundImageGeometry::clip(const IntRect& clipRect) |
} |
void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const LayoutBoxModelObject* paintContainer, |
- const GlobalPaintFlags globalPaintFlags, const FillLayer& fillLayer, const LayoutRect& paintRect, |
- const LayoutObject* backgroundObject) |
+ const GlobalPaintFlags globalPaintFlags, const FillLayer& fillLayer, const LayoutRect& paintRect) |
{ |
LayoutUnit left = 0; |
LayoutUnit top = 0; |
@@ -257,10 +256,8 @@ void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const L |
positioningAreaSize = destRect().size(); |
} |
- const LayoutObject* clientForBackgroundImage = backgroundObject ? backgroundObject : &obj; |
IntSize fillTileSize = calculateFillTileSize(positioningBox, fillLayer, positioningAreaSize); |
- fillLayer.image()->setContainerSizeForLayoutObject(clientForBackgroundImage, fillTileSize, obj.style()->effectiveZoom()); |
- setTileSize(fillTileSize); |
+ setTileSizeBeforeRound(fillTileSize); |
EFillRepeat backgroundRepeatX = fillLayer.repeatX(); |
EFillRepeat backgroundRepeatY = fillLayer.repeatY(); |