mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Add Servo_AnimationValue_Transform which creates an AnimationValue of transform.
This commit is contained in:
parent
f02bd01add
commit
1f5551c397
4 changed files with 46 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue