mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Multiple CanGc fixes in components/script/dom (#33924)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
ee9e1fbbd6
commit
65c866285f
26 changed files with 77 additions and 37 deletions
|
@ -2072,7 +2072,7 @@ impl HTMLInputElement {
|
|||
// but we can get here from synthetic keydown events
|
||||
button
|
||||
.upcast::<Node>()
|
||||
.fire_synthetic_mouse_event_not_trusted(DOMString::from("click"));
|
||||
.fire_synthetic_mouse_event_not_trusted(DOMString::from("click"), can_gc);
|
||||
}
|
||||
},
|
||||
None => {
|
||||
|
@ -2801,7 +2801,7 @@ impl Activatable for HTMLInputElement {
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#run-post-click-activation-steps
|
||||
fn activation_behavior(&self, _event: &Event, _target: &EventTarget) {
|
||||
fn activation_behavior(&self, _event: &Event, _target: &EventTarget, _can_gc: CanGc) {
|
||||
let ty = self.input_type();
|
||||
match ty {
|
||||
InputType::Submit => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue