mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make parent stylesheet optional for CSSRules
This commit is contained in:
parent
52a3a71be3
commit
53c99662bc
11 changed files with 41 additions and 32 deletions
|
@ -44,7 +44,7 @@ impl CSSStyleSheet {
|
|||
|
||||
fn rulelist(&self) -> Root<CSSRuleList> {
|
||||
self.rulelist.or_init(|| CSSRuleList::new(self.global().as_window(),
|
||||
self,
|
||||
Some(self),
|
||||
RulesSource::Rules(self.style_stylesheet
|
||||
.rules.clone())))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue