mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Fix servo build.
This commit is contained in:
parent
cd2ac08eb9
commit
4671ef5243
3 changed files with 6 additions and 19 deletions
|
@ -366,7 +366,7 @@
|
|||
|
||||
pub use self::single_value::SpecifiedValue as SingleSpecifiedValue;
|
||||
|
||||
% if not simple_vector_bindings:
|
||||
% if not simple_vector_bindings and product == "gecko":
|
||||
impl SpecifiedValue {
|
||||
fn compute_iter<'a, 'cx, 'cx_a>(
|
||||
&'a self,
|
||||
|
@ -496,7 +496,7 @@
|
|||
.set_writing_mode_dependency(context.builder.writing_mode);
|
||||
% endif
|
||||
|
||||
% if property.is_vector and not property.simple_vector_bindings:
|
||||
% if property.is_vector and not property.simple_vector_bindings and product == "gecko":
|
||||
// In the case of a vector property we want to pass down an
|
||||
// iterator so that this can be computed without allocation.
|
||||
//
|
||||
|
|
|
@ -2482,20 +2482,7 @@ pub mod style_structs {
|
|||
% if longhand.logical:
|
||||
${helpers.logical_setter(name=longhand.name)}
|
||||
% else:
|
||||
% if longhand.is_vector:
|
||||
/// Set ${longhand.name}.
|
||||
#[allow(non_snake_case)]
|
||||
#[inline]
|
||||
pub fn set_${longhand.ident}<I>(&mut self, v: I)
|
||||
where
|
||||
I: IntoIterator<Item = longhands::${longhand.ident}
|
||||
::computed_value::single_value::T>,
|
||||
I::IntoIter: ExactSizeIterator
|
||||
{
|
||||
self.${longhand.ident} = longhands::${longhand.ident}::computed_value
|
||||
::List(v.into_iter().collect());
|
||||
}
|
||||
% elif longhand.ident == "display":
|
||||
% if longhand.ident == "display":
|
||||
/// Set `display`.
|
||||
///
|
||||
/// We need to keep track of the original display for hypothetical boxes,
|
||||
|
@ -3109,7 +3096,7 @@ impl ComputedValuesInner {
|
|||
pub fn transform_requires_layer(&self) -> bool {
|
||||
use crate::values::generics::transform::TransformOperation;
|
||||
// Check if the transform matrix is 2D or 3D
|
||||
for transform in &self.get_box().transform.0 {
|
||||
for transform in &*self.get_box().transform.0 {
|
||||
match *transform {
|
||||
TransformOperation::Perspective(..) => {
|
||||
return true;
|
||||
|
@ -3452,7 +3439,7 @@ impl<'a> StyleBuilder<'a> {
|
|||
}
|
||||
% endif
|
||||
|
||||
% if not property.is_vector or property.simple_vector_bindings:
|
||||
% if not property.is_vector or property.simple_vector_bindings or product != "gecko":
|
||||
/// Set the `${property.ident}` to the computed value `value`.
|
||||
#[allow(non_snake_case)]
|
||||
pub fn set_${property.ident}(
|
||||
|
|
|
@ -15,7 +15,7 @@ use crate::values::generics::effects::SimpleShadow as GenericSimpleShadow;
|
|||
use crate::values::Impossible;
|
||||
|
||||
/// An animated value for the `drop-shadow()` filter.
|
||||
type AnimatedSimpleShadow = GenericSimpleShadow<Color, Length, Length>;
|
||||
pub type AnimatedSimpleShadow = GenericSimpleShadow<Color, Length, Length>;
|
||||
|
||||
/// An animated value for a single `filter`.
|
||||
#[cfg(feature = "gecko")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue