From 69fd9a3e9b6b140b504cf5db92f210163f7f766f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 26 Apr 2017 15:32:56 +0200 Subject: [PATCH] script: Ensure we don't suppress reflows when stylesheets are dirty. --- components/script/dom/document.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index f5ffd973936..ab124ba1734 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -492,6 +492,7 @@ impl Document { // FIXME: This should check the dirty bit on the document, // not the document element. Needs some layout changes to make // that workable. + self.stylesheets_changed_since_reflow.get() || match self.GetDocumentElement() { Some(root) => { root.upcast::().has_dirty_descendants() ||