mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
script: Ensure we don't suppress reflows when stylesheets are dirty.
This commit is contained in:
parent
ccf15c0a26
commit
69fd9a3e9b
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