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

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

Issue 2774443004: Fix overflow rect calculation for float in rtl container. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
index c6d4d711d83ad29ffc61d08f1915c46f6089ed7f..ecc82710c737c1dde65884cbf6f5d4460d93076d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -327,9 +327,11 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
LayoutUnit xPositionForFloatIncludingMargin(
const FloatingObject& child) const {
- if (isHorizontalWritingMode())
- return child.x() + child.layoutObject()->marginLeft();
-
+ LayoutUnit scrollbarAdjustment(originAdjustmentForScrollbars().width());
+ if (isHorizontalWritingMode()) {
+ return child.x() + child.layoutObject()->marginLeft() +
+ scrollbarAdjustment;
+ }
return child.x() + marginBeforeForChild(*child.layoutObject());
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698