stylo: Generate eCSSPropertyID_all as a const rather than an enum value.

This commit is contained in:
Cameron McCormack 2017-04-13 14:10:46 +08:00
parent 6f7db7c571
commit fb26ae7df5
3 changed files with 22 additions and 5 deletions

View file

@ -1986,7 +1986,7 @@ fn static_assert() {
${impl_transition_timing_function()}
pub fn set_transition_property(&mut self, v: longhands::transition_property::computed_value::T) {
use gecko_bindings::structs::nsCSSPropertyID_eCSSPropertyExtra_no_properties;
use gecko_bindings::structs::nsCSSPropertyID::eCSSPropertyExtra_no_properties;
if !v.0.is_empty() {
unsafe { self.gecko.mTransitions.ensure_len(v.0.len()) };
@ -1997,7 +1997,7 @@ fn static_assert() {
} else {
// In gecko |none| is represented by eCSSPropertyExtra_no_properties.
self.gecko.mTransitionPropertyCount = 1;
self.gecko.mTransitions[0].mProperty = nsCSSPropertyID_eCSSPropertyExtra_no_properties;
self.gecko.mTransitions[0].mProperty = eCSSPropertyExtra_no_properties;
}
}

View file

@ -735,8 +735,6 @@
<%def name="alias_to_nscsspropertyid(alias)">
<%
if alias == "word-wrap":
return "nsCSSPropertyID_eCSSPropertyAlias_WordWrap"
return "nsCSSPropertyID::eCSSPropertyAlias_%s" % to_camel_case(alias)
%>
</%def>