diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-06-23 20:33:33 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2018-06-23 20:34:10 +0200 |
commit | 750c223021220da374b35bced42edb60d16e0106 (patch) | |
tree | 321a09758779ee882278b122c64833e7f08cf2cd /components | |
parent | fc4998367b3e32ffd150b5344667b870acbd721f (diff) | |
download | servo-750c223021220da374b35bced42edb60d16e0106.tar.gz servo-750c223021220da374b35bced42edb60d16e0106.zip |
style: Fix tidy.
Diffstat (limited to 'components')
-rw-r--r-- | components/style/gecko/data.rs | 2 | ||||
-rw-r--r-- | components/style/gecko/url.rs | 2 | ||||
-rw-r--r-- | components/style/properties/build.py | 12 | ||||
-rw-r--r-- | components/style/properties/declaration_block.rs | 3 |
4 files changed, 9 insertions, 10 deletions
diff --git a/components/style/gecko/data.rs b/components/style/gecko/data.rs index 90129209361..6b9005c7560 100644 --- a/components/style/gecko/data.rs +++ b/components/style/gecko/data.rs @@ -17,8 +17,8 @@ use media_queries::{Device, MediaList}; use properties::ComputedValues; use selector_parser::SnapshotMap; use servo_arc::Arc; -use std::fmt; use shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards}; +use std::fmt; use stylesheets::{CssRule, Origin, StylesheetContents, StylesheetInDocument}; use stylist::Stylist; diff --git a/components/style/gecko/url.rs b/components/style/gecko/url.rs index 751345d72cb..b94d2139764 100644 --- a/components/style/gecko/url.rs +++ b/components/style/gecko/url.rs @@ -17,8 +17,8 @@ use parser::{Parse, ParserContext}; use servo_arc::{Arc, RawOffsetArc}; use std::fmt::{self, Write}; use std::mem; -use stylesheets::UrlExtraData; use style_traits::{CssWriter, ParseError, ToCss}; +use stylesheets::UrlExtraData; use values::computed::{Context, ToComputedValue}; /// A CSS url() value for gecko. diff --git a/components/style/properties/build.py b/components/style/properties/build.py index 34c1b3560a6..4f5da29246b 100644 --- a/components/style/properties/build.py +++ b/components/style/properties/build.py @@ -69,16 +69,16 @@ def main(): continue files[kind][struct] = render( file_name, - product = product, - data = properties, + product=product, + data=properties, ) properties_template = os.path.join(BASE, "properties.mako.rs") files["properties"] = render( properties_template, - product = product, - data = properties, - __file__ = properties_template, - OUT_DIR = OUT_DIR, + product=product, + data=properties, + __file__=properties_template, + OUT_DIR=OUT_DIR, ) if output == "style-crate": write(OUT_DIR, "properties.rs", files["properties"]) diff --git a/components/style/properties/declaration_block.rs b/components/style/properties/declaration_block.rs index 89c992f907d..8727ba4cc41 100644 --- a/components/style/properties/declaration_block.rs +++ b/components/style/properties/declaration_block.rs @@ -12,7 +12,7 @@ use cssparser::{Parser, AtRuleParser, DeclarationParser, Delimiter, ParseErrorKi use custom_properties::CustomPropertiesBuilder; use error_reporting::{ParseErrorReporter, ContextualParseError}; use parser::ParserContext; -use properties::animated_properties::AnimationValue; +use properties::animated_properties::{AnimationValue, AnimationValueMap}; use shared_lock::Locked; use smallbitvec::{self, SmallBitVec}; use smallvec::SmallVec; @@ -24,7 +24,6 @@ use style_traits::{CssWriter, ParseError, ParsingMode, StyleParseErrorKind, ToCs use stylesheets::{CssRuleType, Origin, UrlExtraData}; use super::*; use values::computed::Context; -use properties::animated_properties::AnimationValueMap; /// The animation rules. /// |