mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Expose PageTransitionEvent only in Window
This commit is contained in:
parent
ba0bf3a066
commit
bd5ffd2833
5 changed files with 10 additions and 13 deletions
|
@ -2622,7 +2622,7 @@ impl DocumentMethods for Document {
|
|||
"mouseevent" | "mouseevents" =>
|
||||
Ok(Root::upcast(MouseEvent::new_uninitialized(&self.window))),
|
||||
"pagetransitionevent" =>
|
||||
Ok(Root::upcast(PageTransitionEvent::new_uninitialized(self.window.upcast()))),
|
||||
Ok(Root::upcast(PageTransitionEvent::new_uninitialized(&self.window))),
|
||||
"popstateevent" =>
|
||||
Ok(Root::upcast(PopStateEvent::new_uninitialized(self.window.upcast()))),
|
||||
"progressevent" =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue