Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
|
ikilpatrick
2017/03/16 19:08:36
2017
atotic
2017/03/20 17:31:45
done
| |
| 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. | |
| 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 |