Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_relative_utils.h

Issue 2755733003: Implement relative utilities (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698