mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Make SMIL values not roundtrip through strings.
Bug: 1458814 Reviewed-by: hiro MozReview-Commit-ID: DpbFSutIv3t
This commit is contained in:
parent
953ba58b68
commit
83cb0992db
1 changed files with 14 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue