Title: [240652] trunk/Source/WebCore
Revision
240652
Author
[email protected]
Date
2019-01-29 06:50:43 -0800 (Tue, 29 Jan 2019)

Log Message

[LFC][BFC][MarginCollapsing] Anonymous block container's margin before does not collapse with previous inflow sibling margin after.
https://bugs.webkit.org/show_bug.cgi?id=193952

Reviewed by Antti Koivisto.

* layout/blockformatting/BlockMarginCollapse.cpp:
(WebCore::Layout::BlockFormattingContext::MarginCollapse::marginBeforeCollapsesWithPreviousSiblingMarginAfter):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (240651 => 240652)


--- trunk/Source/WebCore/ChangeLog	2019-01-29 11:00:43 UTC (rev 240651)
+++ trunk/Source/WebCore/ChangeLog	2019-01-29 14:50:43 UTC (rev 240652)
@@ -1,3 +1,13 @@
+2019-01-29  Zalan Bujtas  <[email protected]>
+
+        [LFC][BFC][MarginCollapsing] Anonymous block container's margin before does not collapse with previous inflow sibling margin after.
+        https://bugs.webkit.org/show_bug.cgi?id=193952
+
+        Reviewed by Antti Koivisto.
+
+        * layout/blockformatting/BlockMarginCollapse.cpp:
+        (WebCore::Layout::BlockFormattingContext::MarginCollapse::marginBeforeCollapsesWithPreviousSiblingMarginAfter):
+
 2019-01-29  Frederic Wang  <[email protected]>
 
         Allow scrolling tree nodes to exist in a detached state

Modified: trunk/Source/WebCore/layout/blockformatting/BlockMarginCollapse.cpp (240651 => 240652)


--- trunk/Source/WebCore/layout/blockformatting/BlockMarginCollapse.cpp	2019-01-29 11:00:43 UTC (rev 240651)
+++ trunk/Source/WebCore/layout/blockformatting/BlockMarginCollapse.cpp	2019-01-29 14:50:43 UTC (rev 240652)
@@ -151,6 +151,9 @@
 {
     ASSERT(layoutBox.isBlockLevelBox());
 
+    if (layoutBox.isAnonymous())
+        return false;
+
     if (!layoutBox.previousInFlowSibling())
         return false;
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to