Skip to content

Commit

Permalink
Added deep equal operator for animation value
Browse files Browse the repository at this point in the history
  • Loading branch information
Shing Lyu committed Feb 24, 2017
1 parent b52288a commit 7596ee7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ports/geckolib/glue.rs
Expand Up @@ -316,6 +316,16 @@ pub extern "C" fn Servo_AnimationValue_GetTransform(value: RawServoAnimationValu
}
}

#[no_mangle]
pub extern "C" fn Servo_AnimationValue_DeepEqual(this: RawServoAnimationValueBorrowed,
other: RawServoAnimationValueBorrowed)
-> bool
{
let this_value = AnimationValue::as_arc(&this);
let other_value = AnimationValue::as_arc(&other);
this_value == other_value
}

/// Takes a ServoAnimationValues and populates it with the animation values corresponding
/// to a given property declaration block
#[no_mangle]
Expand Down

0 comments on commit 7596ee7

Please sign in to comment.