Index: third_party/WebKit/Source/core/layout/ng/ng_units.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_units.h b/third_party/WebKit/Source/core/layout/ng/ng_units.h |
index 2d8ad7e008801f837ca871fdb9ebdb9236f88590..7b466188b3a8aafbbe10bfc134b88ce74af0b8c2 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_units.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_units.h |
@@ -47,6 +47,18 @@ struct NGPixelSnappedPhysicalRect { |
int height; |
}; |
+// This struct is used for storing margins, borders or padding of a box on all |
+// four edges. |
+struct NGBoxStrut { |
+ LayoutUnit inline_start; |
+ LayoutUnit inline_end; |
+ LayoutUnit block_start; |
+ LayoutUnit block_end; |
+ |
+ LayoutUnit InlineSum() const { return inline_start + inline_end; } |
+ LayoutUnit BlockSum() const { return block_start + block_end; } |
+}; |
+ |
} // namespace blink |
#endif // NGUnits_h |