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

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

Issue 2732483002: Change NGLayoutOpportunityIterator constructor to work with const CS. (Closed)
Patch Set: git rebase-update3 Created 3 years, 10 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 51e42062d14e1fcc4ed2554b078dadb61e313a43..ea3d3fcbbdd1db0693822c79b2cd6b9c5889d5ba 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,7 +33,7 @@ class CORE_EXPORT NGLayoutOpportunityIterator final {
// which starts from 'origin'. This rectangle may
// represent a text fragment for example.
NGLayoutOpportunityIterator(
- NGConstraintSpace* space,
+ const NGConstraintSpace* space,
const WTF::Optional<NGLogicalOffset>& opt_origin_point = WTF::nullopt,
const WTF::Optional<NGLogicalOffset>& opt_leader_point = WTF::nullopt);
@@ -52,7 +52,7 @@ class CORE_EXPORT NGLayoutOpportunityIterator final {
return opportunity_tree_root_.get();
}
- NGConstraintSpace* constraint_space_;
+ const NGConstraintSpace* constraint_space_;
NGLayoutOpportunities opportunities_;
NGLayoutOpportunities::const_iterator opportunity_iter_;

Powered by Google App Engine
This is Rietveld 408576698