mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
check for a document being "fully-active" before reflows
This commit is contained in:
parent
eb82e781a3
commit
7530faa4ea
3 changed files with 9 additions and 2 deletions
|
@ -1314,6 +1314,10 @@ impl ScriptThread {
|
|||
// into this loop too, but for now it's only images.
|
||||
debug!("Issuing batched reflows.");
|
||||
for (_, document) in self.documents.borrow().iter() {
|
||||
// Step 13
|
||||
if !document.is_fully_active() {
|
||||
continue;
|
||||
}
|
||||
let window = document.window();
|
||||
let pending_reflows = window.get_pending_reflow_count();
|
||||
if pending_reflows > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue