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

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

Issue 1147283002: Add ScrollDirectionPhysical enum in Scroll types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index b3010ce4c8a6ba0c95bf9042a085ea3818b86d15..605f2551f7e15eb40952e4bd5cabc40b4b41be46 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -726,8 +726,8 @@ void LocalFrame::removeSpellingMarkersUnderWords(const Vector<String>& words)
static bool scrollAreaOnBothAxes(const FloatSize& delta, ScrollableArea& view)
{
- bool scrolledHorizontal = view.scroll(ScrollLeft, ScrollByPrecisePixel, delta.width());
- bool scrolledVertical = view.scroll(ScrollUp, ScrollByPrecisePixel, delta.height());
+ bool scrolledHorizontal = view.scroll(ScrollPhysicalLeft, ScrollByPrecisePixel, delta.width());
+ bool scrolledVertical = view.scroll(ScrollPhysicalUp, ScrollByPrecisePixel, delta.height());
return scrolledHorizontal || scrolledVertical;
}

Powered by Google App Engine
This is Rietveld 408576698