| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 DEFINE_INLINE_TRACE() {} | 54 DEFINE_INLINE_TRACE() {} |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 // The NGPhysicalConstraintSpace contains the underlying data for the | 57 // The NGPhysicalConstraintSpace contains the underlying data for the |
| 58 // NGConstraintSpace. It is not meant to be used directly as all members are in | 58 // NGConstraintSpace. It is not meant to be used directly as all members are in |
| 59 // the physical coordinate space. Instead NGConstraintSpace should be used. | 59 // the physical coordinate space. Instead NGConstraintSpace should be used. |
| 60 class CORE_EXPORT NGPhysicalConstraintSpace final | 60 class CORE_EXPORT NGPhysicalConstraintSpace final |
| 61 : public GarbageCollectedFinalized<NGPhysicalConstraintSpace> { | 61 : public GarbageCollectedFinalized<NGPhysicalConstraintSpace> { |
| 62 public: | 62 public: |
| 63 NGPhysicalConstraintSpace( |
| 64 NGPhysicalSize container_size, |
| 65 bool fixed_width, |
| 66 bool fixed_height, |
| 67 bool width_direction_triggers_scrollbar, |
| 68 bool height_direction_triggers_scrollbar, |
| 69 NGFragmentationType width_direction_fragmentation_type, |
| 70 NGFragmentationType height_direction_fragmentation_type, |
| 71 bool is_new_fc); |
| 72 |
| 63 NGPhysicalConstraintSpace(); | 73 NGPhysicalConstraintSpace(); |
| 64 NGPhysicalConstraintSpace(NGPhysicalSize); | 74 NGPhysicalConstraintSpace(NGPhysicalSize); |
| 65 | 75 |
| 66 NGPhysicalSize ContainerSize() const { return container_size_; } | 76 NGPhysicalSize ContainerSize() const { return container_size_; } |
| 67 | 77 |
| 68 void AddExclusion(const NGExclusion*, unsigned options = 0); | 78 void AddExclusion(const NGExclusion*, unsigned options = 0); |
| 69 const HeapVector<Member<const NGExclusion>>& Exclusions( | 79 const HeapVector<Member<const NGExclusion>>& Exclusions( |
| 70 unsigned options = 0) const; | 80 unsigned options = 0) const; |
| 71 | 81 |
| 72 DEFINE_INLINE_TRACE() { visitor->trace(exclusions_); } | 82 DEFINE_INLINE_TRACE() { visitor->trace(exclusions_); } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 86 // Whether the current constraint space is for the newly established | 96 // Whether the current constraint space is for the newly established |
| 87 // formatting Context | 97 // formatting Context |
| 88 unsigned is_new_fc_ : 1; | 98 unsigned is_new_fc_ : 1; |
| 89 | 99 |
| 90 HeapVector<Member<const NGExclusion>> exclusions_; | 100 HeapVector<Member<const NGExclusion>> exclusions_; |
| 91 }; | 101 }; |
| 92 | 102 |
| 93 } // namespace blink | 103 } // namespace blink |
| 94 | 104 |
| 95 #endif // NGPhysicalConstraintSpace_h | 105 #endif // NGPhysicalConstraintSpace_h |
| OLD | NEW |