Skip to content

Commit

Permalink
Auto merge of #16618 - emilio:dirty-doc, r=nox
Browse files Browse the repository at this point in the history
script: Ensure we don't suppress reflows when stylesheets are dirty.

I suspect this will prevent some intermittentness in #16617

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16618)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Apr 26, 2017
2 parents c1b3477 + 69fd9a3 commit 4e70e10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/script/dom/document.rs
Expand Up @@ -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() ||
Expand Down

0 comments on commit 4e70e10

Please sign in to comment.