aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglcontextevent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webglcontextevent.rs')
-rw-r--r--components/script/dom/webglcontextevent.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/script/dom/webglcontextevent.rs b/components/script/dom/webglcontextevent.rs
index ac93727eb7c..fa785146499 100644
--- a/components/script/dom/webglcontextevent.rs
+++ b/components/script/dom/webglcontextevent.rs
@@ -41,6 +41,17 @@ impl WebGLContextEvent {
}
}
+ pub fn new_uninitialized(global_ref: GlobalRef) -> Root<WebGLContextEvent> {
+ // according to https://www.khronos.org/registry/webgl/specs/1.0/#5.15 this is
+ // additional information or the empty string if no additional information is
+ // available.
+ let status_message = DOMString::new();
+ reflect_dom_object(
+ box WebGLContextEvent::new_inherited(status_message),
+ global_ref,
+ WebGLContextEventBinding::Wrap)
+ }
+
pub fn new(global: GlobalRef,
type_: Atom,
bubbles: EventBubbles,