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

Unified Diff: sky/engine/platform/scroll/ScrollAnimator.cpp

Issue 709603006: Remove a bunch of OS(MACOSX) code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Even more Created 6 years, 1 month 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: sky/engine/platform/scroll/ScrollAnimator.cpp
diff --git a/sky/engine/platform/scroll/ScrollAnimator.cpp b/sky/engine/platform/scroll/ScrollAnimator.cpp
index e20df3d3ccf056cd5b7595b86819f53f0bebf079..c31bf77fdf11eb4c86ae36129c2c588a0df8a694 100644
--- a/sky/engine/platform/scroll/ScrollAnimator.cpp
+++ b/sky/engine/platform/scroll/ScrollAnimator.cpp
@@ -86,11 +86,7 @@ bool ScrollAnimator::handleWheelEvent(const PlatformWheelEvent& e)
bool handled = false;
-#if !OS(MACOSX)
ScrollGranularity granularity = e.hasPreciseScrollingDeltas() ? ScrollByPrecisePixel : ScrollByPixel;
-#else
- ScrollGranularity granularity = ScrollByPixel;
-#endif
IntSize maxForwardScrollDelta = m_scrollableArea->maximumScrollPosition() - m_scrollableArea->scrollPosition();
IntSize maxBackwardScrollDelta = m_scrollableArea->scrollPosition() - m_scrollableArea->minimumScrollPosition();

Powered by Google App Engine
This is Rietveld 408576698