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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 1980103002: Include auto vertical scrollbar in intrinsicScrollbarLogicalWidth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Added test Created 4 years, 7 months 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: 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..6da2ae3925cc59cd4ce7dd0db605f46eacce14a7 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)) {
skobes 2016/05/16 20:55:53 I will echo cbiesinger's question on the other thr
// 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()->overflowX() == OverflowAuto)) {
// Even with OverflowScroll, the scrollbar may not exist (crbug.com/415031).
return getScrollableArea()->hasHorizontalScrollbar() ? horizontalScrollbarHeight() : 0;
}

Powered by Google App Engine
This is Rietveld 408576698