Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Unified Diff: third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker_test.cc

Issue 2930963002: [LayoutNG] Refactor of NGLineBreaker. (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker_test.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker_test.cc
index 9332247a44dc446d6d37098051ec84a8a25c4cea..25cf38f058cc13abfa969836d862160aaa37143b 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker_test.cc
@@ -35,11 +35,14 @@ class NGLineBreakerTest : public NGBaseLayoutAlgorithmTest {
NGConstraintSpaceBuilder(NGWritingMode::kHorizontalTopBottom)
.SetAvailableSize({available_width, NGSizeIndefinite})
.ToConstraintSpace(NGWritingMode::kHorizontalTopBottom);
- NGLineBreaker line_breaker(node, space.Get());
- NGInlineLayoutAlgorithm algorithm(node, space.Get());
+
+ NGFragmentBuilder container_builder(
+ NGPhysicalFragment::NGFragmentType::kFragmentBox, node);
+
+ NGLineBreaker line_breaker(node, space.Get(), &container_builder);
Vector<NGInlineItemResults> lines;
NGLineInfo line_info;
- while (line_breaker.NextLine(&line_info, &algorithm))
+ while (line_breaker.NextLine(&line_info, NGLogicalOffset()))
lines.push_back(std::move(line_info.Results()));
return lines;
}

Powered by Google App Engine
This is Rietveld 408576698