mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
refactor: propagate CanGc arguments through callers (#35591)
Signed-off-by: Auguste Baum <auguste.apple@gmail.com>
This commit is contained in:
parent
02199520f2
commit
b0b0289014
74 changed files with 403 additions and 275 deletions
|
@ -445,12 +445,13 @@ impl HTMLFormElementMethods<crate::DomTypeHolder> for HTMLFormElement {
|
|||
let name = Atom::from(name);
|
||||
|
||||
// Step 1
|
||||
let mut candidates = RadioNodeList::new_controls_except_image_inputs(&window, self, &name);
|
||||
let mut candidates =
|
||||
RadioNodeList::new_controls_except_image_inputs(&window, self, &name, CanGc::note());
|
||||
let mut candidates_length = candidates.Length();
|
||||
|
||||
// Step 2
|
||||
if candidates_length == 0 {
|
||||
candidates = RadioNodeList::new_images(&window, self, &name);
|
||||
candidates = RadioNodeList::new_images(&window, self, &name, CanGc::note());
|
||||
candidates_length = candidates.Length();
|
||||
}
|
||||
|
||||
|
@ -1260,7 +1261,7 @@ impl HTMLFormElement {
|
|||
|
||||
let event = self
|
||||
.upcast::<EventTarget>()
|
||||
.fire_bubbling_cancelable_event(atom!("reset"), CanGc::note());
|
||||
.fire_bubbling_cancelable_event(atom!("reset"), can_gc);
|
||||
if event.DefaultPrevented() {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue