mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01: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
|
@ -384,7 +384,7 @@ impl HTMLElementMethods for HTMLElement {
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-click
|
||||
fn Click(&self) {
|
||||
fn Click(&self, can_gc: CanGc) {
|
||||
let element = self.as_element();
|
||||
if element.disabled_state() {
|
||||
return;
|
||||
|
@ -395,7 +395,7 @@ impl HTMLElementMethods for HTMLElement {
|
|||
element.set_click_in_progress(true);
|
||||
|
||||
self.upcast::<Node>()
|
||||
.fire_synthetic_mouse_event_not_trusted(DOMString::from("click"));
|
||||
.fire_synthetic_mouse_event_not_trusted(DOMString::from("click"), can_gc);
|
||||
element.set_click_in_progress(false);
|
||||
}
|
||||
|
||||
|
@ -1139,7 +1139,7 @@ impl Activatable for HTMLElement {
|
|||
}
|
||||
|
||||
// Basically used to make the HTMLSummaryElement activatable (which has no IDL definition)
|
||||
fn activation_behavior(&self, _event: &Event, _target: &EventTarget) {
|
||||
fn activation_behavior(&self, _event: &Event, _target: &EventTarget, _can_gc: CanGc) {
|
||||
self.summary_activation_behavior();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue