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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.cpp

Issue 2383113003: Refactor ScrollableArea::setScrollPosition. (Closed)
Patch Set: Created 4 years, 2 months 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: third_party/WebKit/Source/core/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index 2a77bd58a18b9b25e43d9ced8db88ee5b3f23096..3e14bd588ec7b3ac923f8257a070a891456d9f14 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -623,9 +623,9 @@ IntSize VisualViewport::contentsSize() const {
return frame->view()->visibleContentRect(IncludeScrollbars).size();
}
-void VisualViewport::setScrollOffset(const DoublePoint& offset,
- ScrollType scrollType) {
- if (didSetScaleOrLocation(m_scale, toFloatPoint(offset)) &&
+void VisualViewport::updateScrollPosition(const DoublePoint& position,
+ ScrollType scrollType) {
+ if (didSetScaleOrLocation(m_scale, toFloatPoint(position)) &&
scrollType != AnchoringScroll)
notifyRootFrameViewport();
}

Powered by Google App Engine
This is Rietveld 408576698