From a79f00c337475aa82dc420b2b822ad233183f692 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 27 May 2016 11:29:09 +0200 Subject: [PATCH] Use GetDocumentElement() in Document::invalidate_stylesheets() (fixes #8409) --- components/script/dom/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 89755564bb6..8ad0f707058 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -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::().dirty(NodeDamage::NodeStyleDamaged); }); }