mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
parent
6bd898626f
commit
af57a98694
9 changed files with 148 additions and 37 deletions
|
@ -1933,7 +1933,7 @@ clip-path
|
|||
<%def name="define_ffi_struct_accessor(style_struct)">
|
||||
#[no_mangle]
|
||||
#[allow(non_snake_case, unused_variables)]
|
||||
pub extern "C" fn Servo_GetStyle${style_struct.gecko_name}(computed_values:
|
||||
pub unsafe extern "C" fn Servo_GetStyle${style_struct.gecko_name}(computed_values:
|
||||
ServoComputedValuesBorrowedOrNull) -> *const ${style_struct.gecko_ffi_name} {
|
||||
ComputedValues::arc_from_borrowed(&computed_values).unwrap().get_${style_struct.name_lower}().get_gecko()
|
||||
as *const ${style_struct.gecko_ffi_name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue