Title: [288829] trunk/Source/WebCore
Revision
288829
Author
[email protected]
Date
2022-01-31 12:29:49 -0800 (Mon, 31 Jan 2022)

Log Message

LineLayout::collectOverflow() should null check m_inlineContent
https://bugs.webkit.org/show_bug.cgi?id=235902
rdar://87402815

Reviewed by Alan Bujtas.

Speculative fix but it can be null.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (288828 => 288829)


--- trunk/Source/WebCore/ChangeLog	2022-01-31 20:29:30 UTC (rev 288828)
+++ trunk/Source/WebCore/ChangeLog	2022-01-31 20:29:49 UTC (rev 288829)
@@ -1,3 +1,16 @@
+2022-01-31  Antti Koivisto  <[email protected]>
+
+        LineLayout::collectOverflow() should null check m_inlineContent
+        https://bugs.webkit.org/show_bug.cgi?id=235902
+        rdar://87402815
+
+        Reviewed by Alan Bujtas.
+
+        Speculative fix but it can be null.
+
+        * layout/integration/LayoutIntegrationLineLayout.cpp:
+        (WebCore::LayoutIntegration::LineLayout::collectOverflow):
+
 2022-01-31  Takeshi Sone  <[email protected]>
 
         Changed playbackRate and defaultPlaybackRate from unrestricted double

Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp (288828 => 288829)


--- trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp	2022-01-31 20:29:30 UTC (rev 288828)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp	2022-01-31 20:29:49 UTC (rev 288829)
@@ -414,7 +414,10 @@
 
 void LineLayout::collectOverflow()
 {
-    for (auto& line : inlineContent()->lines) {
+    if (!m_inlineContent)
+        return;
+
+    for (auto& line : m_inlineContent->lines) {
         flow().addLayoutOverflow(Layout::toLayoutRect(line.scrollableOverflow()));
         if (!flow().hasNonVisibleOverflow())
             flow().addVisualOverflow(Layout::toLayoutRect(line.inkOverflow()));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to