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(); |
} |