mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
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:
parent
95b73b979e
commit
d8f08b80e0
5 changed files with 24 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue