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

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

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added function for comparison Created 5 years, 7 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/RootFrameViewport.cpp
diff --git a/Source/core/frame/RootFrameViewport.cpp b/Source/core/frame/RootFrameViewport.cpp
index 155630db1f7c824e697c5bc41e6bbdf3ba7c1512..343e2c3f57da3b59a96c8960e24e6e8c1cd4441c 100644
--- a/Source/core/frame/RootFrameViewport.cpp
+++ b/Source/core/frame/RootFrameViewport.cpp
@@ -276,7 +276,7 @@ GraphicsLayer* RootFrameViewport::layerForVerticalScrollbar() const
return layoutViewport().layerForVerticalScrollbar();
}
-bool RootFrameViewport::scroll(ScrollDirection direction, ScrollGranularity granularity, float delta)
+ScrollResultOneDimensional RootFrameViewport::scroll(ScrollDirection direction, ScrollGranularity granularity, float delta)
{
updateScrollAnimator();
@@ -296,7 +296,7 @@ bool RootFrameViewport::scroll(ScrollDirection direction, ScrollGranularity gran
if (layoutViewport().userInputScrollable(orientation))
return layoutViewport().scroll(direction, granularity, delta);
- return false;
+ return ScrollResultOneDimensional(false);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698