mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add more event names to atom list; use more atom
macros.
This commit is contained in:
parent
c62ce53efa
commit
54e490a3c8
4 changed files with 6 additions and 7 deletions
|
@ -18,7 +18,6 @@ use dom::globalscope::GlobalScope;
|
|||
use js::jsapi::{HandleValue, JSContext};
|
||||
use script_thread::Runnable;
|
||||
use script_traits::{ScriptMsg, DOMMessage};
|
||||
use servo_atoms::Atom;
|
||||
use std::cell::Cell;
|
||||
use url::Url;
|
||||
|
||||
|
@ -62,7 +61,7 @@ impl ServiceWorker {
|
|||
|
||||
pub fn set_transition_state(&self, state: ServiceWorkerState) {
|
||||
self.state.set(state);
|
||||
self.upcast::<EventTarget>().fire_event(Atom::from("statechange"));
|
||||
self.upcast::<EventTarget>().fire_event(atom!("statechange"));
|
||||
}
|
||||
|
||||
pub fn get_script_url(&self) -> Url {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue