diff options
Diffstat (limited to 'components/style/invalidation/element/element_wrapper.rs')
-rw-r--r-- | components/style/invalidation/element/element_wrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/invalidation/element/element_wrapper.rs b/components/style/invalidation/element/element_wrapper.rs index 84d0e5c351a..b244f45d1c4 100644 --- a/components/style/invalidation/element/element_wrapper.rs +++ b/components/style/invalidation/element/element_wrapper.rs @@ -6,11 +6,11 @@ //! against a past state of the element. 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::values::AtomIdent; use crate::{CaseSensitivityExt, LocalName, Namespace, WeakAtom}; +use dom::ElementState; use selectors::attr::{AttrSelectorOperation, CaseSensitivity, NamespaceConstraint}; use selectors::matching::{ElementSelectorFlags, MatchingContext}; use selectors::{Element, OpaqueElement}; @@ -252,7 +252,7 @@ where fn is_link(&self) -> bool { match self.snapshot().and_then(|s| s.state()) { - Some(state) => state.intersects(ElementState::IN_VISITED_OR_UNVISITED_STATE), + Some(state) => state.intersects(ElementState::VISITED_OR_UNVISITED), None => self.element.is_link(), } } |