diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2016-11-21 19:13:02 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2016-11-22 14:50:22 +0100 |
commit | 81a3de32997a5bca395f9b2d4a8958bb3af22818 (patch) | |
tree | 52768d0f43cc83a4468640634c369e2930f1b146 /components/script/layout_wrapper.rs | |
parent | 82b13d50e356ff3fc0eb90b49258be321c7ea795 (diff) | |
download | servo-81a3de32997a5bca395f9b2d4a8958bb3af22818.tar.gz servo-81a3de32997a5bca395f9b2d4a8958bb3af22818.zip |
Remove SelectorImpl aliases
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 1c2bad81089..18d2bd092c0 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -66,7 +66,7 @@ use style::dom::{LayoutIterator, NodeInfo, OpaqueNode, PresentationalHintsSynthe use style::dom::UnsafeNode; use style::element_state::*; use style::properties::{ComputedValues, PropertyDeclarationBlock}; -use style::selector_parser::{NonTSPseudoClass, PseudoElement, RestyleDamage, ServoSelectorImpl}; +use style::selector_parser::{NonTSPseudoClass, PseudoElement, RestyleDamage, SelectorImpl}; use style::sink::Push; use style::str::is_whitespace; use style::stylist::ApplicableDeclarationBlock; @@ -560,9 +560,9 @@ fn as_element<'le>(node: LayoutJS<Node>) -> Option<ServoLayoutElement<'le>> { } impl<'le> ::selectors::MatchAttrGeneric for ServoLayoutElement<'le> { - type Impl = ServoSelectorImpl; + type Impl = SelectorImpl; - fn match_attr<F>(&self, attr: &AttrSelector<ServoSelectorImpl>, test: F) -> bool + fn match_attr<F>(&self, attr: &AttrSelector<SelectorImpl>, test: F) -> bool where F: Fn(&str) -> bool { use ::selectors::Element; let name = if self.is_html_element_in_html_document() { @@ -1097,9 +1097,9 @@ impl<'le> ThreadSafeLayoutElement for ServoThreadSafeLayoutElement<'le> { /// Note that the element implementation is needed only for selector matching, /// not for inheritance (styles are inherited appropiately). impl<'le> ::selectors::MatchAttrGeneric for ServoThreadSafeLayoutElement<'le> { - type Impl = ServoSelectorImpl; + type Impl = SelectorImpl; - fn match_attr<F>(&self, attr: &AttrSelector<ServoSelectorImpl>, test: F) -> bool + fn match_attr<F>(&self, attr: &AttrSelector<SelectorImpl>, test: F) -> bool where F: Fn(&str) -> bool { match attr.namespace { NamespaceConstraint::Specific(ref ns) => { |