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 dccce555d7fa6aac15b6e5a4835dc4126d51dc4f..9c6e51ce993dd2d895c8d96e09c076a29bbf1132 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 |
@@ -10,6 +10,7 @@ |
#include "core/layout/ng/ng_fragment_builder.h" |
#include "core/layout/ng/ng_line_builder.h" |
#include "core/layout/ng/ng_physical_box_fragment.h" |
+#include "core/layout/ng/ng_physical_line_box_fragment.h" |
#include "core/layout/ng/ng_physical_text_fragment.h" |
#include "core/layout/ng/ng_text_fragment.h" |
#include "core/layout/ng/ng_text_layout_algorithm.h" |
@@ -98,9 +99,12 @@ class NGInlineNodeTest : public RenderingTest { |
algorithm.LayoutInline(&line_builder); |
RefPtr<NGLayoutResult> result = line_builder.CreateFragments(); |
- for (const auto& child : |
- toNGPhysicalBoxFragment(result->PhysicalFragment().get()) |
- ->Children()) { |
+ const NGPhysicalBoxFragment* container = |
+ toNGPhysicalBoxFragment(result->PhysicalFragment().get()); |
+ EXPECT_EQ(container->Children().size(), 1u); |
+ const NGPhysicalLineBoxFragment* line = |
+ toNGPhysicalLineBoxFragment(container->Children()[0].get()); |
+ for (const auto& child : line->Children()) { |
fragments_out->push_back(toNGPhysicalTextFragment(child.get())); |
} |
} |