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 NGConstraintSpace_h | 5 #ifndef NGConstraintSpace_h |
6 #define NGConstraintSpace_h | 6 #define NGConstraintSpace_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/ng_physical_constraint_space.h" | 9 #include "core/layout/ng/ng_physical_constraint_space.h" |
10 #include "core/layout/ng/ng_writing_mode.h" | 10 #include "core/layout/ng/ng_writing_mode.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 class CORE_EXPORT NGLayoutOpportunityIterator final { | 105 class CORE_EXPORT NGLayoutOpportunityIterator final { |
106 public: | 106 public: |
107 NGLayoutOpportunityIterator(NGConstraintSpace* space, | 107 NGLayoutOpportunityIterator(NGConstraintSpace* space, |
108 unsigned clear, | 108 unsigned clear, |
109 bool for_inline_or_bfc) | 109 bool for_inline_or_bfc) |
110 : constraint_space_(space), | 110 : constraint_space_(space), |
111 clear_(clear), | 111 clear_(clear), |
112 for_inline_or_bfc_(for_inline_or_bfc) {} | 112 for_inline_or_bfc_(for_inline_or_bfc) {} |
113 ~NGLayoutOpportunityIterator() {} | 113 ~NGLayoutOpportunityIterator() {} |
114 | 114 |
115 const NGDerivedConstraintSpace* Next(); | 115 NGConstraintSpace* Next(); |
116 | 116 |
117 private: | 117 private: |
118 Persistent<NGConstraintSpace> constraint_space_; | 118 Persistent<NGConstraintSpace> constraint_space_; |
119 unsigned clear_; | 119 unsigned clear_; |
120 bool for_inline_or_bfc_; | 120 bool for_inline_or_bfc_; |
121 }; | 121 }; |
122 | 122 |
123 } // namespace blink | 123 } // namespace blink |
124 | 124 |
125 #endif // NGConstraintSpace_h | 125 #endif // NGConstraintSpace_h |
OLD | NEW |