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

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

Issue 2702403003: [layoutng] Split NGLayoutResult out of NGPhysicalFragment (Closed)
Patch Set: rebased Created 3 years, 10 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/ng_inline_node_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc
index 874ce4174ec043b00a39db1ce61e5ceec65394ab..2568b2c89c1da8751a37afd83551a26eaebd3b9a 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_node_test.cc
@@ -75,8 +75,10 @@ class NGInlineNodeTest : public ::testing::Test {
NGFragmentBuilder fragment_builder(NGPhysicalFragment::kFragmentBox, node);
line_builder.CreateFragments(&fragment_builder);
- RefPtr<NGPhysicalBoxFragment> fragment = fragment_builder.ToBoxFragment();
- for (const auto& child : fragment->Children()) {
+ RefPtr<NGLayoutResult> result = fragment_builder.ToBoxFragment();
+ for (const auto& child :
+ toNGPhysicalBoxFragment(result->PhysicalFragment().get())
+ ->Children()) {
fragments_out->push_back(toNGPhysicalTextFragment(child.get()));
}
}

Powered by Google App Engine
This is Rietveld 408576698