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

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

Issue 2632523002: [LayoutNG] Initial support for multicol, introducing NGBlockBreakToken. (Closed)
Patch Set: Add TODO. 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_layout_input_node.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.cc
index 2f2e074c5015f6a98dec6210beb2ae8c97dfe4f0..1050b23cf82d3eb747d7844bd3011d27db284af3 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_input_node.cc
@@ -31,6 +31,9 @@ NGLayoutAlgorithm* NGLayoutInputNode::AlgorithmForInputNode(
return new NGInlineLayoutAlgorithm(style, child, constraint_space);
}
NGBlockNode* child = toNGBlockNode(block->FirstChild());
- return new NGBlockLayoutAlgorithm(style, child, constraint_space);
+ // TODO(layout-ng): The break token should be passed as an argument to this
+ // method instead of getting it from the NGBlockNode
+ NGBreakToken* token = block->CurrentBreakToken();
+ return new NGBlockLayoutAlgorithm(style, child, constraint_space, token);
}
}

Powered by Google App Engine
This is Rietveld 408576698