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 a7b476f4d0a6aefdc1590f2e55431bb444b59835..69c81ee6fda034a746a568e4ba51daf1202ac772 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 |
@@ -458,14 +458,9 @@ RefPtr<NGLayoutResult> NGBlockLayoutAlgorithm::Layout() { |
RefPtr<NGConstraintSpace> child_space = |
CreateConstraintSpaceForChild(child); |
+ RefPtr<NGLayoutResult> layout_result = |
+ child->Layout(child_space.get(), child_break_token); |
- RefPtr<NGLayoutResult> layout_result; |
- if (child->Type() == NGLayoutInputNode::kLegacyInline) { |
- layout_result = toNGInlineNode(child)->Layout( |
- child_space.get(), &builder_, child_break_token); |
- } else { |
- layout_result = child->Layout(child_space.get(), child_break_token); |
- } |
FinishChildLayout(child, child_space.get(), layout_result); |
entry = child_iterator.NextChild(); |