diff options
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 02d640f1715..f82188c7b86 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -77,6 +77,7 @@ use dom::touchevent::TouchEvent; use dom::touchlist::TouchList; use dom::treewalker::TreeWalker; use dom::uievent::UIEvent; +use dom::webglcontextevent::WebGLContextEvent; use dom::window::{ReflowReason, Window}; use encoding::EncodingRef; use encoding::all::UTF_8; @@ -2168,6 +2169,8 @@ impl DocumentMethods for Document { &TouchList::new(&self.window, &[]), ) )), + "webglcontextevent" => + Ok(Root::upcast(WebGLContextEvent::new_uninitialized(GlobalRef::Window(&self.window)))), _ => Err(Error::NotSupported), } |