Index: third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h b/third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h |
index cbfe3838b6784127237e19c0d6ea703cd0257834..bfc24f63073b65b69e2a4ce2e9aede6f2a683cc7 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h |
@@ -10,6 +10,17 @@ |
namespace blink { |
+// Stores the four margins of a box |
+struct NGBoxMargins { |
+ LayoutUnit inlineStart; |
+ LayoutUnit inlineEnd; |
+ LayoutUnit blockStart; |
+ LayoutUnit blockEnd; |
+ |
+ LayoutUnit inlineSum() const { return inlineStart + inlineEnd; } |
+ LayoutUnit blockSum() const { return blockStart + blockEnd; } |
+}; |
+ |
// This struct is used for the margin collapsing calculation. |
struct NGMarginStrut { |
LayoutUnit marginBlockStart; |