diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-11-10 11:48:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 11:48:09 -0500 |
commit | 3b1078b58d510668355adb294193c0fa436b79c9 (patch) | |
tree | 2c2be69a7c068d6c06d3b473ae722293d88caa87 /components/style/rule_tree/mod.rs | |
parent | 7eb8544759d143b6622a734ab61b14af8ce55d82 (diff) | |
parent | b0d13cc2543d78c3369ea9894f270a126867cfc0 (diff) | |
download | servo-3b1078b58d510668355adb294193c0fa436b79c9.tar.gz servo-3b1078b58d510668355adb294193c0fa436b79c9.zip |
Auto merge of #22083 - servo:2018, r=emilio
Prepare stylo crates for switching to the 2018 edition
This can land when [Gecko requires Rust 1.30](https://bugzilla.mozilla.org/show_bug.cgi?id=1504031). This does not switch the crates yet because the new edition is not yet stable in 1.30.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22083)
<!-- Reviewable:end -->
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. |