script: Ensure we don't suppress reflows when stylesheets are dirty.

This commit is contained in:
Emilio Cobos Álvarez 2017-04-26 15:32:56 +02:00
parent ccf15c0a26
commit 69fd9a3e9b
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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::<Node>().has_dirty_descendants() ||