Index: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
index 5e12996ebb3aab1f6264061cbdb74527904e9d4a..fa6bd890e6843e3ee388f048d95a49442deaa5e9 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
@@ -77,7 +77,7 @@ static void applyClipRects(const ClipRectsContext& context, |
LayoutView* view = layoutObject.view(); |
DCHECK(view); |
if (clipRects.fixed() && context.rootLayer->layoutObject() == view) |
- offset -= toIntSize(view->frameView()->scrollPosition()); |
+ offset -= LayoutSize(view->frameView()->scrollOffset()); |
if (layoutObject.hasOverflowClip() || |
(layoutObject.isSVGRoot() && |
toLayoutSVGRoot(&layoutObject)->shouldApplyViewportClip()) || |
@@ -340,7 +340,7 @@ ClipRect PaintLayerClipper::backgroundClipRect( |
if (parentClipRects->fixed() && |
context.rootLayer->layoutObject() == layoutView && |
result != LayoutRect(LayoutRect::infiniteIntRect())) |
- result.move(toIntSize(layoutView->frameView()->scrollPosition())); |
+ result.move(LayoutSize(layoutView->frameView()->scrollOffset())); |
return result; |
} |