Implement Gecko_StyleAnimationsEquals for checking nsStyleAutoArray<StyleAnimation> equality in servo side.

Later we update CSS animations if this function returns false.
This commit is contained in:
Hiroyuki Ikezoe 2017-03-10 11:07:03 +09:00
parent 95b73b979e
commit d8f08b80e0
5 changed files with 24 additions and 0 deletions

View file

@ -1801,6 +1801,10 @@ fn static_assert() {
}
${impl_transition_count('property', 'Property')}
pub fn animations_equals(&self, other: &Self) -> bool {
unsafe { bindings::Gecko_StyleAnimationsEquals(&self.gecko.mAnimations, &other.gecko.mAnimations) }
}
pub fn set_animation_name(&mut self, v: longhands::animation_name::computed_value::T) {
use nsstring::nsCString;