mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ use values::generics::length::{MaxLength as GenericMaxLength, MozLength as Gener
|
|||
use values::generics::NonNegative;
|
||||
use values::specified::length::ViewportPercentageLength;
|
||||
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 values::specified::url::UrlOrNone;
|
||||
|
|
|
@ -21,7 +21,8 @@ lazy_static! {
|
|||
opening: "\u{2018}".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> {
|
||||
match *self {
|
||||
generic::Scale::None => None,
|
||||
generic::Scale::Scale(sx, sy) => {
|
||||
Some(generic::TransformOperation::Scale(sx, Some(sy)))
|
||||
},
|
||||
generic::Scale::Scale(sx, sy) => Some(generic::TransformOperation::Scale(sx, Some(sy))),
|
||||
generic::Scale::Scale3D(sx, sy, sz) => {
|
||||
Some(generic::TransformOperation::Scale3D(sx, sy, sz))
|
||||
},
|
||||
|
|
|
@ -57,7 +57,7 @@ where
|
|||
height.to_css(dest)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
},
|
||||
BackgroundSize::Cover => dest.write_str("cover"),
|
||||
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::NonNegative;
|
||||
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::{GradientKind, Image};
|
||||
|
|
|
@ -88,7 +88,7 @@ pub struct QuotePair {
|
|||
pub struct Quotes(
|
||||
#[css(iterable, if_empty = "none")]
|
||||
#[ignore_malloc_size_of = "Arc"]
|
||||
pub Arc<Box<[QuotePair]>>
|
||||
pub Arc<Box<[QuotePair]>>,
|
||||
);
|
||||
|
||||
impl Parse for Quotes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue