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 d0682ced648cb755138fbf1f433ac6647ec90f48..78a022e32bc50740efa59bc95ad0e7ff9c858030 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(); |
cbiesinger
2016/11/18 23:44:23
Why is this correct?
Gleb Lanbin
2016/11/19 04:20:47
Acknowledged.
|
// adjust to the origin_point. |
opportunity.offset += origin_point; |