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 NGUnits_h | 5 #ifndef NGUnits_h |
6 #define NGUnits_h | 6 #define NGUnits_h |
7 | 7 |
8 #include "platform/LayoutUnit.h" | 8 #include "platform/LayoutUnit.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 class LayoutUnit; | 12 class LayoutUnit; |
13 | 13 |
14 struct NGLogicalSize { | 14 struct NGLogicalSize { |
| 15 NGLogicalSize() {} |
| 16 NGLogicalSize(LayoutUnit inlineSize, LayoutUnit blockSize) |
| 17 : inlineSize(inlineSize), blockSize(blockSize) {} |
| 18 |
15 LayoutUnit inlineSize; | 19 LayoutUnit inlineSize; |
16 LayoutUnit blockSize; | 20 LayoutUnit blockSize; |
17 }; | 21 }; |
18 | 22 |
19 struct NGLogicalOffset { | 23 struct NGLogicalOffset { |
20 LayoutUnit inlineOffset; | 24 LayoutUnit inlineOffset; |
21 LayoutUnit blockOffset; | 25 LayoutUnit blockOffset; |
22 }; | 26 }; |
23 | 27 |
24 struct NGPhysicalSize { | 28 struct NGPhysicalSize { |
(...skipping 14 matching lines...) Expand all Loading... |
39 struct NGPixelSnappedPhysicalRect { | 43 struct NGPixelSnappedPhysicalRect { |
40 int top; | 44 int top; |
41 int left; | 45 int left; |
42 int width; | 46 int width; |
43 int height; | 47 int height; |
44 }; | 48 }; |
45 | 49 |
46 } // namespace blink | 50 } // namespace blink |
47 | 51 |
48 #endif // NGUnits_h | 52 #endif // NGUnits_h |
OLD | NEW |