Title: [283664] branches/safari-613.1.4-branch/Source/WebCore
Revision
283664
Author
[email protected]
Date
2021-10-06 14:23:56 -0700 (Wed, 06 Oct 2021)

Log Message

Cherry-pick r283641. rdar://problem/83951373

    Clear glyph cache in InlineContent::clearAndDetach
    https://bugs.webkit.org/show_bug.cgi?id=231312

    Reviewed by Alan Bujtas.

    We may be leaving stale glyph cache entries behind.

    * layout/integration/LayoutIntegrationInlineContent.cpp:
    (WebCore::LayoutIntegration::InlineContent::clearAndDetach):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283641 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-613.1.4-branch/Source/WebCore/ChangeLog (283663 => 283664)


--- branches/safari-613.1.4-branch/Source/WebCore/ChangeLog	2021-10-06 21:23:54 UTC (rev 283663)
+++ branches/safari-613.1.4-branch/Source/WebCore/ChangeLog	2021-10-06 21:23:56 UTC (rev 283664)
@@ -1,3 +1,32 @@
+2021-10-06  Alan Coon  <[email protected]>
+
+        Cherry-pick r283641. rdar://problem/83951373
+
+    Clear glyph cache in InlineContent::clearAndDetach
+    https://bugs.webkit.org/show_bug.cgi?id=231312
+    
+    Reviewed by Alan Bujtas.
+    
+    We may be leaving stale glyph cache entries behind.
+    
+    * layout/integration/LayoutIntegrationInlineContent.cpp:
+    (WebCore::LayoutIntegration::InlineContent::clearAndDetach):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2021-10-06  Antti Koivisto  <[email protected]>
+
+            Clear glyph cache in InlineContent::clearAndDetach
+            https://bugs.webkit.org/show_bug.cgi?id=231312
+
+            Reviewed by Alan Bujtas.
+
+            We may be leaving stale glyph cache entries behind.
+
+            * layout/integration/LayoutIntegrationInlineContent.cpp:
+            (WebCore::LayoutIntegration::InlineContent::clearAndDetach):
+
 2021-10-04  Kate Cheney  <[email protected]>
 
         Unreviewed maccatalyst build fix.

Modified: branches/safari-613.1.4-branch/Source/WebCore/layout/integration/LayoutIntegrationInlineContent.cpp (283663 => 283664)


--- branches/safari-613.1.4-branch/Source/WebCore/layout/integration/LayoutIntegrationInlineContent.cpp	2021-10-06 21:23:54 UTC (rev 283663)
+++ branches/safari-613.1.4-branch/Source/WebCore/layout/integration/LayoutIntegrationInlineContent.cpp	2021-10-06 21:23:56 UTC (rev 283664)
@@ -145,6 +145,9 @@
 
 void InlineContent::clearAndDetach()
 {
+    for (auto& box : boxes)
+        TextPainter::removeGlyphDisplayList(box);
+
     releaseCaches();
     boxes.clear();
     lines.clear();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to