| 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 e308c50c47badf1c7b760b207758e4ce61c39be2..48368d759c63512f4efc2a5540284525e641706e 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
|
| @@ -32,7 +32,7 @@ NGInlineLayoutAlgorithm::NGInlineLayoutAlgorithm(
|
| DCHECK(style_);
|
| }
|
|
|
| -NGPhysicalFragment* NGInlineLayoutAlgorithm::Layout() {
|
| +RefPtr<NGPhysicalFragment> NGInlineLayoutAlgorithm::Layout() {
|
| // TODO(kojii): Implement sizing and child constraint spaces. Share common
|
| // logic with NGBlockLayoutAlgorithm using composition.
|
| builder_->SetWritingMode(constraint_space_->WritingMode());
|
| @@ -48,8 +48,8 @@ NGPhysicalFragment* NGInlineLayoutAlgorithm::Layout() {
|
| line_builder = new NGLineBuilder(current_child, space_for_current_child);
|
| current_child->LayoutInline(space_for_current_child, line_builder);
|
| }
|
| - line_builder->CreateFragments(builder_);
|
| - NGPhysicalFragment* fragment = builder_->ToBoxFragment();
|
| + line_builder->CreateFragments(builder_.get());
|
| + RefPtr<NGPhysicalFragment> fragment = builder_->ToBoxFragment();
|
| line_builder->CopyFragmentDataToLayoutBlockFlow();
|
| return fragment;
|
| }
|
|
|