mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -29,6 +29,7 @@ use crate::dom::htmlelement::HTMLElement;
|
|||
use crate::dom::node::{BindContext, Node};
|
||||
use crate::dom::virtualmethods::VirtualMethods;
|
||||
use crate::links::{follow_hyperlink, LinkRelations};
|
||||
use crate::script_runtime::CanGc;
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
pub enum Area {
|
||||
|
@ -371,7 +372,7 @@ impl Activatable for HTMLAreaElement {
|
|||
self.as_element().has_attribute(&local_name!("href"))
|
||||
}
|
||||
|
||||
fn activation_behavior(&self, _event: &Event, _target: &EventTarget) {
|
||||
fn activation_behavior(&self, _event: &Event, _target: &EventTarget, _can_gc: CanGc) {
|
||||
follow_hyperlink(self.as_element(), self.relations.get(), None);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue