mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Fix tidy.
This commit is contained in:
parent
fc4998367b
commit
750c223021
4 changed files with 9 additions and 10 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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"])
|
||||||
|
|
|
@ -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.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue