diff options
Diffstat (limited to 'components/script/dom/activation.rs')
-rw-r--r-- | components/script/dom/activation.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/activation.rs b/components/script/dom/activation.rs index f337560dbfe..796bb5b0381 100644 --- a/components/script/dom/activation.rs +++ b/components/script/dom/activation.rs @@ -10,6 +10,7 @@ use crate::dom::eventtarget::EventTarget; use crate::dom::htmlinputelement::InputActivationState; use crate::dom::node::window_from_node; use crate::dom::window::ReflowReason; +use crate::script_runtime::CanGc; /// Trait for elements with defined activation behavior pub trait Activatable { @@ -29,7 +30,7 @@ pub trait Activatable { // https://dom.spec.whatwg.org/#eventtarget-activation-behavior // event and target are used only by HTMLAnchorElement, in the case // where the target is an <img ismap> so the href gets coordinates appended - fn activation_behavior(&self, event: &Event, target: &EventTarget); + fn activation_behavior(&self, event: &Event, target: &EventTarget, can_gc: CanGc); // https://html.spec.whatwg.org/multipage/#concept-selector-active fn enter_formal_activation_state(&self) { |