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

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

Issue 2451123003: Make NGLayoutOpportunityIterator to support origin_point. (Closed)
Patch Set: Created 4 years, 2 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_layout_opportunity_iterator.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
index da9c9432df65902381fd5bc6e512fe43b59c851e..456f33ddf3587841b7a41d7e3c503ce614072f61 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_layout_opportunity_iterator.h
@@ -33,8 +33,8 @@ class CORE_EXPORT NGLayoutOpportunityIterator final
// text fragment for example.
NGLayoutOpportunityIterator(
NGConstraintSpace* space,
- const NGLogicalOrigin origin_point = NGLogicalOrigin(),
- const NGLogicalLeader leader_point = NGLogicalLeader());
+ const NGLogicalOffset origin_point = NGLogicalOffset(),
+ const NGLogicalOffset leader_point = NGLogicalOffset());
// Gets the next Layout Opportunity or nullptr if the search is exhausted.
// TODO(chrome-layout-team): Refactor with using C++ <iterator> library.
@@ -57,8 +57,7 @@ class CORE_EXPORT NGLayoutOpportunityIterator final
}
Member<NGConstraintSpace> constraint_space_;
- const NGLogicalOrigin origin_point_;
- const NGLogicalLeader leader_point_;
+ const NGLogicalOffset leader_point_;
NGLayoutOpportunities opportunities_;
NGLayoutOpportunities::const_iterator opportunity_iter_;

Powered by Google App Engine
This is Rietveld 408576698