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

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: rebase 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 464aa2775f1b570c3ff8dbf14ec791a4f63b1d77..343862e00addc1d9b5b8e6c3cd81f6884fa33275 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -786,26 +786,6 @@ int LayoutBox::horizontalScrollbarHeight() const
return getScrollableArea()->horizontalScrollbarHeight();
}
-int LayoutBox::intrinsicScrollbarLogicalWidth() const
-{
- if (!hasOverflowClip())
- return 0;
-
- ASSERT(getScrollableArea());
-
- if (isHorizontalWritingMode() && style()->overflowY() == OverflowScroll) {
- // Even with OverflowScroll, the scrollbar may not exist (crbug.com/415031).
- return getScrollableArea()->hasVerticalScrollbar() ? verticalScrollbarWidth() : 0;
- }
-
- if (!isHorizontalWritingMode() && style()->overflowX() == OverflowScroll) {
- // Even with OverflowScroll, the scrollbar may not exist (crbug.com/415031).
- return getScrollableArea()->hasHorizontalScrollbar() ? horizontalScrollbarHeight() : 0;
- }
-
- return 0;
-}
-
ScrollResult LayoutBox::scroll(ScrollGranularity granularity, const FloatSize& delta)
{
// Presumably the same issue as in setScrollTop. See crbug.com/343132.

Powered by Google App Engine
This is Rietveld 408576698