Add more event names to atom list; use more atom macros.

This commit is contained in:
Corey Farwell 2016-11-06 11:03:14 -05:00
parent c62ce53efa
commit 54e490a3c8
4 changed files with 6 additions and 7 deletions

View file

@ -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 {