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

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: Restore list box height calculation, fix scrollbar width factor 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 8588a9ee471d14759253cfbc14b99f30e791445d..31ab806652553d3f1d84a9b29da1f42bbb223570 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -777,26 +777,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