mirror of
https://github.com/servo/servo
synced 2026-04-27 01:55:03 +02:00
Make parent stylesheet optional for CSSRules
This commit is contained in:
@@ -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())))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user