mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Replace more RwLock<MediaList> with shared_lock::Locked<MediaList>
This commit is contained in:
parent
fe4e70c5f8
commit
600152bd00
8 changed files with 79 additions and 38 deletions
|
@ -17,6 +17,7 @@ use media_queries::MediaList;
|
|||
use parking_lot::RwLock;
|
||||
use properties::{ComputedValues, PropertyDeclarationBlock};
|
||||
use properties::animated_properties::{AnimationValue, AnimationValueMap};
|
||||
use shared_lock::Locked;
|
||||
use stylesheets::{CssRules, Stylesheet, StyleRule, ImportRule, MediaRule, NamespaceRule};
|
||||
|
||||
macro_rules! impl_arc_ffi {
|
||||
|
@ -62,7 +63,7 @@ impl_arc_ffi!(AnimationValue => RawServoAnimationValue
|
|||
impl_arc_ffi!(RwLock<AnimationValueMap> => RawServoAnimationValueMap
|
||||
[Servo_AnimationValueMap_AddRef, Servo_AnimationValueMap_Release]);
|
||||
|
||||
impl_arc_ffi!(RwLock<MediaList> => RawServoMediaList
|
||||
impl_arc_ffi!(Locked<MediaList> => RawServoMediaList
|
||||
[Servo_MediaList_AddRef, Servo_MediaList_Release]);
|
||||
|
||||
impl_arc_ffi!(RwLock<MediaRule> => RawServoMediaRule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue