| Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| index b57b6901654a8960230ed1c0d52a23e259deffda..23b6ddf513d01adb0f91862da2f50fcce74d6ef6 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
|
| @@ -35,8 +35,7 @@ bool ShouldShrinkToFit(const NGConstraintSpace& parent_space,
|
| // Whether the child and the containing block are parallel to each other.
|
| // Example: vertical-rl and vertical-lr
|
| bool is_in_parallel_flow =
|
| - (parent_space.WritingMode() == kHorizontalTopBottom) ==
|
| - (child_writing_mode == kHorizontalTopBottom);
|
| + IsParallelWritingMode(parent_space.WritingMode(), child_writing_mode);
|
|
|
| return child_style.display() == EDisplay::InlineBlock ||
|
| child_style.isFloating() || !is_in_parallel_flow;
|
|
|