mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
style: Format recent patches.
This commit is contained in:
parent
efa54a876a
commit
175e594652
7 changed files with 10 additions and 9 deletions
|
@ -217,7 +217,9 @@ impl<T> structs::RefPtr<T> {
|
||||||
where
|
where
|
||||||
U: HasArcFFI<FFIType = T>,
|
U: HasArcFFI<FFIType = T>,
|
||||||
{
|
{
|
||||||
unsafe { U::release_opt(self.mRawPtr.as_ref()); }
|
unsafe {
|
||||||
|
U::release_opt(self.mRawPtr.as_ref());
|
||||||
|
}
|
||||||
self.set_arc_leaky(other);
|
self.set_arc_leaky(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ use values::generics::length::{MaxLength as GenericMaxLength, MozLength as Gener
|
||||||
use values::generics::NonNegative;
|
use values::generics::NonNegative;
|
||||||
use values::specified::length::ViewportPercentageLength;
|
use values::specified::length::ViewportPercentageLength;
|
||||||
use values::specified::length::{AbsoluteLength, FontBaseSize, FontRelativeLength};
|
use values::specified::length::{AbsoluteLength, FontBaseSize, FontRelativeLength};
|
||||||
use values::{specified, Auto, CSSFloat, Either, Normal, IsAuto};
|
use values::{specified, Auto, CSSFloat, Either, IsAuto, Normal};
|
||||||
|
|
||||||
pub use super::image::Image;
|
pub use super::image::Image;
|
||||||
pub use values::specified::url::UrlOrNone;
|
pub use values::specified::url::UrlOrNone;
|
||||||
|
|
|
@ -21,7 +21,8 @@ lazy_static! {
|
||||||
opening: "\u{2018}".to_owned().into_boxed_str(),
|
opening: "\u{2018}".to_owned().into_boxed_str(),
|
||||||
closing: "\u{2019}".to_owned().into_boxed_str(),
|
closing: "\u{2019}".to_owned().into_boxed_str(),
|
||||||
},
|
},
|
||||||
].into_boxed_slice()
|
]
|
||||||
|
.into_boxed_slice()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -367,9 +367,7 @@ impl Scale {
|
||||||
pub fn to_transform_operation(&self) -> Option<TransformOperation> {
|
pub fn to_transform_operation(&self) -> Option<TransformOperation> {
|
||||||
match *self {
|
match *self {
|
||||||
generic::Scale::None => None,
|
generic::Scale::None => None,
|
||||||
generic::Scale::Scale(sx, sy) => {
|
generic::Scale::Scale(sx, sy) => Some(generic::TransformOperation::Scale(sx, Some(sy))),
|
||||||
Some(generic::TransformOperation::Scale(sx, Some(sy)))
|
|
||||||
},
|
|
||||||
generic::Scale::Scale3D(sx, sy, sz) => {
|
generic::Scale::Scale3D(sx, sy, sz) => {
|
||||||
Some(generic::TransformOperation::Scale3D(sx, sy, sz))
|
Some(generic::TransformOperation::Scale3D(sx, sy, sz))
|
||||||
},
|
},
|
||||||
|
|
|
@ -57,7 +57,7 @@ where
|
||||||
height.to_css(dest)?;
|
height.to_css(dest)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
},
|
||||||
BackgroundSize::Cover => dest.write_str("cover"),
|
BackgroundSize::Cover => dest.write_str("cover"),
|
||||||
BackgroundSize::Contain => dest.write_str("contain"),
|
BackgroundSize::Contain => dest.write_str("contain"),
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ use values::computed::{self, CSSPixelLength, Context, ExtremumLength};
|
||||||
use values::generics::length::{MaxLength as GenericMaxLength, MozLength as GenericMozLength};
|
use values::generics::length::{MaxLength as GenericMaxLength, MozLength as GenericMozLength};
|
||||||
use values::generics::NonNegative;
|
use values::generics::NonNegative;
|
||||||
use values::specified::calc::CalcNode;
|
use values::specified::calc::CalcNode;
|
||||||
use values::{Auto, CSSFloat, Either, Normal, IsAuto};
|
use values::{Auto, CSSFloat, Either, IsAuto, Normal};
|
||||||
|
|
||||||
pub use super::image::{ColorStop, EndingShape as GradientEndingShape, Gradient};
|
pub use super::image::{ColorStop, EndingShape as GradientEndingShape, Gradient};
|
||||||
pub use super::image::{GradientKind, Image};
|
pub use super::image::{GradientKind, Image};
|
||||||
|
|
|
@ -88,7 +88,7 @@ pub struct QuotePair {
|
||||||
pub struct Quotes(
|
pub struct Quotes(
|
||||||
#[css(iterable, if_empty = "none")]
|
#[css(iterable, if_empty = "none")]
|
||||||
#[ignore_malloc_size_of = "Arc"]
|
#[ignore_malloc_size_of = "Arc"]
|
||||||
pub Arc<Box<[QuotePair]>>
|
pub Arc<Box<[QuotePair]>>,
|
||||||
);
|
);
|
||||||
|
|
||||||
impl Parse for Quotes {
|
impl Parse for Quotes {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue