Index: Source/core/paint/BoxPainter.cpp |
diff --git a/Source/core/paint/BoxPainter.cpp b/Source/core/paint/BoxPainter.cpp |
index ce09539312785250cfa6a991912f5b5ddea93855..9059b369d6877e397d56b0a01bf6bb90e9d60d5d 100644 |
--- a/Source/core/paint/BoxPainter.cpp |
+++ b/Source/core/paint/BoxPainter.cpp |
@@ -699,7 +699,7 @@ void BoxPainter::calculateBackgroundImageGeometry(RenderBoxModelObject& obj, con |
if (fixedBackgroundPaintsInLocalCoordinates(obj)) |
viewportRect.setLocation(IntPoint()); |
else if (FrameView* frameView = obj.view()->frameView()) |
- viewportRect.setLocation(IntPoint(frameView->scrollOffsetForFixedPosition())); |
+ viewportRect.setLocation(IntPoint(frameView->scrollOffsetForViewportConstrainedObjects())); |
if (paintContainer) { |
IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint())); |