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

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

Issue 2893833004: When moving past a left-hand scrollbar, don't jump way outside the content box. (Closed)
Patch Set: Created 3 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.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;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698