Index: third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc |
index ce8c5837a133e203b51ccaa1a50cd2c2e13dad11..71d12725adaf9a44308efc0998f6d991323cd6ae 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.cc |
@@ -29,7 +29,7 @@ NGLayoutOpportunity CreateLayoutOpportunityFromConstraintSpace( |
const NGLogicalOffset& origin_point) { |
NGLayoutOpportunity opportunity; |
opportunity.offset = space.Offset(); |
- opportunity.size = space.Size(); |
+ opportunity.size = space.AvailableSize(); |
// adjust to the origin_point. |
opportunity.offset += origin_point; |