Title: [295457] trunk/Source/WebCore/dom/Document.cpp
Revision
295457
Author
[email protected]
Date
2022-06-10 11:19:56 -0700 (Fri, 10 Jun 2022)

Log Message

Special case bitmap renderers in Document::getCSSCanvasContext
https://bugs.webkit.org/show_bug.cgi?id=241505

Patch by Rob Buis <[email protected]> on 2022-06-10
Reviewed by Alex Christensen.

Special case bitmap renderers in Document::getCSSCanvasContext.

* Source/WebCore/dom/Document.cpp:
(WebCore::Document::getCSSCanvasContext):

Canonical link: https://commits.webkit.org/251463@main

Modified Paths

Diff

Modified: trunk/Source/WebCore/dom/Document.cpp (295456 => 295457)


--- trunk/Source/WebCore/dom/Document.cpp	2022-06-10 17:29:29 UTC (rev 295456)
+++ trunk/Source/WebCore/dom/Document.cpp	2022-06-10 18:19:56 UTC (rev 295457)
@@ -6580,6 +6580,9 @@
         return RenderingContext { RefPtr<WebGL2RenderingContext> { &downcast<WebGL2RenderingContext>(*context) } };
 #endif
 
+    if (is<ImageBitmapRenderingContext>(*context))
+        return RenderingContext { RefPtr<ImageBitmapRenderingContext> { &downcast<ImageBitmapRenderingContext>(*context) } };
+
     return RenderingContext { RefPtr<CanvasRenderingContext2D> { &downcast<CanvasRenderingContext2D>(*context) } };
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to