aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/stylist.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-11-06 22:33:52 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-11-10 17:47:28 +0100
commitb1822a39fa8931f5c51302f6b282e5c54c447dfb (patch)
tree2fb9e4c07bc17223215dc908660a98cd6ba4782f /components/style/stylist.rs
parenta15d33a10e8a0aa1c02fa44ede50a63b95606b8f (diff)
downloadservo-b1822a39fa8931f5c51302f6b282e5c54c447dfb.tar.gz
servo-b1822a39fa8931f5c51302f6b282e5c54c447dfb.zip
`cargo fix --edition --features gecko`
Diffstat (limited to 'components/style/stylist.rs')
-rw-r--r--components/style/stylist.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/style/stylist.rs b/components/style/stylist.rs
index 9ed9e056fd7..749ba82ccb2 100644
--- a/components/style/stylist.rs
+++ b/components/style/stylist.rs
@@ -9,6 +9,8 @@ use crate::context::{CascadeInputs, QuirksMode};
use crate::dom::{TElement, TShadowRoot};
use crate::element_state::{DocumentState, ElementState};
use crate::font_metrics::FontMetricsProvider;
+#[cfg(feature = "gecko")]
+use crate::gecko_bindings::structs::{ServoStyleSetSizes, StyleRuleInclusion};
use crate::invalidation::element::invalidation_map::InvalidationMap;
use crate::invalidation::media_queries::{EffectiveMediaQueryResults, ToMediaListKey};
use crate::media_queries::Device;
@@ -25,11 +27,11 @@ use crate::stylesheets::keyframes_rule::KeyframesAnimation;
use crate::stylesheets::viewport_rule::{self, MaybeNew, ViewportRule};
use crate::stylesheets::StyleRule;
use crate::stylesheets::StylesheetInDocument;
+#[cfg(feature = "gecko")]
+use crate::stylesheets::{CounterStyleRule, FontFaceRule, FontFeatureValuesRule, PageRule};
use crate::stylesheets::{CssRule, Origin, OriginSet, PerOrigin, PerOriginIter};
use crate::thread_state::{self, ThreadState};
use crate::{Atom, LocalName, Namespace, WeakAtom};
-#[cfg(feature = "gecko")]
-use gecko_bindings::structs::{ServoStyleSetSizes, StyleRuleInclusion};
use hashglobe::FailedAllocationError;
#[cfg(feature = "gecko")]
use malloc_size_of::MallocUnconditionalShallowSizeOf;
@@ -49,8 +51,6 @@ use smallvec::SmallVec;
use std::ops;
use std::sync::Mutex;
use style_traits::viewport::ViewportConstraints;
-#[cfg(feature = "gecko")]
-use stylesheets::{CounterStyleRule, FontFaceRule, FontFeatureValuesRule, PageRule};
/// The type of the stylesheets that the stylist contains.
#[cfg(feature = "servo")]
@@ -58,7 +58,7 @@ pub type StylistSheet = crate::stylesheets::DocumentStyleSheet;
/// The type of the stylesheets that the stylist contains.
#[cfg(feature = "gecko")]
-pub type StylistSheet = ::gecko::data::GeckoStyleSheet;
+pub type StylistSheet = crate::gecko::data::GeckoStyleSheet;
/// A cache of computed user-agent data, to be shared across documents.
lazy_static! {