diff options
Diffstat (limited to 'components/style/rule_tree/mod.rs')
-rw-r--r-- | components/style/rule_tree/mod.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs index c1b81889289..506cb346ae3 100644 --- a/components/style/rule_tree/mod.rs +++ b/components/style/rule_tree/mod.rs @@ -6,21 +6,21 @@ //! The rule tree. -use applicable_declarations::ApplicableDeclarationList; +use crate::applicable_declarations::ApplicableDeclarationList; #[cfg(feature = "gecko")] -use gecko::selector_parser::PseudoElement; +use crate::gecko::selector_parser::PseudoElement; +use crate::properties::{Importance, LonghandIdSet, PropertyDeclarationBlock}; +use crate::shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards}; +use crate::stylesheets::StyleRule; +use crate::thread_state; #[cfg(feature = "gecko")] use malloc_size_of::{MallocSizeOf, MallocSizeOfOps}; -use properties::{Importance, LonghandIdSet, PropertyDeclarationBlock}; use servo_arc::{Arc, ArcBorrow, ArcUnion, ArcUnionBorrow}; -use shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards}; use smallvec::SmallVec; use std::io::{self, Write}; use std::mem; use std::ptr; use std::sync::atomic::{AtomicPtr, AtomicUsize, Ordering}; -use stylesheets::StyleRule; -use thread_state; /// The rule tree, the structure servo uses to preserve the results of selector /// matching. @@ -1149,7 +1149,7 @@ impl StrongRuleNode { unsafe fn assert_free_list_has_no_duplicates_or_null(&self) { assert!(cfg!(debug_assertions), "This is an expensive check!"); - use hash::FxHashSet; + use crate::hash::FxHashSet; let me = &*self.ptr(); assert!(me.is_root()); @@ -1214,15 +1214,15 @@ impl StrongRuleNode { author_colors_allowed: bool, ) -> bool where - E: ::dom::TElement, + E: crate::dom::TElement, { - use gecko_bindings::structs::NS_AUTHOR_SPECIFIED_BACKGROUND; - use gecko_bindings::structs::NS_AUTHOR_SPECIFIED_BORDER; - use gecko_bindings::structs::NS_AUTHOR_SPECIFIED_PADDING; - use properties::{CSSWideKeyword, LonghandId, LonghandIdSet}; - use properties::{PropertyDeclaration, PropertyDeclarationId}; + use crate::gecko_bindings::structs::NS_AUTHOR_SPECIFIED_BACKGROUND; + use crate::gecko_bindings::structs::NS_AUTHOR_SPECIFIED_BORDER; + use crate::gecko_bindings::structs::NS_AUTHOR_SPECIFIED_PADDING; + use crate::properties::{CSSWideKeyword, LonghandId, LonghandIdSet}; + use crate::properties::{PropertyDeclaration, PropertyDeclarationId}; + use crate::values::specified::Color; use std::borrow::Cow; - use values::specified::Color; // Reset properties: const BACKGROUND_PROPS: &'static [LonghandId] = @@ -1430,7 +1430,7 @@ impl StrongRuleNode { &self, guards: &StylesheetGuards, ) -> (LonghandIdSet, bool) { - use properties::PropertyDeclarationId; + use crate::properties::PropertyDeclarationId; // We want to iterate over cascade levels that override the animations // level, i.e. !important levels and the transitions level. |