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

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

Issue 2435803005: Initial implementation of LayoutNG's block layout algorithm for floats. (Closed)
Patch Set: fix PositionFragment's doc, added TODO to fix floats with margins and add more test expectations. 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 58040acb597a553a45bf8647c26a26e971e7c871..e3f3c33d3533919351579f90fa7edabf74dad072 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
@@ -36,6 +36,16 @@ class CORE_EXPORT NGLayoutOpportunityIterator final
}
private:
+ // Mutable Getters.
+ NGLayoutOpportunityTreeNode* MutableOpportunityTreeRoot() {
+ return opportunity_tree_root_.get();
+ }
+
+ // Read-only Getters.
+ const NGLayoutOpportunityTreeNode* OpportunityTreeRoot() const {
+ return opportunity_tree_root_.get();
+ }
+
Member<NGConstraintSpace> constraint_space_;
NGLayoutOpportunities opportunities_;

Powered by Google App Engine
This is Rietveld 408576698