| 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 NGPhysicalConstraintSpace_h | 5 #ifndef NGPhysicalConstraintSpace_h |
| 6 #define NGPhysicalConstraintSpace_h | 6 #define NGPhysicalConstraintSpace_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/layout/ng/ng_units.h" | 9 #include "core/layout/ng/ng_units.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 NGPhysicalConstraintSpace( | 63 NGPhysicalConstraintSpace( |
| 64 NGPhysicalSize container_size, | 64 NGPhysicalSize container_size, |
| 65 bool fixed_width, | 65 bool fixed_width, |
| 66 bool fixed_height, | 66 bool fixed_height, |
| 67 bool width_direction_triggers_scrollbar, | 67 bool width_direction_triggers_scrollbar, |
| 68 bool height_direction_triggers_scrollbar, | 68 bool height_direction_triggers_scrollbar, |
| 69 NGFragmentationType width_direction_fragmentation_type, | 69 NGFragmentationType width_direction_fragmentation_type, |
| 70 NGFragmentationType height_direction_fragmentation_type, | 70 NGFragmentationType height_direction_fragmentation_type, |
| 71 bool is_new_fc); | 71 bool is_new_fc); |
| 72 | 72 |
| 73 NGPhysicalConstraintSpace(); |
| 74 NGPhysicalConstraintSpace(NGPhysicalSize); |
| 75 |
| 73 NGPhysicalSize ContainerSize() const { return container_size_; } | 76 NGPhysicalSize ContainerSize() const { return container_size_; } |
| 74 | 77 |
| 75 void AddExclusion(const NGExclusion*, unsigned options = 0); | 78 void AddExclusion(const NGExclusion*, unsigned options = 0); |
| 76 const HeapVector<Member<const NGExclusion>>& Exclusions( | 79 const HeapVector<Member<const NGExclusion>>& Exclusions( |
| 77 unsigned options = 0) const; | 80 unsigned options = 0) const; |
| 78 | 81 |
| 79 DEFINE_INLINE_TRACE() { visitor->trace(exclusions_); } | 82 DEFINE_INLINE_TRACE() { visitor->trace(exclusions_); } |
| 80 | 83 |
| 81 private: | 84 private: |
| 82 friend class NGConstraintSpace; | 85 friend class NGConstraintSpace; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 93 // Whether the current constraint space is for the newly established | 96 // Whether the current constraint space is for the newly established |
| 94 // formatting Context | 97 // formatting Context |
| 95 unsigned is_new_fc_ : 1; | 98 unsigned is_new_fc_ : 1; |
| 96 | 99 |
| 97 HeapVector<Member<const NGExclusion>> exclusions_; | 100 HeapVector<Member<const NGExclusion>> exclusions_; |
| 98 }; | 101 }; |
| 99 | 102 |
| 100 } // namespace blink | 103 } // namespace blink |
| 101 | 104 |
| 102 #endif // NGPhysicalConstraintSpace_h | 105 #endif // NGPhysicalConstraintSpace_h |
| OLD | NEW |