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

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2273163002: Cleanup and refactor RootScrollerController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed class comment Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 5ff62967e326ce3888314c78ce9357148d38ec0d..bb41789bc6f4c811ba5c9124585cdd6e46d7ff98 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -534,7 +534,7 @@ void Element::callDistributeScroll(ScrollState& scrollState)
// allow the viewport scroll callback so we don't disable overscroll.
// crbug.com/623079.
bool disableCustomCallbacks = !scrollState.isDirectManipulation()
- && !document().isViewportScrollCallback(callback);
+ && !document().rootScrollerController()->isViewportScrollCallback(callback);
if (!callback || disableCustomCallbacks) {
nativeDistributeScroll(scrollState);
@@ -612,7 +612,7 @@ void Element::callApplyScroll(ScrollState& scrollState)
// allow the viewport scroll callback so we don't disable overscroll.
// crbug.com/623079.
bool disableCustomCallbacks = !scrollState.isDirectManipulation()
- && !document().isViewportScrollCallback(callback);
+ && !document().rootScrollerController()->isViewportScrollCallback(callback);
if (!callback || disableCustomCallbacks) {
nativeApplyScroll(scrollState);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698