Index: third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
index d6bc5e3f8824bed3265ef62a3cc9ea639b6292f9..e8b6f837495585c4264546be1509d2a29dc2deef 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
@@ -229,11 +229,8 @@ bool NGBlockNode::CanUseNewLayout() { |
return true; |
if (!layout_box_->isLayoutBlockFlow()) |
return false; |
- if (RuntimeEnabledFeatures::layoutNGInlineEnabled()) |
- return true; |
- if (HasInlineChildren()) |
- return false; |
- return true; |
+ return RuntimeEnabledFeatures::layoutNGInlineEnabled() || |
+ !HasInlineChildren(); |
} |
bool NGBlockNode::HasInlineChildren() { |