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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2523573003: Use logicalBottom when computing baselines in vertical-lr inline-blocks (Closed)
Patch Set: Rebaselined layout tests. Created 4 years 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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index 1fdd61270cf2d2d861006e00cc170d0d3bc30b88..c7600356917b2257ce27d393a07cab5f234159be 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1637,6 +1637,8 @@ LayoutUnit LayoutBlock::lineHeight(bool firstLine,
int LayoutBlock::beforeMarginInLineDirection(
LineDirectionMode direction) const {
+ // InlineFlowBox::placeBoxesInBlockDirection will flip lines in
+ // case of verticalLR mode, so we can assume verticalRL for now.
return (direction == HorizontalLine ? marginTop() : marginRight()).toInt();
}

Powered by Google App Engine
This is Rietveld 408576698