mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Expose WebGL-related interfaces only in Window
This commit is contained in:
parent
6210bede8b
commit
8af2327e95
26 changed files with 82 additions and 67 deletions
|
@ -2426,7 +2426,7 @@ impl DocumentMethods for Document {
|
|||
)
|
||||
)),
|
||||
"webglcontextevent" =>
|
||||
Ok(Root::upcast(WebGLContextEvent::new_uninitialized(self.window.upcast()))),
|
||||
Ok(Root::upcast(WebGLContextEvent::new_uninitialized(&self.window))),
|
||||
"storageevent" => {
|
||||
let USVString(url) = self.URL();
|
||||
Ok(Root::upcast(StorageEvent::new_uninitialized(&self.window, DOMString::from(url))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue