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

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: 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
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 7b42005344ae4e68edc7fdc13e88250f1783d6cb..d5a516eff9e3298b35787b9074eae9a4732cffd2 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1308,9 +1308,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

Powered by Google App Engine
This is Rietveld 408576698