mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make -moz-appearance animatable
This commit is contained in:
parent
60c44b072c
commit
cdea3d20c4
2 changed files with 5 additions and 2 deletions
|
@ -469,7 +469,10 @@ def set_gecko_property(ffi_name, expr):
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="impl_keyword_clone(ident, gecko_ffi_name, keyword, cast_type='u8')">
|
<%def name="impl_keyword_clone(ident, gecko_ffi_name, keyword, cast_type='u8')">
|
||||||
#[allow(non_snake_case)]
|
// FIXME: We introduced non_upper_case_globals for -moz-appearance only
|
||||||
|
// since the prefix of Gecko value starts with ThemeWidgetType_NS_THEME.
|
||||||
|
// We should remove this after fix bug 1371809.
|
||||||
|
#[allow(non_snake_case, non_upper_case_globals)]
|
||||||
pub fn clone_${ident}(&self) -> longhands::${ident}::computed_value::T {
|
pub fn clone_${ident}(&self) -> longhands::${ident}::computed_value::T {
|
||||||
use properties::longhands::${ident}::computed_value::T as Keyword;
|
use properties::longhands::${ident}::computed_value::T as Keyword;
|
||||||
// FIXME(bholley): Align binary representations and ditch |match| for cast + static_asserts
|
// FIXME(bholley): Align binary representations and ditch |match| for cast + static_asserts
|
||||||
|
|
|
@ -1823,7 +1823,7 @@ ${helpers.single_keyword("-moz-appearance",
|
||||||
gecko_constant_prefix="ThemeWidgetType_NS_THEME",
|
gecko_constant_prefix="ThemeWidgetType_NS_THEME",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance)",
|
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance)",
|
||||||
animation_value_type="none")}
|
animation_value_type="discrete")}
|
||||||
|
|
||||||
${helpers.predefined_type("-moz-binding", "UrlOrNone", "Either::Second(None_)",
|
${helpers.predefined_type("-moz-binding", "UrlOrNone", "Either::Second(None_)",
|
||||||
products="gecko",
|
products="gecko",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue