Title: [261690] trunk/Source/WebCore
- Revision
- 261690
- Author
- svil...@igalia.com
- Date
- 2020-05-14 07:46:08 -0700 (Thu, 14 May 2020)
Log Message
Unreviewed build fix.
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::createContextWebGL): downcast m_context to
WebGLRenderingContextBase before calling isXRCompatible(). It's created
as a WebGLRenderingContextBase but stored in a CanvasRenderingContext.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (261689 => 261690)
--- trunk/Source/WebCore/ChangeLog 2020-05-14 14:34:46 UTC (rev 261689)
+++ trunk/Source/WebCore/ChangeLog 2020-05-14 14:46:08 UTC (rev 261690)
@@ -1,3 +1,12 @@
+2020-05-14 Sergio Villar Senin <svil...@igalia.com>
+
+ Unreviewed build fix.
+
+ * html/HTMLCanvasElement.cpp:
+ (WebCore::HTMLCanvasElement::createContextWebGL): downcast m_context to
+ WebGLRenderingContextBase before calling isXRCompatible(). It's created
+ as a WebGLRenderingContextBase but stored in a CanvasRenderingContext.
+
2020-05-14 Andres Gonzalez <andresg...@apple.com>
Replacing and inserting text need to be dispatched to the main thread.
Modified: trunk/Source/WebCore/html/HTMLCanvasElement.cpp (261689 => 261690)
--- trunk/Source/WebCore/html/HTMLCanvasElement.cpp 2020-05-14 14:34:46 UTC (rev 261689)
+++ trunk/Source/WebCore/html/HTMLCanvasElement.cpp 2020-05-14 14:46:08 UTC (rev 261690)
@@ -438,7 +438,7 @@
// Need to make sure a RenderLayer and compositing layer get created for the Canvas.
invalidateStyleAndLayerComposition();
#if ENABLE(WEBXR)
- ASSERT(!attrs.xrCompatible || m_context.isXRCompatible());
+ ASSERT(!attrs.xrCompatible || downcast<WebGLRenderingContextBase>(m_context.get())->isXRCompatible());
#endif
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes