diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2022-06-07 23:09:52 +0000 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-10-02 14:37:19 +0000 |
commit | 1ce75ff7dd4d31eaba0f333e25dcbda68aef89d6 (patch) | |
tree | 556f116101b6104122e99d713e204d7f8a3962c3 /components/style/invalidation/element/invalidation_map.rs | |
parent | 949fd0e172a1cfa9db4b3634192687baa3c253f1 (diff) | |
download | servo-1ce75ff7dd4d31eaba0f333e25dcbda68aef89d6.tar.gz servo-1ce75ff7dd4d31eaba0f333e25dcbda68aef89d6.zip |
style: Unify Gecko and Servo EventState/ElementState bits
Add a dom/base/rust crate called just "dom" where we can share these.
Most of the changes are automatic:
s/mozilla::EventStates/mozilla::dom::ElementState/
s/EventStates/ElementState/
s/NS_EVENT_STATE_/ElementState::/
s/NS_DOCUMENT_STATE_/DocumentState::/
And so on. This requires a new cbindgen version to avoid ugly casts for
large shifts.
Differential Revision: https://phabricator.services.mozilla.com/D148537
Diffstat (limited to 'components/style/invalidation/element/invalidation_map.rs')
-rw-r--r-- | components/style/invalidation/element/invalidation_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/invalidation/element/invalidation_map.rs b/components/style/invalidation/element/invalidation_map.rs index f083225b4b7..e319116b43a 100644 --- a/components/style/invalidation/element/invalidation_map.rs +++ b/components/style/invalidation/element/invalidation_map.rs @@ -5,13 +5,13 @@ //! Code for invalidations due to state or attribute changes. use crate::context::QuirksMode; -use crate::element_state::{DocumentState, ElementState}; use crate::selector_map::{ MaybeCaseInsensitiveHashMap, PrecomputedHashMap, SelectorMap, SelectorMapEntry, }; use crate::selector_parser::SelectorImpl; use crate::AllocErr; use crate::{Atom, LocalName, Namespace, ShrinkIfNeeded}; +use dom::{DocumentState, ElementState}; use selectors::attr::NamespaceConstraint; use selectors::parser::{Combinator, Component}; use selectors::parser::{Selector, SelectorIter}; |