Title: [283641] trunk/Source/WebCore
- Revision
- 283641
- Author
- [email protected]
- Date
- 2021-10-06 11:39:26 -0700 (Wed, 06 Oct 2021)
Log Message
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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (283640 => 283641)
--- trunk/Source/WebCore/ChangeLog 2021-10-06 18:34:11 UTC (rev 283640)
+++ trunk/Source/WebCore/ChangeLog 2021-10-06 18:39:26 UTC (rev 283641)
@@ -1,3 +1,15 @@
+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-06 Tim Horton <[email protected]>
ASSERTion failure in WebCore::deviceClass() on macCatalyst
Modified: trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContent.cpp (283640 => 283641)
--- trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContent.cpp 2021-10-06 18:34:11 UTC (rev 283640)
+++ trunk/Source/WebCore/layout/integration/LayoutIntegrationInlineContent.cpp 2021-10-06 18:39:26 UTC (rev 283641)
@@ -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