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

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

Issue 2389823003: Fix incorrectly calculated content_size for fragments that create new FC (Closed)
Patch Set: Created 4 years, 2 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
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.

Powered by Google App Engine
This is Rietveld 408576698