Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index 2a39ef489b58e61a056f418f6a7db909a44c49c1..fdcc8162a85360bbbdfbbb93c8b395be2ebef341 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -1015,6 +1015,14 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject { |
return Style()->IsHorizontalWritingMode() ? HorizontalScrollbarHeight() |
: VerticalScrollbarWidth(); |
} |
+ |
+ // Return the width of the vertical scrollbar, unless it's larger than the |
+ // logical width of the content box, in which case we'll return that instead. |
+ // Scrollbar handling is quite bad in such situations, and this method here |
+ // is just to make sure that left-hand scrollbars don't mess up |
+ // scrollWidth. For the full story, visit crbug.com/724255 |
+ LayoutUnit VerticalScrollbarWidthClampedToContentBox() const; |
+ |
virtual ScrollResult Scroll(ScrollGranularity, const FloatSize&); |
bool CanBeScrolledAndHasScrollableArea() const; |
virtual bool CanBeProgramaticallyScrolled() const; |