mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Propagate style bits from Servo ComputedValues to ServoStyleContext.
This commit is contained in:
parent
fcf37b19fd
commit
f08c432b57
1 changed files with 11 additions and 0 deletions
|
@ -1719,6 +1719,17 @@ pub extern "C" fn Servo_ComputedValues_GetVisitedStyle(values: ServoComputedValu
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_ComputedValues_GetStyleBits(values: ServoComputedValuesBorrowed) -> u64 {
|
||||
use style::properties::computed_value_flags::*;
|
||||
let flags = ComputedValues::as_arc(&values).flags;
|
||||
let mut result = 0;
|
||||
if flags.contains(HAS_TEXT_DECORATION_LINES) {
|
||||
result |= structs::NS_STYLE_HAS_TEXT_DECORATION_LINES as u64;
|
||||
}
|
||||
result
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_ComputedValues_SpecifiesAnimationsOrTransitions(values: ServoComputedValuesBorrowed)
|
||||
-> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue