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 NGLengthUtils_h | 5 #ifndef NGLengthUtils_h |
6 #define NGLengthUtils_h | 6 #define NGLengthUtils_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/layout/ng/geometry/ng_box_strut.h" | 9 #include "core/layout/ng/geometry/ng_box_strut.h" |
10 #include "core/layout/ng/ng_min_max_content_size.h" | 10 #include "core/layout/ng/ng_min_max_content_size.h" |
11 #include "core/layout/ng/ng_writing_mode.h" | 11 #include "core/layout/ng/ng_writing_mode.h" |
12 #include "platform/text/TextDirection.h" | 12 #include "platform/text/TextDirection.h" |
13 #include "wtf/Optional.h" | 13 #include "platform/wtf/Optional.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 class ComputedStyle; | 16 class ComputedStyle; |
17 class LayoutUnit; | 17 class LayoutUnit; |
18 class Length; | 18 class Length; |
19 struct MinMaxContentSize; | 19 struct MinMaxContentSize; |
20 class NGConstraintSpace; | 20 class NGConstraintSpace; |
21 struct NGBoxStrut; | 21 struct NGBoxStrut; |
22 | 22 |
23 enum class LengthResolveType { | 23 enum class LengthResolveType { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 const LayoutUnit& inline_size, | 120 const LayoutUnit& inline_size, |
121 NGBoxStrut* margins); | 121 NGBoxStrut* margins); |
122 | 122 |
123 CORE_EXPORT LayoutUnit ConstrainByMinMax(LayoutUnit length, | 123 CORE_EXPORT LayoutUnit ConstrainByMinMax(LayoutUnit length, |
124 Optional<LayoutUnit> min, | 124 Optional<LayoutUnit> min, |
125 Optional<LayoutUnit> max); | 125 Optional<LayoutUnit> max); |
126 | 126 |
127 } // namespace blink | 127 } // namespace blink |
128 | 128 |
129 #endif // NGLengthUtils_h | 129 #endif // NGLengthUtils_h |
OLD | NEW |