Index: third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h |
index 524ac679dc2c58bfc2afd789fd7d5f2499738362..0aa42c8eedaccd8b23a706dca1e9c9507ff4e645 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_fragment_builder.h |
@@ -30,6 +30,14 @@ class CORE_EXPORT NGFragmentBuilder final |
NGFragmentBuilder& SetMarginStrutBlockStart(const NGMarginStrut& from); |
NGFragmentBuilder& SetMarginStrutBlockEnd(const NGMarginStrut& from); |
+ // Clears the fragment's margin strut. |
+ // This is needed if we know that the fragment's margin strut will not |
+ // participate in Collapsing Margins, for example if the fragment establishes |
+ // a new formatting context. |
+ NGFragmentBuilder& ClearMarginStrut(); |
+ |
+ NGMarginStrut& MarginStrut() { return margin_strut_; } |
+ |
// Offsets are not supposed to be set during fragment construction, so we |
// do not provide a setter here. |