mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
Introduce a ToCssWithGuard trait
This commit is contained in:
@@ -12,6 +12,7 @@ use dom::csssupportsrule::CSSSupportsRule;
|
||||
use dom_struct::dom_struct;
|
||||
use parking_lot::RwLock;
|
||||
use std::sync::Arc;
|
||||
use style::shared_lock::SharedRwLock;
|
||||
use style::stylesheets::CssRules as StyleCssRules;
|
||||
|
||||
#[dom_struct]
|
||||
@@ -27,6 +28,9 @@ impl CSSConditionRule {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn shared_lock(&self) -> &SharedRwLock {
|
||||
self.cssgroupingrule.shared_lock()
|
||||
}
|
||||
}
|
||||
|
||||
impl CSSConditionRuleMethods for CSSConditionRule {
|
||||
|
||||
Reference in New Issue
Block a user