mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Use GetDocumentElement() in Document::invalidate_stylesheets() (fixes #8409)
This commit is contained in:
parent
bf3c437683
commit
a79f00c337
1 changed files with 1 additions and 1 deletions
|
@ -1228,7 +1228,7 @@ impl Document {
|
||||||
self.stylesheets_changed_since_reflow.set(true);
|
self.stylesheets_changed_since_reflow.set(true);
|
||||||
*self.stylesheets.borrow_mut() = None;
|
*self.stylesheets.borrow_mut() = None;
|
||||||
// Mark the document element dirty so a reflow will be performed.
|
// Mark the document element dirty so a reflow will be performed.
|
||||||
self.get_html_element().map(|root| {
|
self.GetDocumentElement().map(|root| {
|
||||||
root.upcast::<Node>().dirty(NodeDamage::NodeStyleDamaged);
|
root.upcast::<Node>().dirty(NodeDamage::NodeStyleDamaged);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue