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

Unified Diff: third_party/WebKit/Source/core/layout/ng/NGUnits.h

Issue 2229523004: [LayoutNG] Add units structures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/NGUnits.h
diff --git a/third_party/WebKit/Source/core/layout/ng/NGUnits.h b/third_party/WebKit/Source/core/layout/ng/NGUnits.h
new file mode 100644
index 0000000000000000000000000000000000000000..f511c099e5d6b3000648ce353139540a009869c1
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/NGUnits.h
@@ -0,0 +1,44 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NGUnits_h
+#define NGUnits_h
+
+namespace blink {
+
+class LayoutUnit;
+
+struct NGLogicalSize {
+ LayoutUnit inlineSize;
+ LayoutUnit blockSize;
+};
+
+struct NGLogicalOffset {
+ LayoutUnit inlineOffset;
+ LayoutUnit blockOffset;
+};
+
+struct NGPhysicalSize {
+ LayoutUnit width;
+ LayoutUnit height;
+};
+
+struct NGPhysicalLocation {
+ LayoutUnit x;
+ LayoutUnit y;
ikilpatrick 2016/08/09 16:21:56 If we want to be as close to the css specs as poss
cbiesinger 2016/08/09 16:36:43 Done.
+};
+
eae 2016/08/09 16:19:39 Add NGPhysicalRect (in addition) and a NGPixelSnap
cbiesinger 2016/08/09 16:36:43 Done.
+struct NGPixelSnappedPhysicalSize {
+ int width;
+ int height;
+};
+
+struct NGPixelSnappedPhysicalLocation {
+ int x;
+ int y;
+};
+
+} // namespace blink
+
+#endif // NGUnits_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698