Add Servo_AnimationValue_Transform which creates an AnimationValue of transform.

This commit is contained in:
Boris Chiou 2017-10-27 21:06:20 +02:00
parent f02bd01add
commit 1f5551c397
4 changed files with 46 additions and 12 deletions

View file

@ -23,6 +23,12 @@ impl nsCSSValue {
unsafe { mem::zeroed() }
}
/// Returns true if this nsCSSValue is none.
#[inline]
pub fn is_none(&self) -> bool {
self.mUnit == nsCSSUnit::eCSSUnit_None
}
/// Returns this nsCSSValue value as an integer, unchecked in release
/// builds.
pub fn integer_unchecked(&self) -> i32 {