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_layout_opportunity_tree_node.h" | 9 #include "core/layout/ng/ng_layout_opportunity_tree_node.h" |
10 #include "platform/heap/Handle.h" | |
11 #include "wtf/Optional.h" | 10 #include "wtf/Optional.h" |
12 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
13 #include "wtf/text/StringBuilder.h" | 12 #include "wtf/text/StringBuilder.h" |
14 | 13 |
15 namespace blink { | 14 namespace blink { |
16 | 15 |
17 class NGConstraintSpace; | 16 class NGConstraintSpace; |
18 typedef NGLogicalRect NGLayoutOpportunity; | 17 typedef NGLogicalRect NGLayoutOpportunity; |
19 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities; | 18 typedef Vector<NGLayoutOpportunity> NGLayoutOpportunities; |
20 | 19 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 55 |
57 // Read-only Getters. | 56 // Read-only Getters. |
58 const NGLayoutOpportunityTreeNode* OpportunityTreeRoot() const { | 57 const NGLayoutOpportunityTreeNode* OpportunityTreeRoot() const { |
59 return opportunity_tree_root_.get(); | 58 return opportunity_tree_root_.get(); |
60 } | 59 } |
61 | 60 |
62 const NGConstraintSpace* constraint_space_; | 61 const NGConstraintSpace* constraint_space_; |
63 | 62 |
64 NGLayoutOpportunities opportunities_; | 63 NGLayoutOpportunities opportunities_; |
65 NGLayoutOpportunities::const_iterator opportunity_iter_; | 64 NGLayoutOpportunities::const_iterator opportunity_iter_; |
66 Persistent<NGLayoutOpportunityTreeNode> opportunity_tree_root_; | 65 std::unique_ptr<NGLayoutOpportunityTreeNode> opportunity_tree_root_; |
67 NGLogicalOffset offset_; | 66 NGLogicalOffset offset_; |
68 }; | 67 }; |
69 | 68 |
70 } // namespace blink | 69 } // namespace blink |
71 | 70 |
72 #endif // NGLayoutOpportunityIterator_h | 71 #endif // NGLayoutOpportunityIterator_h |
OLD | NEW |