diff options
Diffstat (limited to 'components/layout/wrapper.rs')
-rw-r--r-- | components/layout/wrapper.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index a44db23a02d..e0b3e0d1f04 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -479,6 +479,12 @@ impl<'le> ::selectors::Element for LayoutElement<'le> { } #[inline] + fn get_active_state(&self) -> bool { + let node = NodeCast::from_layout_js(&self.element); + node.get_active_state_for_layout() + } + + #[inline] fn get_id(&self) -> Option<Atom> { unsafe { (*self.element.unsafe_get()).get_attr_atom_for_layout(&ns!(""), &atom!("id")) |