Title: [270653] trunk/Source/WebCore
- Revision
- 270653
- Author
- [email protected]
- Date
- 2020-12-10 14:01:33 -0800 (Thu, 10 Dec 2020)
Log Message
[GPU Process] Crash when loading drinktrade.com
https://bugs.webkit.org/show_bug.cgi?id=219752
Reviewed by Tim Horton.
Fix an overrelease when rendering color emoji fonts by removing an extraneous `adoptCF` around a `CGImageRef`.
This `CGImageRef` is not a retained (+1) object, so we need to make sure that it is retained when tracking it in
the display list's native image cache.
Layout test: fast/text/emoji.html
* platform/graphics/displaylists/DisplayListDrawGlyphsRecorderCoreText.cpp:
(WebCore::DisplayList::DrawGlyphsRecorder::recordDrawImage):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (270652 => 270653)
--- trunk/Source/WebCore/ChangeLog 2020-12-10 21:28:18 UTC (rev 270652)
+++ trunk/Source/WebCore/ChangeLog 2020-12-10 22:01:33 UTC (rev 270653)
@@ -1,3 +1,19 @@
+2020-12-10 Wenson Hsieh <[email protected]>
+
+ [GPU Process] Crash when loading drinktrade.com
+ https://bugs.webkit.org/show_bug.cgi?id=219752
+
+ Reviewed by Tim Horton.
+
+ Fix an overrelease when rendering color emoji fonts by removing an extraneous `adoptCF` around a `CGImageRef`.
+ This `CGImageRef` is not a retained (+1) object, so we need to make sure that it is retained when tracking it in
+ the display list's native image cache.
+
+ Layout test: fast/text/emoji.html
+
+ * platform/graphics/displaylists/DisplayListDrawGlyphsRecorderCoreText.cpp:
+ (WebCore::DisplayList::DrawGlyphsRecorder::recordDrawImage):
+
2020-12-10 Andres Gonzalez <[email protected]>
Rework of AXObjectCache::isIsolatedTreeEnabled.
Modified: trunk/Source/WebCore/platform/graphics/displaylists/DisplayListDrawGlyphsRecorderCoreText.cpp (270652 => 270653)
--- trunk/Source/WebCore/platform/graphics/displaylists/DisplayListDrawGlyphsRecorderCoreText.cpp 2020-12-10 21:28:18 UTC (rev 270652)
+++ trunk/Source/WebCore/platform/graphics/displaylists/DisplayListDrawGlyphsRecorderCoreText.cpp 2020-12-10 22:01:33 UTC (rev 270653)
@@ -352,7 +352,7 @@
m_owner.translate(0, rect.size.height + 2 * rect.origin.y);
m_owner.scale(FloatSize(1, -1));
- auto image = NativeImage::create(adoptCF(cgImage));
+ auto image = NativeImage::create(cgImage);
m_owner.drawNativeImage(*image, image->size(), FloatRect(rect), FloatRect {{ }, image->size()}, ImagePaintingOptions { ImageOrientation::OriginTopLeft });
// Undo the above y-flip to restore the context.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes