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); |
} |
} |