OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef NGRelativeUtils_h | |
6 #define NGRelativeUtils_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "core/layout/ng/geometry/ng_logical_size.h" | |
10 #include "platform/text/TextDirection.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class ComputedStyle; | |
15 struct NGLogicalOffset; | |
16 | |
17 // Implements relative positioning spec: | |
18 // https://www.w3.org/TR/css-position-3/#rel-pos | |
19 // Return relative position as defined by style. | |
ikilpatrick
2017/03/21 17:51:17
"Returns the relative position offset as defined b
atotic
2017/03/21 19:13:54
done
| |
20 CORE_EXPORT NGLogicalOffset | |
21 ComputeRelativeOffset(const ComputedStyle& child_style, | |
22 NGWritingMode container_writing_mode, | |
23 TextDirection container_direction, | |
24 NGLogicalSize container_size); | |
25 | |
26 } // namespace blink | |
27 | |
28 #endif // NGRelativeUtils_h | |
OLD | NEW |