stylo: Remove FFI calls for fetching style structs from ServoComputedValues

This commit is contained in:
Manish Goregaokar 2017-07-17 11:42:12 -07:00 committed by Manish Goregaokar
parent ff4bc5a2c6
commit e78947f8b5
4 changed files with 6 additions and 123 deletions

View file

@ -4861,7 +4861,7 @@ static mut EMPTY_VARIABLES_STRUCT: Option<nsStyleVariables> = None;
#[no_mangle]
#[allow(non_snake_case)]
pub unsafe extern "C" fn Servo_GetStyleVariables(_cv: ServoComputedValuesBorrowedOrNull)
pub unsafe extern "C" fn Servo_GetEmptyVariables()
-> *const nsStyleVariables {
EMPTY_VARIABLES_STRUCT.as_ref().unwrap()
}