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

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

Issue 2515923002: Remove redundant 'derived constraint space' setters from NGConstraintSpace (Closed)
Patch Set: Created 4 years, 1 month 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_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;

Powered by Google App Engine
This is Rietveld 408576698