Use GetDocumentElement() in Document::invalidate_stylesheets() (fixes #8409)

This commit is contained in:
Dirkjan Ochtman 2016-05-27 11:29:09 +02:00
parent bf3c437683
commit a79f00c337

View file

@ -1228,7 +1228,7 @@ impl Document {
self.stylesheets_changed_since_reflow.set(true);
*self.stylesheets.borrow_mut() = None;
// 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);
});
}