diff options
author | chickenleaf <lashwinib@gmail.com> | 2024-10-18 19:12:43 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-18 13:42:43 +0000 |
commit | af6154cf630bd498f8b5afbd8a321eb4a45463b6 (patch) | |
tree | 364dcf5c2d2cfd247716eed34bc04d0aa136c263 /components/script/dom/webglrenderingcontext.rs | |
parent | fde8d72acabb6f8314efe0e66312c02a488a7613 (diff) | |
download | servo-af6154cf630bd498f8b5afbd8a321eb4a45463b6.tar.gz servo-af6154cf630bd498f8b5afbd8a321eb4a45463b6.zip |
More files with CanGc fixes (#33892)
* More files with CanGc fixes
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
* removed the can_gc inside !task
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
---------
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index c2fafc4f596..5c213c3eee2 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -87,7 +87,7 @@ use crate::dom::webgluniformlocation::WebGLUniformLocation; use crate::dom::webglvertexarrayobject::WebGLVertexArrayObject; use crate::dom::webglvertexarrayobjectoes::WebGLVertexArrayObjectOES; use crate::dom::window::Window; -use crate::script_runtime::JSContext as SafeJSContext; +use crate::script_runtime::{CanGc, JSContext as SafeJSContext}; // From the GLES 2.0.25 spec, page 85: // @@ -288,6 +288,7 @@ impl WebGLRenderingContext { webgl_version: WebGLVersion, size: Size2D<u32>, attrs: GLContextAttributes, + can_gc: CanGc, ) -> Option<DomRoot<WebGLRenderingContext>> { match WebGLRenderingContext::new_inherited(window, canvas, webgl_version, size, attrs) { Ok(ctx) => Some(reflect_dom_object(Box::new(ctx), window)), @@ -299,6 +300,7 @@ impl WebGLRenderingContext { EventBubbles::DoesNotBubble, EventCancelable::Cancelable, DOMString::from(msg), + can_gc, ); match canvas { HTMLCanvasElementOrOffscreenCanvas::HTMLCanvasElement(canvas) => { |