mirror of
https://github.com/servo/servo.git
synced 2025-10-02 09:39:14 +01:00
Bindgenup
Major pain point is that I had to write the bitfield stuff manually, but that should be resolved soon again. Now we generate proper layout for _every_ struct, including field offsets \o/.
This commit is contained in:
parent
ab197de04f
commit
91e0ae2fe7
8 changed files with 21925 additions and 7876 deletions
|
@ -258,11 +258,11 @@ pub extern "C" fn Servo_AnimationValue_GetOpacity(value: RawServoAnimationValueB
|
|||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_AnimationValue_GetTransform(value: RawServoAnimationValueBorrowed,
|
||||
list: &mut structs::RefPtr<nsCSSValueSharedList>)
|
||||
list: *mut structs::RefPtr<nsCSSValueSharedList>)
|
||||
{
|
||||
let value = AnimationValue::as_arc(&value);
|
||||
if let AnimationValue::Transform(ref servo_list) = **value {
|
||||
style_structs::Box::convert_transform(servo_list.0.clone().unwrap(), list);
|
||||
style_structs::Box::convert_transform(servo_list.0.clone().unwrap(), unsafe { &mut *list });
|
||||
} else {
|
||||
panic!("The AnimationValue should be transform");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue