servo: Merge #15720 - Added deep equal operator for animation value (from shinglyu:animation-value); r=Manishearth

<!-- Please describe your changes on the following line: -->

This is the servo side patch for [Bug 1337229](https://bugzilla.mozilla.org/show_bug.cgi?id=1337229)

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 9a438ab3b40bd6ed5e4f8c2ae1fcb90f9ca27175

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : cd7ec826cfe5ec84a37b26dc0a25b3036e81e79f
This commit is contained in:
Shing Lyu 2017-02-23 23:16:14 -08:00
Родитель 4cf9c3fdc9
Коммит d08e3fd86d
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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]