Index: third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
index 1c8548f06702027845e2af33ff7e3501aedb6116..f6f43aa2a29c354b273c97d9aae3d9df10216c70 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc |
@@ -30,10 +30,7 @@ NGInlineLayoutAlgorithm::NGInlineLayoutAlgorithm( |
DCHECK(style_); |
} |
-NGLayoutStatus NGInlineLayoutAlgorithm::Layout( |
- NGPhysicalFragment*, |
- NGPhysicalFragment** fragment_out, |
- NGLayoutAlgorithm**) { |
+NGPhysicalFragment* NGInlineLayoutAlgorithm::Layout() { |
// TODO(kojii): Implement sizing and child constraint spaces. Share common |
// logic with NGBlockLayoutAlgorithm using composition. |
builder_ = new NGFragmentBuilder(NGPhysicalFragment::kFragmentBox); |
@@ -52,10 +49,9 @@ NGLayoutStatus NGInlineLayoutAlgorithm::Layout( |
} |
line_builder_->CreateFragments(builder_); |
- *fragment_out = builder_->ToBoxFragment(); |
+ NGPhysicalFragment* fragment = builder_->ToBoxFragment(); |
line_builder_->CopyFragmentDataToLayoutBlockFlow(); |
- state_ = kStateInit; |
- return kNewFragment; |
+ return fragment; |
} |
bool NGInlineLayoutAlgorithm::LayoutCurrentChild() { |