mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
stylo: Stop using mStyleIfVisited in Servo
This commit is contained in:
parent
e78947f8b5
commit
2a49a73f91
5 changed files with 68 additions and 82 deletions
|
@ -1732,15 +1732,6 @@ pub extern "C" fn Servo_ComputedValues_Inherit(
|
|||
style.to_outer(data.stylist.device(), parent_style_context, pseudo_info).into_strong()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_ComputedValues_GetVisitedStyle(values: ServoComputedValuesBorrowed)
|
||||
-> ServoStyleContextStrong {
|
||||
match values.clone_visited_style() {
|
||||
Some(v) => v.into_strong(),
|
||||
None => Strong::null(),
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_StyleContext_NewContext(values: ServoComputedValuesBorrowed,
|
||||
parent: ServoStyleContextBorrowedOrNull,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue