style: Fix some issues with #23856 in Gecko.

This commit is contained in:
Emilio Cobos Álvarez 2019-07-30 11:56:07 +02:00
parent 4813390e60
commit 46236d015b
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
2 changed files with 3 additions and 3 deletions

View file

@ -1825,7 +1825,7 @@ fn static_assert() {
for (gecko, servo) in self.gecko.mAnimations.iter_mut().take(input_len as usize).zip(v) { for (gecko, servo) in self.gecko.mAnimations.iter_mut().take(input_len as usize).zip(v) {
let result = match servo { let result = match servo {
% for value in keyword.gecko_values(): % for value in keyword.values_for("gecko"):
Keyword::${to_camel_case(value)} => Keyword::${to_camel_case(value)} =>
structs::${keyword.gecko_constant(value)} ${keyword.maybe_cast(cast_type)}, structs::${keyword.gecko_constant(value)} ${keyword.maybe_cast(cast_type)},
% endfor % endfor
@ -1838,7 +1838,7 @@ fn static_assert() {
-> longhands::animation_${ident}::computed_value::SingleComputedValue { -> longhands::animation_${ident}::computed_value::SingleComputedValue {
use crate::properties::longhands::animation_${ident}::single_value::computed_value::T as Keyword; use crate::properties::longhands::animation_${ident}::single_value::computed_value::T as Keyword;
match self.gecko.mAnimations[index].m${gecko_ffi_name} ${keyword.maybe_cast("u32")} { match self.gecko.mAnimations[index].m${gecko_ffi_name} ${keyword.maybe_cast("u32")} {
% for value in keyword.gecko_values(): % for value in keyword.values_for("gecko"):
structs::${keyword.gecko_constant(value)} => Keyword::${to_camel_case(value)}, structs::${keyword.gecko_constant(value)} => Keyword::${to_camel_case(value)},
% endfor % endfor
% if keyword.gecko_inexhaustive: % if keyword.gecko_inexhaustive:

View file

@ -80,7 +80,7 @@ ${helpers.predefined_type(
"overflow-wrap", "overflow-wrap",
"OverflowWrap", "OverflowWrap",
"computed::OverflowWrap::Normal", "computed::OverflowWrap::Normal",
engines="servo-2013 servo-2020", engines="gecko servo-2013 servo-2020",
servo_2020_pref="layout.2020.unimplemented", servo_2020_pref="layout.2020.unimplemented",
animation_value_type="discrete", animation_value_type="discrete",
spec="https://drafts.csswg.org/css-text/#propdef-overflow-wrap", spec="https://drafts.csswg.org/css-text/#propdef-overflow-wrap",