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

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

Issue 2477843002: Revert of Add support of leader_point in NGLayoutOpportunityIterator. (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.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 04ca10c61bd458585ca10f79dfefa19b7ddbb69a..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 @@
// text fragment for example.
NGLayoutOpportunityIterator(
NGConstraintSpace* space,
- const NGLogicalOffset& origin_point = NGLogicalOffset(),
- const NGLogicalOffset& leader_point = NGLogicalOffset());
+ 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,6 +57,7 @@
}
Member<NGConstraintSpace> constraint_space_;
+ const NGLogicalOffset leader_point_;
NGLayoutOpportunities opportunities_;
NGLayoutOpportunities::const_iterator opportunity_iter_;

Powered by Google App Engine
This is Rietveld 408576698