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

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

Issue 1930183002: Refactor scroll updates during flexbox layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@rtl-scroll-origin
Patch Set: rebase + nits 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..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;
}

Powered by Google App Engine
This is Rietveld 408576698