mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add CSSGroupingRule.{cssRules, insertRule(), deleteRule()}
This commit is contained in:
parent
cada5d7c03
commit
a9cd17ae96
4 changed files with 50 additions and 8 deletions
|
@ -24,8 +24,9 @@ pub struct CSSMediaRule {
|
|||
|
||||
impl CSSMediaRule {
|
||||
fn new_inherited(parent: Option<&CSSStyleSheet>, mediarule: Arc<RwLock<MediaRule>>) -> CSSMediaRule {
|
||||
let list = mediarule.read().rules.clone();
|
||||
CSSMediaRule {
|
||||
cssrule: CSSGroupingRule::new_inherited(parent),
|
||||
cssrule: CSSGroupingRule::new_inherited(parent, list),
|
||||
mediarule: mediarule,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue