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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_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_block_layout_algorithm_test.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
index b9dce45a45c97a8a0a8c4ea60b1af6ccf277fa9e..8b3ba8b0eb83fbdab73bc81f24824a65454df3a9 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc
@@ -63,10 +63,10 @@ class NGBlockLayoutAlgorithmTest
NGBlockNode* node = new NGBlockNode(style_.get());
node->SetFirstChild(first_child);
- RefPtr<NGPhysicalFragment> fragment =
+ RefPtr<NGLayoutResult> result =
NGBlockLayoutAlgorithm(node, space).Layout();
- return toNGPhysicalBoxFragment(fragment.get());
+ return toNGPhysicalBoxFragment(result->PhysicalFragment().get());
}
std::pair<RefPtr<NGPhysicalBoxFragment>, NGConstraintSpace*>
@@ -77,9 +77,10 @@ class NGBlockLayoutAlgorithmTest
NGConstraintSpace* space =
NGConstraintSpace::CreateFromLayoutObject(*block_flow);
- RefPtr<NGPhysicalFragment> fragment =
+ RefPtr<NGLayoutResult> result =
NGBlockLayoutAlgorithm(node, space).Layout();
- return std::make_pair(toNGPhysicalBoxFragment(fragment.get()), space);
+ return std::make_pair(
+ toNGPhysicalBoxFragment(result->PhysicalFragment().get()), space);
}
MinAndMaxContentSizes RunComputeMinAndMax(NGBlockNode* first_child) {

Powered by Google App Engine
This is Rietveld 408576698