Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: Source/core/rendering/RenderLayerClipper.cpp

Issue 751573002: Use viewportConstrainedVisibleContentRect() to get the scrolling offset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed the 'DEPRECATED' comment Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerClipper.cpp
diff --git a/Source/core/rendering/RenderLayerClipper.cpp b/Source/core/rendering/RenderLayerClipper.cpp
index 8d6c500c0091a8172b491c152840fd16b449858a..3a364ebf3c2ab6f25fc4f58bd9974cb9debb6532 100644
--- a/Source/core/rendering/RenderLayerClipper.cpp
+++ b/Source/core/rendering/RenderLayerClipper.cpp
@@ -73,7 +73,7 @@ static void applyClipRects(const ClipRectsContext& context, RenderObject& render
RenderView* view = renderer.view();
ASSERT(view);
if (clipRects.fixed() && context.rootLayer->renderer() == view)
- offset -= view->frameView()->scrollOffsetForFixedPosition();
+ offset -= view->frameView()->scrollOffsetForViewportConstrainedObjects();
if (renderer.hasOverflowClip()) {
ClipRect newOverflowClip = toRenderBox(renderer).overflowClipRect(offset, context.scrollbarRelevancy);
@@ -334,7 +334,7 @@ ClipRect RenderLayerClipper::backgroundClipRect(const ClipRectsContext& context)
// Note: infinite clipRects should not be scrolled here, otherwise they will accidentally no longer be considered infinite.
if (parentClipRects->fixed() && context.rootLayer->renderer() == m_renderer.view() && result != LayoutRect::infiniteIntRect())
- result.move(m_renderer.view()->frameView()->scrollOffsetForFixedPosition());
+ result.move(m_renderer.view()->frameView()->scrollOffsetForViewportConstrainedObjects());
return result;
}
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698