Index: third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
index da6056433edb14f03ab43f58e1a0d2b80b0da18a..c4e60f35eea51a3a6d9c6b912101987b557e4f0c 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc |
@@ -39,6 +39,12 @@ NGBlockNode::NGBlockNode(ComputedStyle* style) |
// included from a compilation unit that lacks the ComputedStyle definition. |
NGBlockNode::~NGBlockNode() {} |
+void NGBlockNode::LayoutSync(NGConstraintSpace* constraint_space, |
+ NGFragment** out) { |
+ while (!Layout(constraint_space, out)) |
+ continue; |
+} |
+ |
bool NGBlockNode::Layout(NGConstraintSpace* constraint_space, |
NGFragment** out) { |
DCHECK(!minmax_algorithm_) |
@@ -79,6 +85,13 @@ void NGBlockNode::UpdateLayoutBox(NGPhysicalBoxFragment* fragment, |
} |
} |
+MinAndMaxContentSizes NGBlockNode::ComputeMinAndMaxContentSizesSync() { |
+ MinAndMaxContentSizes sizes; |
+ while (!ComputeMinAndMaxContentSizes(&sizes)) |
+ continue; |
+ return sizes; |
+} |
+ |
bool NGBlockNode::ComputeMinAndMaxContentSizes(MinAndMaxContentSizes* sizes) { |
if (!CanUseNewLayout()) { |
DCHECK(layout_box_); |