From 83cb0992db1f0f4f0f8e605d8f131ec506a3ea3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 3 May 2018 18:27:44 +0200 Subject: [PATCH] style: Make SMIL values not roundtrip through strings. Bug: 1458814 Reviewed-by: hiro MozReview-Commit-ID: DpbFSutIv3t --- ports/geckolib/glue.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ports/geckolib/glue.rs b/ports/geckolib/glue.rs index 93918a1c997..d4e16a470e5 100644 --- a/ports/geckolib/glue.rs +++ b/ports/geckolib/glue.rs @@ -3609,6 +3609,20 @@ pub unsafe extern "C" fn Servo_DeclarationBlock_SetProperty( ) } +#[no_mangle] +pub unsafe extern "C" fn Servo_DeclarationBlock_SetPropertyToAnimationValue( + declarations: RawServoDeclarationBlockBorrowed, + animation_value: RawServoAnimationValueBorrowed, +) -> bool { + write_locked_arc(declarations, |decls: &mut PropertyDeclarationBlock| { + decls.push( + AnimationValue::as_arc(&animation_value).uncompute(), + Importance::Normal, + DeclarationSource::CssOm, + ) + }) +} + #[no_mangle] pub unsafe extern "C" fn Servo_DeclarationBlock_SetPropertyById( declarations: RawServoDeclarationBlockBorrowed,