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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 197213011: Selectively disable rubber banding on mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index b2cb7359a68f53b55c55af84554c523b8af8c1e1..083fe9ef369fa72146ccfb71086c1c8eb52479e7 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -3112,7 +3112,7 @@ void FrameView::removeChild(Widget* widget)
ScrollView::removeChild(widget);
}
-bool FrameView::wheelEvent(const PlatformWheelEvent& wheelEvent)
+bool FrameView::wheelEvent(const PlatformWheelEvent& wheelEvent, bool canRubberbandLeft, bool canRubberbandRight)
{
// Note that to allow for rubber-band over-scroll behavior, even non-scrollable views
// should handle wheel events.
@@ -3125,7 +3125,7 @@ bool FrameView::wheelEvent(const PlatformWheelEvent& wheelEvent)
if (!canHaveScrollbars())
return false;
- return ScrollableArea::handleWheelEvent(wheelEvent);
+ return ScrollableArea::handleWheelEvent(wheelEvent, canRubberbandLeft, canRubberbandRight);
}
bool FrameView::isVerticalDocument() const

Powered by Google App Engine
This is Rietveld 408576698