Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| index c8a3f359e41ea58f55c8cc4f272d975c2f8e9123..33476440fa2034b430297027898ab8c7116d2016 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -793,12 +793,12 @@ int LayoutBox::intrinsicScrollbarLogicalWidth() const |
| ASSERT(getScrollableArea()); |
| - if (isHorizontalWritingMode() && style()->overflowY() == OverflowScroll) { |
| + if (isHorizontalWritingMode() && (style()->overflowY() == OverflowScroll || style()->overflowY() == OverflowAuto)) { |
|
cbiesinger
2016/05/13 19:52:48
Soo, I agree this will be better off in a differen
szager1
2016/05/13 20:52:05
The thing that makes this work is the following ch
cbiesinger
2016/05/13 21:02:13
Ah, thanks, I missed that part. Still, this now ma
|
| // Even with OverflowScroll, the scrollbar may not exist (crbug.com/415031). |
| return getScrollableArea()->hasVerticalScrollbar() ? verticalScrollbarWidth() : 0; |
| } |
| - if (!isHorizontalWritingMode() && style()->overflowX() == OverflowScroll) { |
| + if (!isHorizontalWritingMode() && (style()->overflowX() == OverflowScroll || style()->overflowY() == OverflowAuto)) { |
| // Even with OverflowScroll, the scrollbar may not exist (crbug.com/415031). |
| return getScrollableArea()->hasHorizontalScrollbar() ? horizontalScrollbarHeight() : 0; |
| } |