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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 1752043002: Merged FrameView and LayoutBox scrolling in EventHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@invertScrollCustomizationPath
Patch Set: szager@ feedback + fixing iframe scroll chaining after recent changes Created 4 years, 10 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/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 5da123b695f693d7e53dedbd6546c97f8156820b..470e3c8de77c0f87f0c5d90fddbb21909adb5e6c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -1022,4 +1022,12 @@ bool LayoutView::allowsOverflowClip() const
return document().settings() && document().settings()->rootLayerScrolls();
}
+ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize& delta)
+{
+ if (!frameView())
+ return ScrollResult();
+
+ return frame()->applyScrollDelta(granularity, delta, false);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698