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

Unified Diff: third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.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/layout_ng_block_flow.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
index 2f6e37c7ba50f9c4044cb4837a0903ec6bc7b223..7eb001cca76aa9e5e24e4945cd80be64794b6bc2 100644
--- a/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
+++ b/third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc
@@ -27,7 +27,7 @@ void LayoutNGBlockFlow::layoutBlock(bool relayoutChildren) {
// passes (probably FirstChild(), etc).
m_box = new NGBlockNode(this);
- RefPtr<NGPhysicalFragment> fragment = m_box->Layout(constraint_space);
+ RefPtr<NGLayoutResult> result = m_box->Layout(constraint_space);
if (isOutOfFlowPositioned()) {
// In legacy layout, abspos differs from regular blocks in that abspos
@@ -44,7 +44,7 @@ void LayoutNGBlockFlow::layoutBlock(bool relayoutChildren) {
setLogicalTop(computedValues.m_position);
}
- for (auto& descendant : fragment->OutOfFlowDescendants())
+ for (auto& descendant : result->OutOfFlowDescendants())
descendant->UseOldOutOfFlowPositioning();
clearNeedsLayout();
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/BUILD.gn ('k') | third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698