mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +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,
|
// FIXME: This should check the dirty bit on the document,
|
||||||
// not the document element. Needs some layout changes to make
|
// not the document element. Needs some layout changes to make
|
||||||
// that workable.
|
// that workable.
|
||||||
|
self.stylesheets_changed_since_reflow.get() ||
|
||||||
match self.GetDocumentElement() {
|
match self.GetDocumentElement() {
|
||||||
Some(root) => {
|
Some(root) => {
|
||||||
root.upcast::<Node>().has_dirty_descendants() ||
|
root.upcast::<Node>().has_dirty_descendants() ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue