mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
707bd841a8
commit
8b49ef813f
3 changed files with 16 additions and 27 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue