mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Further changes required by Servo
This commit is contained in:
parent
1cc44bd065
commit
aea14a2470
1 changed files with 3 additions and 0 deletions
|
@ -1110,6 +1110,7 @@ bitflags! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "gecko")]
|
||||||
fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits {
|
fn change_bits_for_longhand(longhand: LonghandId) -> WillChangeBits {
|
||||||
match longhand {
|
match longhand {
|
||||||
LonghandId::Opacity => WillChangeBits::OPACITY,
|
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 {
|
fn change_bits_for_maybe_property(ident: &str, context: &ParserContext) -> WillChangeBits {
|
||||||
let id = match PropertyId::parse_ignoring_rule_type(ident, context) {
|
let id = match PropertyId::parse_ignoring_rule_type(ident, context) {
|
||||||
Ok(id) => id,
|
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 {
|
impl Parse for WillChange {
|
||||||
/// auto | <animateable-feature>#
|
/// auto | <animateable-feature>#
|
||||||
fn parse<'i, 't>(
|
fn parse<'i, 't>(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue