| Index: Source/core/paint/DeprecatedPaintLayerClipper.cpp
|
| diff --git a/Source/core/paint/DeprecatedPaintLayerClipper.cpp b/Source/core/paint/DeprecatedPaintLayerClipper.cpp
|
| index e2dfd18540b2134cb627fc11f146f42b2bf45358..fa3a00b857a1562cf5f94499d269c157f1a1b779 100644
|
| --- a/Source/core/paint/DeprecatedPaintLayerClipper.cpp
|
| +++ b/Source/core/paint/DeprecatedPaintLayerClipper.cpp
|
| @@ -73,7 +73,7 @@ static void applyClipRects(const ClipRectsContext& context, LayoutObject& layout
|
| LayoutView* view = layoutObject.view();
|
| ASSERT(view);
|
| if (clipRects.fixed() && context.rootLayer->layoutObject() == view)
|
| - offset -= view->frameView()->scrollOffsetForViewportConstrainedObjects();
|
| + offset -= toIntSize(view->frameView()->scrollPosition());
|
|
|
| if (layoutObject.hasOverflowClip()) {
|
| ClipRect newOverflowClip = toLayoutBox(layoutObject).overflowClipRect(offset, context.scrollbarRelevancy);
|
| @@ -334,7 +334,7 @@ ClipRect DeprecatedPaintLayerClipper::backgroundClipRect(const ClipRectsContext&
|
|
|
| // Note: infinite clipRects should not be scrolled here, otherwise they will accidentally no longer be considered infinite.
|
| if (parentClipRects->fixed() && context.rootLayer->layoutObject() == m_layoutObject.view() && result != LayoutRect(LayoutRect::infiniteIntRect()))
|
| - result.move(m_layoutObject.view()->frameView()->scrollOffsetForViewportConstrainedObjects());
|
| + result.move(toIntSize(m_layoutObject.view()->frameView()->scrollPosition()));
|
|
|
| return result;
|
| }
|
|
|