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

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

Issue 2266313002: [layoutng] Create a more correct constraint space for children (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 4 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698