Index: third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm |
diff --git a/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm b/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm |
index 61b16ced626a4b27f3678166a94a04f7359500b4..4a882e05810ed328db831ec510d3b4d86f1a85b9 100644 |
--- a/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm |
+++ b/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm |
@@ -728,12 +728,9 @@ void ScrollAnimatorMac::dispose() |
ScrollResultOneDimensional ScrollAnimatorMac::userScroll(ScrollbarOrientation orientation, ScrollGranularity granularity, float step, float delta) |
{ |
- bool scrollAnimationEnabledForSystem = static_cast<ScrollbarThemeMacCommon&>( |
- ScrollbarTheme::theme()) |
- .scrollAnimationEnabledForSystem(); |
m_haveScrolledSincePageLoad = true; |
- if (!scrollAnimationEnabledForSystem || !m_scrollableArea->scrollAnimatorEnabled()) |
+ if (!m_scrollableArea->scrollAnimatorEnabled()) |
return ScrollAnimatorBase::userScroll(orientation, granularity, step, delta); |
if (granularity == ScrollByPixel || granularity == ScrollByPrecisePixel) |