mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
implement webglcontextevent
This commit is contained in:
parent
1946c71a96
commit
cba0267ed4
3 changed files with 14 additions and 24 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue