aboutsummaryrefslogtreecommitdiffstats
path: root/components/style
diff options
context:
space:
mode:
Diffstat (limited to 'components/style')
-rw-r--r--components/style/gecko/conversions.rs6
-rw-r--r--components/style/gecko/values.rs2
-rw-r--r--components/style/properties/longhands/box.mako.rs1
-rw-r--r--components/style/values/animated/mod.rs4
-rw-r--r--components/style/values/specified/basic_shape.rs14
-rw-r--r--components/style/values/specified/svg_path.rs7
6 files changed, 17 insertions, 17 deletions
diff --git a/components/style/gecko/conversions.rs b/components/style/gecko/conversions.rs
index 607c7388c3d..43082a7c04a 100644
--- a/components/style/gecko/conversions.rs
+++ b/components/style/gecko/conversions.rs
@@ -536,12 +536,10 @@ pub mod basic_shape {
StyleGeometryBox, StyleShapeSource, StyleShapeSourceType,
};
use crate::gecko_bindings::sugar::refptr::RefPtr;
- use crate::values::computed::basic_shape::{
- BasicShape, ClippingShape, FloatAreaShape,
- };
+ use crate::values::computed::basic_shape::{BasicShape, ClippingShape, FloatAreaShape};
use crate::values::computed::motion::OffsetPath;
use crate::values::computed::url::ComputedUrl;
- use crate::values::generics::basic_shape::{Path, GeometryBox, ShapeBox, ShapeSource};
+ use crate::values::generics::basic_shape::{GeometryBox, Path, ShapeBox, ShapeSource};
use crate::values::specified::SVGPathData;
impl StyleShapeSource {
diff --git a/components/style/gecko/values.rs b/components/style/gecko/values.rs
index ba2074d8fdc..98fe90fe3d0 100644
--- a/components/style/gecko/values.rs
+++ b/components/style/gecko/values.rs
@@ -7,8 +7,8 @@
//! Different kind of helpers to interact with Gecko values.
use crate::counter_style::{Symbol, Symbols};
-use crate::gecko_bindings::structs::{nsStyleCoord, CounterStylePtr};
use crate::gecko_bindings::structs::StyleGridTrackBreadth;
+use crate::gecko_bindings::structs::{nsStyleCoord, CounterStylePtr};
use crate::gecko_bindings::sugar::ns_style_coord::{CoordData, CoordDataMut, CoordDataValue};
use crate::values::computed::{Angle, Length, LengthPercentage};
use crate::values::computed::{Number, NumberOrPercentage, Percentage};
diff --git a/components/style/properties/longhands/box.mako.rs b/components/style/properties/longhands/box.mako.rs
index 64239eeb83a..6d754964ecc 100644
--- a/components/style/properties/longhands/box.mako.rs
+++ b/components/style/properties/longhands/box.mako.rs
@@ -680,5 +680,6 @@ ${helpers.predefined_type(
"Either::Second(None_)",
gecko_pref="layout.css.webkit-line-clamp.enabled",
animation_value_type="Integer",
+ products="gecko",
spec="https://drafts.csswg.org/css-overflow-3/#line-clamp",
)}
diff --git a/components/style/values/animated/mod.rs b/components/style/values/animated/mod.rs
index 29e74859cd6..267ef0c8e6f 100644
--- a/components/style/values/animated/mod.rs
+++ b/components/style/values/animated/mod.rs
@@ -298,7 +298,6 @@ where
}
}
-
impl<T> ToAnimatedValue for Box<[T]>
where
T: ToAnimatedValue,
@@ -307,8 +306,7 @@ where
#[inline]
fn to_animated_value(self) -> Self::AnimatedValue {
- self
- .into_vec()
+ self.into_vec()
.into_iter()
.map(T::to_animated_value)
.collect::<Vec<_>>()
diff --git a/components/style/values/specified/basic_shape.rs b/components/style/values/specified/basic_shape.rs
index 70eab983510..4f627ceb07f 100644
--- a/components/style/values/specified/basic_shape.rs
+++ b/components/style/values/specified/basic_shape.rs
@@ -352,12 +352,14 @@ impl Polygon {
})
.unwrap_or_default();
- let coordinates = input.parse_comma_separated(|i| {
- Ok(PolygonCoord(
- LengthPercentage::parse(context, i)?,
- LengthPercentage::parse(context, i)?,
- ))
- })?.into();
+ let coordinates = input
+ .parse_comma_separated(|i| {
+ Ok(PolygonCoord(
+ LengthPercentage::parse(context, i)?,
+ LengthPercentage::parse(context, i)?,
+ ))
+ })?
+ .into();
Ok(Polygon { fill, coordinates })
}
diff --git a/components/style/values/specified/svg_path.rs b/components/style/values/specified/svg_path.rs
index e5276e5cce8..e5282e0a164 100644
--- a/components/style/values/specified/svg_path.rs
+++ b/components/style/values/specified/svg_path.rs
@@ -33,8 +33,7 @@ use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss};
pub struct SVGPathData(
// TODO(emilio): Should probably measure this somehow only from the
// specified values.
- #[ignore_malloc_size_of = "Arc"]
- pub crate::ArcSlice<PathCommand>
+ #[ignore_malloc_size_of = "Arc"] pub crate::ArcSlice<PathCommand>,
);
impl SVGPathData {
@@ -103,7 +102,9 @@ impl Parse for SVGPathData {
}
}
- Ok(SVGPathData(crate::ArcSlice::from_iter(path_parser.path.into_iter())))
+ Ok(SVGPathData(crate::ArcSlice::from_iter(
+ path_parser.path.into_iter(),
+ )))
}
}