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 NGAbsoluteUtils_h | 5 #ifndef NGAbsoluteUtils_h |
6 #define NGAbsoluteUtils_h | 6 #define NGAbsoluteUtils_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/geometry/ng_physical_size.h" | 10 #include "core/layout/ng/geometry/ng_physical_size.h" |
11 #include "core/layout/ng/geometry/ng_static_position.h" | 11 #include "core/layout/ng/geometry/ng_static_position.h" |
12 #include "core/layout/ng/ng_min_max_content_size.h" | 12 #include "core/layout/ng/ng_min_max_content_size.h" |
13 #include "platform/LayoutUnit.h" | 13 #include "platform/LayoutUnit.h" |
14 #include "wtf/Optional.h" | 14 #include "platform/wtf/Optional.h" |
15 | 15 |
16 namespace blink { | 16 namespace blink { |
17 | 17 |
18 class ComputedStyle; | 18 class ComputedStyle; |
19 class NGConstraintSpace; | 19 class NGConstraintSpace; |
20 | 20 |
21 struct CORE_EXPORT NGAbsolutePhysicalPosition { | 21 struct CORE_EXPORT NGAbsolutePhysicalPosition { |
22 NGPhysicalBoxStrut inset; | 22 NGPhysicalBoxStrut inset; |
23 NGPhysicalSize size; | 23 NGPhysicalSize size; |
24 String ToString() const; | 24 String ToString() const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const NGStaticPosition&, | 62 const NGStaticPosition&, |
63 const Optional<LayoutUnit>& child_block_size, | 63 const Optional<LayoutUnit>& child_block_size, |
64 NGAbsolutePhysicalPosition* position); | 64 NGAbsolutePhysicalPosition* position); |
65 | 65 |
66 // TODO(atotic) Absolute coordinates for replaced elements | 66 // TODO(atotic) Absolute coordinates for replaced elements |
67 // ComputeAbsoluteReplaced. | 67 // ComputeAbsoluteReplaced. |
68 // https://www.w3.org/TR/css-position-3/#abs-replaced-width | 68 // https://www.w3.org/TR/css-position-3/#abs-replaced-width |
69 } // namespace blink | 69 } // namespace blink |
70 | 70 |
71 #endif // NGAbsoluteUtils_h | 71 #endif // NGAbsoluteUtils_h |
OLD | NEW |