mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove "fire a simple event" concept, refactor event firing API.
"fire a simple event" concept was removed in https://github.com/whatwg/html/pull/1933.
This commit is contained in:
parent
5b4cc9568d
commit
c3b279a4c3
15 changed files with 58 additions and 52 deletions
|
@ -330,7 +330,7 @@ impl Runnable for EventRunnable {
|
|||
|
||||
fn handler(self: Box<EventRunnable>) {
|
||||
let target = self.target.root();
|
||||
target.fire_event(&*self.name, self.bubbles, self.cancelable);
|
||||
target.fire_event_with_params(&*self.name, self.bubbles, self.cancelable);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -345,6 +345,6 @@ impl Runnable for SimpleEventRunnable {
|
|||
|
||||
fn handler(self: Box<SimpleEventRunnable>) {
|
||||
let target = self.target.root();
|
||||
target.fire_simple_event(&*self.name);
|
||||
target.fire_event(&*self.name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue