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

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

Issue 2812983002: Change NGLayoutOpportunityIterator API to work with list of exclusions (Closed)
Patch Set: git rebase-update Created 3 years, 8 months 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_floats_utils.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.cc b/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.cc
index d1519fd17eed9bf2e2e8a29397d55b479cd937fe..2f77bb3282685b38755ae907f2f7b19d240aad42 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_floats_utils.cc
@@ -46,8 +46,9 @@ const NGLayoutOpportunity FindLayoutOpportunityForFragment(
NGLogicalOffset adjusted_origin_point =
AdjustToTopEdgeAlignmentRule(*space, floating_object->origin_offset);
- NGLayoutOpportunityIterator opportunity_iter(
- space, floating_object->available_size, adjusted_origin_point);
+ NGLayoutOpportunityIterator opportunity_iter(space->Exclusions().get(),
+ floating_object->available_size,
+ adjusted_origin_point);
NGLayoutOpportunity opportunity;
NGLayoutOpportunity opportunity_candidate = opportunity_iter.Next();

Powered by Google App Engine
This is Rietveld 408576698