Skip to content

Commit

Permalink
style: Fix servo build.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Oct 9, 2019
1 parent 33d39d3 commit 031cb05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/style/properties/cascade.rs
Expand Up @@ -374,6 +374,7 @@ fn should_ignore_declaration_when_ignoring_document_colors(
// In the future, if/when we remove the backplate pref, we can remove this // In the future, if/when we remove the backplate pref, we can remove this
// special case along with the 'ignored_when_colors_disabled=True' mako line // special case along with the 'ignored_when_colors_disabled=True' mako line
// for the "background-image" property. // for the "background-image" property.
#[cfg(feature = "gecko")]
PropertyDeclaration::BackgroundImage(..) => return !static_prefs::pref!("browser.display.permit_backplate"), PropertyDeclaration::BackgroundImage(..) => return !static_prefs::pref!("browser.display.permit_backplate"),
_ => return true, _ => return true,
}; };
Expand Down
3 changes: 3 additions & 0 deletions components/style/values/computed/image.rs
Expand Up @@ -39,6 +39,9 @@ pub type Gradient = generic::GenericGradient<
Color, Color,
>; >;


/// A computed radial gradient ending shape.
pub type EndingShape = generic::GenericEndingShape<NonNegativeLength, NonNegativeLengthPercentage>;

/// A computed gradient line direction. /// A computed gradient line direction.
#[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToResolvedValue)] #[derive(Clone, Copy, Debug, MallocSizeOf, PartialEq, ToResolvedValue)]
#[repr(C, u8)] #[repr(C, u8)]
Expand Down
6 changes: 3 additions & 3 deletions components/style/values/specified/box.rs
Expand Up @@ -1155,9 +1155,9 @@ bitflags! {
fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits { fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits {
let mut flags = match longhand { let mut flags = match longhand {
LonghandId::Opacity => WillChangeBits::OPACITY, LonghandId::Opacity => WillChangeBits::OPACITY,
LonghandId::Transform | LonghandId::Translate | LonghandId::Rotate | LonghandId::Scale => { LonghandId::Transform => WillChangeBits::TRANSFORM,
WillChangeBits::TRANSFORM #[cfg(feature = "gecko")]
}, LonghandId::Translate | LonghandId::Rotate | LonghandId::Scale => WillChangeBits::TRANSFORM,
_ => WillChangeBits::empty(), _ => WillChangeBits::empty(),
}; };


Expand Down

0 comments on commit 031cb05

Please sign in to comment.