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

Unified Diff: Source/core/frame/FrameView.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/frame/FrameView.h ('k') | Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 626fc90fe912ed748418ae49812adf485d20926d..9618f48253c6ceaf760cdd0e8ee641714a5f7072 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1307,9 +1307,9 @@ void FrameView::viewportConstrainedVisibleContentSizeChanged(bool widthChanged,
}
}
-IntSize FrameView::scrollOffsetForFixedPosition() const
+IntSize FrameView::scrollOffsetForViewportConstrainedObjects() const
{
- return toIntSize(clampScrollPosition(scrollPosition()));
+ return roundedIntSize(viewportConstrainedVisibleContentRect().location());
}
IntPoint FrameView::lastKnownMousePosition() const
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698