mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #16618 - emilio:dirty-doc, r=nox
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 -->
This commit is contained in:
commit
4e70e10ed1
1 changed files with 1 additions and 0 deletions
|
@ -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() ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue