Title: [276254] trunk/Source/WebCore
Revision
276254
Author
[email protected]
Date
2021-04-19 08:21:58 -0700 (Mon, 19 Apr 2021)

Log Message

[LFC] Layout containment box establishes an independent formatting context
https://bugs.webkit.org/show_bug.cgi?id=224753

Reviewed by Antti Koivisto.

https://www.w3.org/TR/css-contain-2/#containment-layout.

"The layout containment box establishes an independent formatting context."

* layout/layouttree/LayoutBox.cpp:
(WebCore::Layout::Box::establishesIndependentFormattingContext const):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (276253 => 276254)


--- trunk/Source/WebCore/ChangeLog	2021-04-19 15:18:33 UTC (rev 276253)
+++ trunk/Source/WebCore/ChangeLog	2021-04-19 15:21:58 UTC (rev 276254)
@@ -1,3 +1,17 @@
+2021-04-19  Zalan Bujtas  <[email protected]>
+
+        [LFC] Layout containment box establishes an independent formatting context
+        https://bugs.webkit.org/show_bug.cgi?id=224753
+
+        Reviewed by Antti Koivisto.
+
+        https://www.w3.org/TR/css-contain-2/#containment-layout.
+
+        "The layout containment box establishes an independent formatting context."
+
+        * layout/layouttree/LayoutBox.cpp:
+        (WebCore::Layout::Box::establishesIndependentFormattingContext const):
+
 2021-04-19  Michael Catanzaro  <[email protected]>
 
         Silence various -Wreturn-type warnings

Modified: trunk/Source/WebCore/layout/layouttree/LayoutBox.cpp (276253 => 276254)


--- trunk/Source/WebCore/layout/layouttree/LayoutBox.cpp	2021-04-19 15:18:33 UTC (rev 276253)
+++ trunk/Source/WebCore/layout/layouttree/LayoutBox.cpp	2021-04-19 15:21:58 UTC (rev 276254)
@@ -134,8 +134,7 @@
 
 bool Box::establishesIndependentFormattingContext() const
 {
-    // FIXME: This is where we would check for 'contain' property.
-    return isAbsolutelyPositioned() || isFlexItem();
+    return isLayoutContainmentBox() || isAbsolutelyPositioned() || isFlexItem();
 }
 
 bool Box::isRelativelyPositioned() const
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to