Title: [268818] trunk/Source/WebCore
Revision
268818
Author
an...@apple.com
Date
2020-10-21 12:34:04 -0700 (Wed, 21 Oct 2020)

Log Message

[LFC][Integration] Update style of contained layout boxes
https://bugs.webkit.org/show_bug.cgi?id=218017
<rdar://problem/70531938>

Reviewed by Zalan Bujtas.

Followup fix.

* layout/integration/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::containing):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (268817 => 268818)


--- trunk/Source/WebCore/ChangeLog	2020-10-21 19:29:59 UTC (rev 268817)
+++ trunk/Source/WebCore/ChangeLog	2020-10-21 19:34:04 UTC (rev 268818)
@@ -1,3 +1,16 @@
+2020-10-21  Antti Koivisto  <an...@apple.com>
+
+        [LFC][Integration] Update style of contained layout boxes
+        https://bugs.webkit.org/show_bug.cgi?id=218017
+        <rdar://problem/70531938>
+
+        Reviewed by Zalan Bujtas.
+
+        Followup fix.
+
+        * layout/integration/LayoutIntegrationLineLayout.cpp:
+        (WebCore::LayoutIntegration::LineLayout::containing):
+
 2020-10-21  Zalan Bujtas  <za...@apple.com>
 
         [LFC][Integration] Remove redundant vertical position snapping in the iterator interface

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp (268817 => 268818)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp	2020-10-21 19:29:59 UTC (rev 268817)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp	2020-10-21 19:34:04 UTC (rev 268818)
@@ -67,6 +67,9 @@
 
 LineLayout* LineLayout::containing(RenderObject& renderer)
 {
+    if (!is<RenderText>(renderer) && !is<RenderLineBreak>(renderer) && !is<RenderImage>(renderer))
+        return nullptr;
+    
     if (auto* parent = renderer.parent()) {
         if (is<RenderBlockFlow>(*parent))
             return downcast<RenderBlockFlow>(*parent).layoutFormattingContextLineLayout();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to