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" |
11 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
12 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 // TODO(glebl@): unused, delete. | 16 // TODO(glebl@): unused, delete. |
17 enum NGExclusionType { | 17 enum NGExclusionType { |
18 NGClearNone = 0, | 18 kNGClearNone = 0, |
19 NGClearFloatLeft = 1, | 19 kNGClearFloatLeft = 1, |
20 NGClearFloatRight = 2, | 20 kNGClearFloatRight = 2, |
21 NGClearFragment = 4 | 21 kNGClearFragment = 4 |
22 }; | 22 }; |
23 | 23 |
24 enum NGFragmentationType { | 24 enum NGFragmentationType { |
25 FragmentNone, | 25 kFragmentNone, |
26 FragmentPage, | 26 kFragmentPage, |
27 FragmentColumn, | 27 kFragmentColumn, |
28 FragmentRegion | 28 kFragmentRegion |
29 }; | 29 }; |
30 | 30 |
31 // The NGPhysicalConstraintSpace contains the underlying data for the | 31 // The NGPhysicalConstraintSpace contains the underlying data for the |
32 // NGConstraintSpace. It is not meant to be used directly as all members are in | 32 // NGConstraintSpace. It is not meant to be used directly as all members are in |
33 // the physical coordinate space. Instead NGConstraintSpace should be used. | 33 // the physical coordinate space. Instead NGConstraintSpace should be used. |
34 class CORE_EXPORT NGPhysicalConstraintSpace final | 34 class CORE_EXPORT NGPhysicalConstraintSpace final |
35 : public GarbageCollectedFinalized<NGPhysicalConstraintSpace> { | 35 : public GarbageCollectedFinalized<NGPhysicalConstraintSpace> { |
36 public: | 36 public: |
37 NGPhysicalConstraintSpace( | 37 NGPhysicalConstraintSpace( |
38 NGPhysicalSize available_size, | 38 NGPhysicalSize available_size, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // rule for floats and for the support of CSS "clear" property. | 81 // rule for floats and for the support of CSS "clear" property. |
82 const NGExclusion* last_left_float_exclusion_; // Owned by exclusions_. | 82 const NGExclusion* last_left_float_exclusion_; // Owned by exclusions_. |
83 const NGExclusion* last_right_float_exclusion_; // Owned by exclusions_. | 83 const NGExclusion* last_right_float_exclusion_; // Owned by exclusions_. |
84 | 84 |
85 Vector<std::unique_ptr<const NGExclusion>> exclusions_; | 85 Vector<std::unique_ptr<const NGExclusion>> exclusions_; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace blink | 88 } // namespace blink |
89 | 89 |
90 #endif // NGPhysicalConstraintSpace_h | 90 #endif // NGPhysicalConstraintSpace_h |
OLD | NEW |