style: Remove nscsspropertyid_is_{animatable,transitionable}.

There are better ways, plus the existing code didn't handle aliases at
all (not that it needed to, but it's better if it does).

Differential Revision: https://phabricator.services.mozilla.com/D10838
This commit is contained in:
Emilio Cobos Álvarez 2018-11-04 14:01:19 +01:00
parent 707bd841a8
commit 8b49ef813f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 16 additions and 27 deletions

View file

@ -471,6 +471,20 @@ impl NonCustomPropertyId {
MAP[self.0]
}
/// Returns whether this property is transitionable.
#[inline]
pub fn is_transitionable(self) -> bool {
${static_non_custom_property_id_set("TRANSITIONABLE", lambda p: p.transitionable)}
TRANSITIONABLE.contains(self)
}
/// Returns whether this property is animatable.
#[inline]
pub fn is_animatable(self) -> bool {
${static_non_custom_property_id_set("ANIMATABLE", lambda p: p.animatable)}
ANIMATABLE.contains(self)
}
#[inline]
fn enabled_for_all_content(self) -> bool {
${static_non_custom_property_id_set(