| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NGLayoutOpportunityIterator_h | 5 #ifndef NGLayoutOpportunityIterator_h |
| 6 #define NGLayoutOpportunityIterator_h | 6 #define NGLayoutOpportunityIterator_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/layout/ng/ng_constraint_space.h" | 9 #include "core/layout/ng/ng_constraint_space.h" |
| 10 #include "core/layout/ng/ng_layout_opportunity_tree_node.h" | 10 #include "core/layout/ng/ng_layout_opportunity_tree_node.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Mutable Getters. | 45 // Mutable Getters. |
| 46 NGLayoutOpportunityTreeNode* MutableOpportunityTreeRoot() { | 46 NGLayoutOpportunityTreeNode* MutableOpportunityTreeRoot() { |
| 47 return opportunity_tree_root_.get(); | 47 return opportunity_tree_root_.get(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 // Read-only Getters. | 50 // Read-only Getters. |
| 51 const NGLayoutOpportunityTreeNode* OpportunityTreeRoot() const { | 51 const NGLayoutOpportunityTreeNode* OpportunityTreeRoot() const { |
| 52 return opportunity_tree_root_.get(); | 52 return opportunity_tree_root_.get(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 Persistent<NGConstraintSpace> constraint_space_; | 55 NGConstraintSpace* constraint_space_; |
| 56 | 56 |
| 57 NGLayoutOpportunities opportunities_; | 57 NGLayoutOpportunities opportunities_; |
| 58 NGLayoutOpportunities::const_iterator opportunity_iter_; | 58 NGLayoutOpportunities::const_iterator opportunity_iter_; |
| 59 Persistent<NGLayoutOpportunityTreeNode> opportunity_tree_root_; | 59 Persistent<NGLayoutOpportunityTreeNode> opportunity_tree_root_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // NGLayoutOpportunityIterator_h | 64 #endif // NGLayoutOpportunityIterator_h |
| OLD | NEW |