diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-30 20:34:23 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-01-31 06:08:38 +0530 |
commit | 26732403b99ca2550d25c2b22aee35a2cdaf3967 (patch) | |
tree | aa9c806226faea114daa166e006d39fdafbc2581 /components/script/dom/activation.rs | |
parent | a7e29939a1df679bd865573dc71f7ba65f0268c4 (diff) | |
download | servo-26732403b99ca2550d25c2b22aee35a2cdaf3967.tar.gz servo-26732403b99ca2550d25c2b22aee35a2cdaf3967.zip |
Specific instances of activatable elements may not be activatable (fixes #4765
Diffstat (limited to 'components/script/dom/activation.rs')
-rw-r--r-- | components/script/dom/activation.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/activation.rs b/components/script/dom/activation.rs index 78e3d6cd4bb..9bd7d4d8f36 100644 --- a/components/script/dom/activation.rs +++ b/components/script/dom/activation.rs @@ -17,6 +17,9 @@ use std::borrow::ToOwned; pub trait Activatable : Copy { fn as_element(&self) -> Temporary<Element>; + // Is this particular instance of the element activatable? + fn is_instance_activatable(&self) -> bool; + // https://html.spec.whatwg.org/multipage/interaction.html#run-pre-click-activation-steps fn pre_click_activation(&self); |