mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make CSSRule always keep a pointer to its parent stylesheet
even when the parentStylesheet IDL attribute returns null.
This commit is contained in:
parent
0714e2291c
commit
f1d49d3773
11 changed files with 84 additions and 69 deletions
|
@ -53,7 +53,7 @@ impl CSSStyleSheet {
|
|||
|
||||
fn rulelist(&self) -> Root<CSSRuleList> {
|
||||
self.rulelist.or_init(|| CSSRuleList::new(self.global().as_window(),
|
||||
Some(self),
|
||||
self,
|
||||
RulesSource::Rules(self.style_stylesheet
|
||||
.rules.clone())))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue