mirror of
https://github.com/servo/servo.git
synced 2025-07-19 13:23:46 +01:00
Use borrow() instead of borrow_mut() for PerDocumentStyleData.
We don't mutate any PerDocumentStyleData in Servo_StyleSet_FillKeyframesForName.
This commit is contained in:
parent
2892071ce7
commit
95b73b979e
1 changed files with 1 additions and 1 deletions
|
@ -1431,7 +1431,7 @@ pub extern "C" fn Servo_StyleSet_FillKeyframesForName(raw_data: RawServoStyleSet
|
|||
use style::gecko_bindings::structs::Keyframe;
|
||||
use style::properties::LonghandIdSet;
|
||||
|
||||
let data = PerDocumentStyleData::from_ffi(raw_data).borrow_mut();
|
||||
let data = PerDocumentStyleData::from_ffi(raw_data).borrow();
|
||||
let name = unsafe { Atom::from(name.as_ref().unwrap().as_str_unchecked()) };
|
||||
let style_timing_function = unsafe { timing_function.as_ref().unwrap() };
|
||||
let style = ComputedValues::as_arc(&style);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue