mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Make servo-tidy happy.
This commit is contained in:
parent
dccb8263cc
commit
164bfbcb40
3 changed files with 6 additions and 6 deletions
|
@ -15,8 +15,8 @@ use malloc_size_of::{MallocSizeOf, MallocSizeOfOps};
|
||||||
use nsstring::nsCString;
|
use nsstring::nsCString;
|
||||||
use parser::{Parse, ParserContext};
|
use parser::{Parse, ParserContext};
|
||||||
use servo_arc::{Arc, RawOffsetArc};
|
use servo_arc::{Arc, RawOffsetArc};
|
||||||
use std::mem;
|
|
||||||
use std::fmt::{self, Write};
|
use std::fmt::{self, Write};
|
||||||
|
use std::mem;
|
||||||
use style_traits::{CssWriter, ParseError, ToCss};
|
use style_traits::{CssWriter, ParseError, ToCss};
|
||||||
use values::computed::{Context, ToComputedValue};
|
use values::computed::{Context, ToComputedValue};
|
||||||
|
|
||||||
|
@ -282,7 +282,7 @@ where
|
||||||
///
|
///
|
||||||
/// The only difference between specified and computed URLs is the
|
/// The only difference between specified and computed URLs is the
|
||||||
/// serialization.
|
/// serialization.
|
||||||
#[derive(Clone, Debug, Eq, PartialEq, MallocSizeOf)]
|
#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq)]
|
||||||
pub struct ComputedUrl(pub SpecifiedUrl);
|
pub struct ComputedUrl(pub SpecifiedUrl);
|
||||||
|
|
||||||
impl ToCss for ComputedUrl {
|
impl ToCss for ComputedUrl {
|
||||||
|
@ -304,7 +304,7 @@ impl ComputedUrl {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The computed value of a CSS `url()` for image.
|
/// The computed value of a CSS `url()` for image.
|
||||||
#[derive(Clone, Debug, Eq, PartialEq, MallocSizeOf)]
|
#[derive(Clone, Debug, Eq, MallocSizeOf, PartialEq)]
|
||||||
pub struct ComputedImageUrl(pub SpecifiedImageUrl);
|
pub struct ComputedImageUrl(pub SpecifiedImageUrl);
|
||||||
|
|
||||||
impl ToCss for ComputedImageUrl {
|
impl ToCss for ComputedImageUrl {
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
|
|
||||||
use std::fmt::{self, Write};
|
use std::fmt::{self, Write};
|
||||||
use style_traits::{CssWriter, ToCss};
|
use style_traits::{CssWriter, ToCss};
|
||||||
|
use values::CSSFloat;
|
||||||
use values::computed::{Context, ToComputedValue};
|
use values::computed::{Context, ToComputedValue};
|
||||||
use values::specified;
|
use values::specified;
|
||||||
use values::CSSFloat;
|
|
||||||
|
|
||||||
/// A computed `<resolution>`.
|
/// A computed `<resolution>`.
|
||||||
pub struct Resolution(CSSFloat);
|
pub struct Resolution(CSSFloat);
|
||||||
|
|
|
@ -17,10 +17,10 @@ use values::generics::counters as generics;
|
||||||
use values::generics::counters::CounterIncrement as GenericCounterIncrement;
|
use values::generics::counters::CounterIncrement as GenericCounterIncrement;
|
||||||
use values::generics::counters::CounterPair;
|
use values::generics::counters::CounterPair;
|
||||||
use values::generics::counters::CounterReset as GenericCounterReset;
|
use values::generics::counters::CounterReset as GenericCounterReset;
|
||||||
use values::specified::Integer;
|
|
||||||
use values::specified::url::SpecifiedImageUrl;
|
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
use values::specified::Attr;
|
use values::specified::Attr;
|
||||||
|
use values::specified::Integer;
|
||||||
|
use values::specified::url::SpecifiedImageUrl;
|
||||||
|
|
||||||
/// A specified value for the `counter-increment` property.
|
/// A specified value for the `counter-increment` property.
|
||||||
pub type CounterIncrement = GenericCounterIncrement<Integer>;
|
pub type CounterIncrement = GenericCounterIncrement<Integer>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue