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..8f336f2feb6d8213c7f38599c4be5611b19bebc4 100644 |
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp |
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp |
@@ -302,7 +302,7 @@ void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const L |
} |
if (backgroundRepeatX == RepeatFill) { |
- int xOffset = fillLayer.backgroundXOrigin() == RightEdge ? availableWidth - computedXPosition : computedXPosition; |
+ LayoutUnit xOffset = fillLayer.backgroundXOrigin() == RightEdge ? availableWidth - computedXPosition : computedXPosition; |
setPhaseX(tileSize().width() ? tileSize().width() - roundToInt(xOffset + left) % tileSize().width() : 0); |
setSpaceSize(IntSize()); |
} else if (backgroundRepeatX == SpaceFill && fillTileSize.width() > 0) { |
@@ -318,13 +318,13 @@ void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const L |
} |
} |
if (backgroundRepeatX == NoRepeatFill) { |
- int xOffset = fillLayer.backgroundXOrigin() == RightEdge ? availableWidth - computedXPosition : computedXPosition; |
+ LayoutUnit xOffset = fillLayer.backgroundXOrigin() == RightEdge ? availableWidth - computedXPosition : computedXPosition; |
setNoRepeatX(left + xOffset); |
setSpaceSize(IntSize(0, spaceSize().height())); |
} |
if (backgroundRepeatY == RepeatFill) { |
- int yOffset = fillLayer.backgroundYOrigin() == BottomEdge ? availableHeight - computedYPosition : computedYPosition; |
+ LayoutUnit yOffset = fillLayer.backgroundYOrigin() == BottomEdge ? availableHeight - computedYPosition : computedYPosition; |
setPhaseY(tileSize().height() ? tileSize().height() - roundToInt(yOffset + top) % tileSize().height() : 0); |
setSpaceSize(IntSize(spaceSize().width(), 0)); |
} else if (backgroundRepeatY == SpaceFill && fillTileSize.height() > 0) { |
@@ -340,7 +340,7 @@ void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const L |
} |
} |
if (backgroundRepeatY == NoRepeatFill) { |
- int yOffset = fillLayer.backgroundYOrigin() == BottomEdge ? availableHeight - computedYPosition : computedYPosition; |
+ LayoutUnit yOffset = fillLayer.backgroundYOrigin() == BottomEdge ? availableHeight - computedYPosition : computedYPosition; |
setNoRepeatY(top + yOffset); |
setSpaceSize(IntSize(spaceSize().width(), 0)); |
} |