style: Fix tidy.

This commit is contained in:
Emilio Cobos Álvarez 2018-06-23 20:33:33 +02:00
parent fc4998367b
commit 750c223021
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 9 additions and 10 deletions

View file

@ -17,8 +17,8 @@ use media_queries::{Device, MediaList};
use properties::ComputedValues; use properties::ComputedValues;
use selector_parser::SnapshotMap; use selector_parser::SnapshotMap;
use servo_arc::Arc; use servo_arc::Arc;
use std::fmt;
use shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards}; use shared_lock::{Locked, SharedRwLockReadGuard, StylesheetGuards};
use std::fmt;
use stylesheets::{CssRule, Origin, StylesheetContents, StylesheetInDocument}; use stylesheets::{CssRule, Origin, StylesheetContents, StylesheetInDocument};
use stylist::Stylist; use stylist::Stylist;

View file

@ -17,8 +17,8 @@ use parser::{Parse, ParserContext};
use servo_arc::{Arc, RawOffsetArc}; use servo_arc::{Arc, RawOffsetArc};
use std::fmt::{self, Write}; use std::fmt::{self, Write};
use std::mem; use std::mem;
use stylesheets::UrlExtraData;
use style_traits::{CssWriter, ParseError, ToCss}; use style_traits::{CssWriter, ParseError, ToCss};
use stylesheets::UrlExtraData;
use values::computed::{Context, ToComputedValue}; use values::computed::{Context, ToComputedValue};
/// A CSS url() value for gecko. /// A CSS url() value for gecko.

View file

@ -69,16 +69,16 @@ def main():
continue continue
files[kind][struct] = render( files[kind][struct] = render(
file_name, file_name,
product = product, product=product,
data = properties, data=properties,
) )
properties_template = os.path.join(BASE, "properties.mako.rs") properties_template = os.path.join(BASE, "properties.mako.rs")
files["properties"] = render( files["properties"] = render(
properties_template, properties_template,
product = product, product=product,
data = properties, data=properties,
__file__ = properties_template, __file__=properties_template,
OUT_DIR = OUT_DIR, OUT_DIR=OUT_DIR,
) )
if output == "style-crate": if output == "style-crate":
write(OUT_DIR, "properties.rs", files["properties"]) write(OUT_DIR, "properties.rs", files["properties"])

View file

@ -12,7 +12,7 @@ use cssparser::{Parser, AtRuleParser, DeclarationParser, Delimiter, ParseErrorKi
use custom_properties::CustomPropertiesBuilder; use custom_properties::CustomPropertiesBuilder;
use error_reporting::{ParseErrorReporter, ContextualParseError}; use error_reporting::{ParseErrorReporter, ContextualParseError};
use parser::ParserContext; use parser::ParserContext;
use properties::animated_properties::AnimationValue; use properties::animated_properties::{AnimationValue, AnimationValueMap};
use shared_lock::Locked; use shared_lock::Locked;
use smallbitvec::{self, SmallBitVec}; use smallbitvec::{self, SmallBitVec};
use smallvec::SmallVec; use smallvec::SmallVec;
@ -24,7 +24,6 @@ use style_traits::{CssWriter, ParseError, ParsingMode, StyleParseErrorKind, ToCs
use stylesheets::{CssRuleType, Origin, UrlExtraData}; use stylesheets::{CssRuleType, Origin, UrlExtraData};
use super::*; use super::*;
use values::computed::Context; use values::computed::Context;
use properties::animated_properties::AnimationValueMap;
/// The animation rules. /// The animation rules.
/// ///