Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
index 1e3aafb6e03cae74c2bad5c6cde268110f629527..b424614b8dc8245abd069b51d02ec88045a440ad 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
@@ -1015,10 +1015,16 @@ bool PaintLayerScrollableArea::HasVerticalOverflow() const { |
} |
bool PaintLayerScrollableArea::HasScrollableHorizontalOverflow() const { |
+ if (Box().Size().IsZero()) |
skobes
2017/07/15 00:44:31
Actually it would be simpler to put this logic ins
Srirama
2017/07/17 14:35:24
Done.
|
+ return false; |
+ |
return HasHorizontalOverflow() && Box().ScrollsOverflowX(); |
} |
bool PaintLayerScrollableArea::HasScrollableVerticalOverflow() const { |
+ if (Box().Size().IsZero()) |
+ return false; |
+ |
return HasVerticalOverflow() && Box().ScrollsOverflowY(); |
} |