Index: third_party/WebKit/Source/core/layout/ng/NGMarginStrut.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/NGMarginStrut.h b/third_party/WebKit/Source/core/layout/ng/NGMarginStrut.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..84b3d6f4a6b3ec729f12a149de720b7d3a934948 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/layout/ng/NGMarginStrut.h |
@@ -0,0 +1,24 @@ |
+// 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 NGMarginStrut_h |
+#define NGMarginStrut_h |
+ |
+#include "core/CoreExport.h" |
+#include "platform/LayoutUnit.h" |
+ |
+namespace blink { |
+ |
+// This struct is used for the margin collapsing calculation. |
+struct NGMarginStrut { |
+ LayoutUnit marginBefore; |
cbiesinger
2016/08/09 17:33:55
CSS renamed this to margin-block-start/end:
https:
Gleb Lanbin
2016/08/09 17:37:45
Done.
|
+ LayoutUnit marginAfter; |
+ |
+ LayoutUnit negativeMarginBefore; |
+ LayoutUnit negativeMarginAfter; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // NGMarginStrut_h |