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

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

Issue 2724133003: [LayoutNG] Switch NGConstraintSpace to being RefCounted. (Closed)
Patch Set: moar. 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 031605191cb1e817ebb66c6e576b8f3b5890cdeb..482e823f0d88a987cd18f3a5ecc38aab3a874f38 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
@@ -78,12 +78,12 @@ class NGInlineNodeTest : public RenderingTest {
void CreateLine(NGInlineNode* node,
Vector<RefPtr<const NGPhysicalTextFragment>>* fragments_out) {
- NGConstraintSpace* constraint_space =
+ RefPtr<NGConstraintSpace> constraint_space =
NGConstraintSpaceBuilder(kHorizontalTopBottom)
.ToConstraintSpace(kHorizontalTopBottom);
- NGLineBuilder line_builder(node, constraint_space);
+ NGLineBuilder line_builder(node, constraint_space.get());
- NGTextLayoutAlgorithm algorithm(node, constraint_space);
+ NGTextLayoutAlgorithm algorithm(node, constraint_space.get());
algorithm.LayoutInline(&line_builder);
NGFragmentBuilder fragment_builder(NGPhysicalFragment::kFragmentBox, node);

Powered by Google App Engine
This is Rietveld 408576698