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
|
@ -56,12 +56,12 @@ impl ServiceWorker {
|
|||
|
||||
pub fn dispatch_simple_error(address: TrustedServiceWorkerAddress) {
|
||||
let service_worker = address.root();
|
||||
service_worker.upcast().fire_simple_event("error");
|
||||
service_worker.upcast().fire_event("error");
|
||||
}
|
||||
|
||||
pub fn set_transition_state(&self, state: ServiceWorkerState) {
|
||||
self.state.set(state);
|
||||
self.upcast::<EventTarget>().fire_simple_event("statechange");
|
||||
self.upcast::<EventTarget>().fire_event("statechange");
|
||||
}
|
||||
|
||||
pub fn get_script_url(&self) -> Url {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue