mirror of
https://github.com/servo/servo.git
synced 2025-08-21 21:35:32 +01:00
Add Servo_InheritComputedValues.
This commit is contained in:
parent
b29ae6383a
commit
01c42693d4
3 changed files with 31 additions and 13 deletions
|
@ -342,6 +342,16 @@ pub extern "C" fn Servo_GetComputedValuesForPseudoElement(parent_style: *mut Ser
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_InheritComputedValues(parent_style: *mut ServoComputedValues)
|
||||
-> *mut ServoComputedValues {
|
||||
type Helpers = ArcHelpers<ServoComputedValues, GeckoComputedValues>;
|
||||
Helpers::with(parent_style, |parent| {
|
||||
let style = GeckoComputedValues::inherit_from(parent);
|
||||
Helpers::from(style)
|
||||
})
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_AddRefComputedValues(ptr: *mut ServoComputedValues) -> () {
|
||||
type Helpers = ArcHelpers<ServoComputedValues, GeckoComputedValues>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue