mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
|
@ -15,7 +15,6 @@ use dom::promise::Promise;
|
|||
use dom::serviceworker::ServiceWorker;
|
||||
use dom::serviceworkerregistration::ServiceWorkerRegistration;
|
||||
use script_thread::ScriptThread;
|
||||
use servo_atoms::Atom;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::default::Default;
|
||||
use std::rc::Rc;
|
||||
|
@ -46,7 +45,7 @@ pub trait Controllable {
|
|||
impl Controllable for ServiceWorkerContainer {
|
||||
fn set_controller(&self, active_worker: &ServiceWorker) {
|
||||
self.controller.set(Some(active_worker));
|
||||
self.upcast::<EventTarget>().fire_event(Atom::from("controllerchange"));
|
||||
self.upcast::<EventTarget>().fire_event(atom!("controllerchange"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue