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

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

Issue 2668183003: [LayoutNG] Make NG algorithms non-oilpan. (Closed)
Patch Set: fix win compile 2? Created 3 years, 11 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 8a797d977a052d77063b9f3a523f257550a96f11..5bb6c7802d3d406a264675e2be19422d9205f4e2 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
@@ -69,9 +69,9 @@ class NGInlineNodeTest : public ::testing::Test {
NGConstraintSpace* constraint_space =
NGConstraintSpaceBuilder(kHorizontalTopBottom).ToConstraintSpace();
NGLineBuilder line_builder(node, constraint_space);
- NGTextLayoutAlgorithm* algorithm =
- new NGTextLayoutAlgorithm(node, constraint_space);
- algorithm->LayoutInline(&line_builder);
+
+ NGTextLayoutAlgorithm algorithm(node, constraint_space);
+ algorithm.LayoutInline(&line_builder);
NGFragmentBuilder fragment_builder(NGPhysicalFragment::kFragmentBox,
/* layout_object */ nullptr);

Powered by Google App Engine
This is Rietveld 408576698