aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlanchorelement.rs
diff options
context:
space:
mode:
authortanishka <109246904+taniishkaaa@users.noreply.github.com>2024-10-20 21:37:15 +0530
committerGitHub <noreply@github.com>2024-10-20 16:07:15 +0000
commit65c866285f69d4c26ae46e604bcc05dda1641df7 (patch)
treee079194aa0d60f5df522fb10911b3ea9914774df /components/script/dom/htmlanchorelement.rs
parentee9e1fbbd6f64d95392e0d501ee423bceeb15f7f (diff)
downloadservo-65c866285f69d4c26ae46e604bcc05dda1641df7.tar.gz
servo-65c866285f69d4c26ae46e604bcc05dda1641df7.zip
Multiple CanGc fixes in components/script/dom (#33924)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r--components/script/dom/htmlanchorelement.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs
index 992b224e6b6..109c9751f7c 100644
--- a/components/script/dom/htmlanchorelement.rs
+++ b/components/script/dom/htmlanchorelement.rs
@@ -34,6 +34,7 @@ use crate::dom::node::{document_from_node, BindContext, Node};
use crate::dom::urlhelper::UrlHelper;
use crate::dom::virtualmethods::VirtualMethods;
use crate::links::{follow_hyperlink, LinkRelations};
+use crate::script_runtime::CanGc;
#[dom_struct]
pub struct HTMLAnchorElement {
@@ -593,7 +594,7 @@ impl Activatable for HTMLAnchorElement {
}
//https://html.spec.whatwg.org/multipage/#the-a-element:activation-behaviour
- fn activation_behavior(&self, event: &Event, target: &EventTarget) {
+ fn activation_behavior(&self, event: &Event, target: &EventTarget, _can_gc: CanGc) {
let element = self.as_element();
let mouse_event = event.downcast::<MouseEvent>().unwrap();
let mut ismap_suffix = None;