OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 NGSpaceUtils_h | 5 #ifndef NGSpaceUtils_h |
6 #define NGSpaceUtils_h | 6 #define NGSpaceUtils_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/LayoutUnit.h" | 9 #include "platform/LayoutUnit.h" |
10 #include "wtf/Optional.h" | 10 #include "platform/wtf/Optional.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class ComputedStyle; | 14 class ComputedStyle; |
15 struct NGExclusions; | 15 struct NGExclusions; |
16 class NGLayoutInputNode; | 16 class NGLayoutInputNode; |
17 | 17 |
18 // Whether an in-flow child creates a new formatting context. | 18 // Whether an in-flow child creates a new formatting context. |
19 // | 19 // |
20 // This will *NOT* check the following cases: | 20 // This will *NOT* check the following cases: |
(...skipping 12 matching lines...) Expand all Loading... |
33 | 33 |
34 // Whether child's constraint space should shrink to its intrinsic width. | 34 // Whether child's constraint space should shrink to its intrinsic width. |
35 // This is needed for buttons, select, input, floats and orthogonal children. | 35 // This is needed for buttons, select, input, floats and orthogonal children. |
36 // See LayoutBox::sizesLogicalWidthToFitContent for the rationale behind this. | 36 // See LayoutBox::sizesLogicalWidthToFitContent for the rationale behind this. |
37 bool ShouldShrinkToFit(const ComputedStyle& parent_style, | 37 bool ShouldShrinkToFit(const ComputedStyle& parent_style, |
38 const ComputedStyle& style); | 38 const ComputedStyle& style); |
39 | 39 |
40 } // namespace blink | 40 } // namespace blink |
41 | 41 |
42 #endif // NGSpaceUtils_h | 42 #endif // NGSpaceUtils_h |
OLD | NEW |