diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-01 14:09:54 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-10 17:47:28 +0100 |
commit | a15d33a10e8a0aa1c02fa44ede50a63b95606b8f (patch) | |
tree | 5b0ef37530e77e646c2b6bc7df3d95e756607e77 /components/style/servo/selector_parser.rs | |
parent | e1fcffb336d763d851f14fae5cda464209552bb2 (diff) | |
download | servo-a15d33a10e8a0aa1c02fa44ede50a63b95606b8f.tar.gz servo-a15d33a10e8a0aa1c02fa44ede50a63b95606b8f.zip |
`cargo fix --edition`
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r-- | components/style/servo/selector_parser.rs | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 97fb3e29854..a959a820edc 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -6,16 +6,19 @@ //! Servo's selector parser. -use attr::{AttrIdentifier, AttrValue}; +use crate::attr::{AttrIdentifier, AttrValue}; +use crate::dom::{OpaqueNode, TElement, TNode}; +use crate::element_state::{DocumentState, ElementState}; +use crate::invalidation::element::document_state::InvalidationMatchingData; +use crate::invalidation::element::element_wrapper::ElementSnapshot; +use crate::properties::longhands::display::computed_value::T as Display; +use crate::properties::{ComputedValues, PropertyFlags}; +use crate::selector_parser::{ + AttrValue as SelectorAttrValue, PseudoElementCascadeType, SelectorParser, +}; +use crate::{Atom, CaseSensitivityExt, LocalName, Namespace, Prefix}; use cssparser::{serialize_identifier, CowRcStr, Parser as CssParser, SourceLocation, ToCss}; -use dom::{OpaqueNode, TElement, TNode}; -use element_state::{DocumentState, ElementState}; use fxhash::FxHashMap; -use invalidation::element::document_state::InvalidationMatchingData; -use invalidation::element::element_wrapper::ElementSnapshot; -use properties::longhands::display::computed_value::T as Display; -use properties::{ComputedValues, PropertyFlags}; -use selector_parser::{AttrValue as SelectorAttrValue, PseudoElementCascadeType, SelectorParser}; use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint}; use selectors::parser::{SelectorParseErrorKind, Visit}; use selectors::visitor::SelectorVisitor; @@ -23,7 +26,6 @@ use std::fmt; use std::mem; use std::ops::{Deref, DerefMut}; use style_traits::{ParseError, StyleParseErrorKind}; -use {Atom, CaseSensitivityExt, LocalName, Namespace, Prefix}; /// A pseudo-element, both public and private. /// @@ -349,7 +351,7 @@ impl NonTSPseudoClass { /// selector matching, and it's set from the DOM. pub fn state_flag(&self) -> ElementState { use self::NonTSPseudoClass::*; - use element_state::ElementState; + use crate::element_state::ElementState; match *self { Active => ElementState::IN_ACTIVE_STATE, Focus => ElementState::IN_FOCUS_STATE, |