aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/node.rs
diff options
context:
space:
mode:
authorMatthew Rasmus <mattr@zzntd.com>2014-12-02 17:06:30 -0800
committerMatthew Rasmus <mattr@zzntd.com>2014-12-08 08:40:15 -0800
commit1b84bd22b8d44a0c9d79458702db7bb465bde685 (patch)
treee6edb6984a45ce9bc821219199b42d23cb8a0e08 /components/style/node.rs
parent9ac817523c463f2e64a73fef069316f7976063e8 (diff)
downloadservo-1b84bd22b8d44a0c9d79458702db7bb465bde685.tar.gz
servo-1b84bd22b8d44a0c9d79458702db7bb465bde685.zip
Implements the :checked pseudo-class for inputs
Relevant spec: https://html.spec.whatwg.org/multipage/scripting.html#selector-checked Also modifies HTMLInputElement::SetChecked to no longer modify its checked content value, instead making use of its internal checkedness state now that we can match `:checked` properly.
Diffstat (limited to 'components/style/node.rs')
-rw-r--r--components/style/node.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/style/node.rs b/components/style/node.rs
index cebac4bd6f8..5a765f2798d 100644
--- a/components/style/node.rs
+++ b/components/style/node.rs
@@ -45,6 +45,7 @@ pub trait TElement<'a> : Copy {
fn get_id(self) -> Option<Atom>;
fn get_disabled_state(self) -> bool;
fn get_enabled_state(self) -> bool;
+ fn get_checked_state(self) -> bool;
fn has_class(self, name: &Atom) -> bool;
// Ordinarily I wouldn't use callbacks like this, but the alternative is