Index: third_party/WebKit/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp |
diff --git a/third_party/WebKit/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp |
index 19a06dfba58c237acb4016ba6e181f215f230bac..25ca49e42988ebe0978e351ecfc18b02632d2f48 100644 |
--- a/third_party/WebKit/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp |
@@ -680,7 +680,7 @@ void DeprecatedPaintLayerScrollableArea::updateScrollDimensions(DoubleSize& scro |
setHasHorizontalScrollbar(true); |
if (box().hasAutoVerticalScrollbar()) |
setHasVerticalScrollbar(hasVerticalOverflow); |
- else if (box().style()->overflowX() == OSCROLL) |
+ else if (box().style()->overflowY() == OSCROLL) |
setHasVerticalScrollbar(true); |
} |
} |