diff options
author | Oriol Brufau <obrufau@igalia.com> | 2023-05-17 01:35:55 +0200 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-05-19 19:06:09 +0200 |
commit | aea14a247040301b9674d48d46a9b72dffc49f71 (patch) | |
tree | c102138eef9164bc22578d04af04d053c8d3b2a1 | |
parent | 1cc44bd06536f0b9eaa0ae05a30448040155ec65 (diff) | |
download | servo-aea14a247040301b9674d48d46a9b72dffc49f71.tar.gz servo-aea14a247040301b9674d48d46a9b72dffc49f71.zip |
Further changes required by Servo
-rw-r--r-- | components/style/values/specified/box.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index 06a4e1ea869..32f4f9bacae 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -1110,6 +1110,7 @@ bitflags! { } } +#[cfg(feature = "gecko")] fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits { match longhand { LonghandId::Opacity => WillChangeBits::OPACITY, @@ -1136,6 +1137,7 @@ fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits { } } +#[cfg(feature = "gecko")] fn change_bits_for_maybe_property(ident: &str, context: &ParserContext) -> WillChangeBits { let id = match PropertyId::parse_ignoring_rule_type(ident, context) { Ok(id) => id, @@ -1153,6 +1155,7 @@ fn change_bits_for_maybe_property(ident: &str, context: &ParserContext) -> WillC } } +#[cfg(feature = "gecko")] impl Parse for WillChange { /// auto | <animateable-feature># fn parse<'i, 't>( |