mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Migrate EventTarget
event firing functions to use Atom
s.
This allows us to utilize more `atom` macros.
This commit is contained in:
parent
80575c3d2e
commit
f447040ea9
16 changed files with 42 additions and 33 deletions
|
@ -849,8 +849,8 @@ impl HTMLInputElement {
|
|||
let filelist = FileList::new(&window, files);
|
||||
self.filelist.set(Some(&filelist));
|
||||
|
||||
target.fire_bubbling_event("input");
|
||||
target.fire_bubbling_event("change");
|
||||
target.fire_bubbling_event(atom!("input"));
|
||||
target.fire_bubbling_event(atom!("change"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1286,8 +1286,8 @@ impl Activatable for HTMLInputElement {
|
|||
// https://html.spec.whatwg.org/multipage/#radio-button-state-(type=radio):activation-behavior
|
||||
// Check if document owner is fully active
|
||||
let target = self.upcast::<EventTarget>();
|
||||
target.fire_bubbling_event("input");
|
||||
target.fire_bubbling_event("change");
|
||||
target.fire_bubbling_event(atom!("input"));
|
||||
target.fire_bubbling_event(atom!("change"));
|
||||
},
|
||||
InputType::InputFile => self.select_files(None),
|
||||
_ => ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue