mirror of
https://github.com/servo/servo.git
synced 2025-08-27 08:08:19 +01:00
Allow mutation of CssRules
This commit is contained in:
parent
71a2b379c8
commit
2fe390e237
5 changed files with 11 additions and 10 deletions
|
@ -255,7 +255,7 @@ pub extern "C" fn Servo_StyleSet_RemoveStyleSheet(raw_data: RawServoStyleSetBorr
|
|||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn Servo_StyleSheet_HasRules(raw_sheet: RawServoStyleSheetBorrowed) -> bool {
|
||||
!Stylesheet::as_arc(&raw_sheet).rules.0.is_empty()
|
||||
!Stylesheet::as_arc(&raw_sheet).rules.0.read().is_empty()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue