diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2016-11-02 13:17:34 -0700 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2016-11-07 10:07:34 -0800 |
commit | b69fdad8e44d77b5a946ee4155ab3da3320d93cd (patch) | |
tree | 486b52660b7f9f6816fbc78db822b98a52c483cc /components/style/selector_impl.rs | |
parent | 958806512054edc1cdf6522e5a882c2c8d692fe1 (diff) | |
download | servo-b69fdad8e44d77b5a946ee4155ab3da3320d93cd.tar.gz servo-b69fdad8e44d77b5a946ee4155ab3da3320d93cd.zip |
Stop using associated types for the concrete ElementSnapshot implementation.
MozReview-Commit-ID: LS23s2RbMBg
Diffstat (limited to 'components/style/selector_impl.rs')
-rw-r--r-- | components/style/selector_impl.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/components/style/selector_impl.rs b/components/style/selector_impl.rs index 3d1d7813bd2..d4a7f2645b4 100644 --- a/components/style/selector_impl.rs +++ b/components/style/selector_impl.rs @@ -5,7 +5,6 @@ //! The pseudo-classes and pseudo-elements supported by the style system. use matching::{common_style_affecting_attributes, CommonStyleAffectingAttributeMode}; -use restyle_hints; use selectors::Element; use selectors::parser::{AttrSelector, SelectorImpl}; @@ -14,14 +13,20 @@ pub type AttrValue = <TheSelectorImpl as SelectorImpl>::AttrValue; #[cfg(feature = "servo")] pub use servo_selector_impl::*; +#[cfg(feature = "gecko")] +pub use gecko::selector_impl::*; + #[cfg(feature = "servo")] -pub use servo_selector_impl::{ServoSelectorImpl as TheSelectorImpl, ServoElementSnapshot as ElementSnapshot}; +pub use servo_selector_impl::ServoSelectorImpl as TheSelectorImpl; #[cfg(feature = "gecko")] -pub use gecko::selector_impl::*; +pub use gecko::selector_impl::GeckoSelectorImpl as TheSelectorImpl; + +#[cfg(feature = "servo")] +pub use servo_selector_impl::ServoElementSnapshot as Snapshot; #[cfg(feature = "gecko")] -pub use gecko::selector_impl::{GeckoSelectorImpl as TheSelectorImpl}; +pub use gecko::snapshot::GeckoElementSnapshot as Snapshot; /// This function determines if a pseudo-element is eagerly cascaded or not. /// @@ -71,8 +76,6 @@ impl PseudoElementCascadeType { } pub trait ElementExt: Element<Impl=TheSelectorImpl> { - type Snapshot: restyle_hints::ElementSnapshot + 'static; - fn is_link(&self) -> bool; } |