diff options
author | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-06-27 08:52:33 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <me@emiliocobos.me> | 2016-06-28 15:20:59 +0000 |
commit | 2d566ef0ef15b8339de904d9e179f3988ece0ea5 (patch) | |
tree | bebfb836c03088f89a4484b985ec1a736c2a72c5 /components/style/selector_impl.rs | |
parent | 46eec458867adaa956110784b6ae230e68e9a4e9 (diff) | |
download | servo-2d566ef0ef15b8339de904d9e179f3988ece0ea5.tar.gz servo-2d566ef0ef15b8339de904d9e179f3988ece0ea5.zip |
style: Fix parsing and add generated keyframes
Diffstat (limited to 'components/style/selector_impl.rs')
-rw-r--r-- | components/style/selector_impl.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/style/selector_impl.rs b/components/style/selector_impl.rs index a394ef987cc..7f80cb2ea38 100644 --- a/components/style/selector_impl.rs +++ b/components/style/selector_impl.rs @@ -9,6 +9,7 @@ use properties::{self, ServoComputedValues}; use selector_matching::{USER_OR_USER_AGENT_STYLESHEETS, QUIRKS_MODE_STYLESHEET}; use selectors::Element; use selectors::parser::{ParserContext, SelectorImpl}; +use std::fmt::Debug; use stylesheets::Stylesheet; /// This function determines if a pseudo-element is eagerly cascaded or not. @@ -62,7 +63,9 @@ pub trait ElementExt: Element { fn is_link(&self) -> bool; } -pub trait SelectorImplExt : SelectorImpl + Sized { +// NB: The `Clone` trait is here for convenience due to: +// https://github.com/rust-lang/rust/issues/26925 +pub trait SelectorImplExt : SelectorImpl + Clone + Debug + Sized { type ComputedValues: properties::ComputedValues; fn pseudo_element_cascade_type(pseudo: &Self::PseudoElement) -> PseudoElementCascadeType; |