mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue