Index: third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc |
index f5e88ddf7b4fbd07c7a96f235803aa67ce416192..3fafff05294a22c166bfb946610dfc71e698c024 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_constraint_space_builder.cc |
@@ -121,8 +121,8 @@ NGConstraintSpace* NGConstraintSpaceBuilder::ToConstraintSpace( |
NGWritingMode out_writing_mode) { |
// Whether the child and the containing block are parallel to each other. |
// Example: vertical-rl and vertical-lr |
- bool is_in_parallel_flow = (parent_writing_mode_ == kHorizontalTopBottom) == |
- (out_writing_mode == kHorizontalTopBottom); |
+ bool is_in_parallel_flow = IsParallelWritingMode( |
+ static_cast<NGWritingMode>(parent_writing_mode_), out_writing_mode); |
NGLogicalSize available_size = available_size_; |
NGLogicalSize percentage_resolution_size = percentage_resolution_size_; |