diff options
Diffstat (limited to 'components/style/invalidation/element/element_wrapper.rs')
-rw-r--r-- | components/style/invalidation/element/element_wrapper.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/style/invalidation/element/element_wrapper.rs b/components/style/invalidation/element/element_wrapper.rs index 457c8238abc..167b995d524 100644 --- a/components/style/invalidation/element/element_wrapper.rs +++ b/components/style/invalidation/element/element_wrapper.rs @@ -5,16 +5,16 @@ //! A wrapper over an element and a snapshot, that allows us to selector-match //! against a past state of the element. -use dom::TElement; -use element_state::ElementState; -use selector_parser::{AttrValue, NonTSPseudoClass, PseudoElement, SelectorImpl}; -use selector_parser::{Snapshot, SnapshotMap}; +use crate::dom::TElement; +use crate::element_state::ElementState; +use crate::selector_parser::{AttrValue, NonTSPseudoClass, PseudoElement, SelectorImpl}; +use crate::selector_parser::{Snapshot, SnapshotMap}; +use crate::{Atom, CaseSensitivityExt, LocalName, Namespace, WeakAtom}; use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint}; use selectors::matching::{ElementSelectorFlags, MatchingContext}; use selectors::{Element, OpaqueElement}; use std::cell::Cell; use std::fmt; -use {Atom, CaseSensitivityExt, LocalName, Namespace, WeakAtom}; /// In order to compute restyle hints, we perform a selector match against a /// list of partial selectors whose rightmost simple selector may be sensitive @@ -60,7 +60,7 @@ pub trait ElementSnapshot: Sized { /// A callback that should be called for each class of the snapshot. Should /// only be called if `has_attrs()` returns true. - fn each_class<F>(&self, F) + fn each_class<F>(&self, _: F) where F: FnMut(&Atom); |