mirror of
https://github.com/servo/servo.git
synced 2025-06-26 01:54:33 +01:00
Allow setting id, class, style without a full reflow
Instead we do selector matching again, then diff the style structs to set the "restyle damage" bits which are used to prune reflow traversals. Also don't force a reflow when timers finish, because individual DOM methods should already take care of that.
This commit is contained in:
parent
93e10eaf20
commit
0238410b47
4 changed files with 16 additions and 9 deletions
|
@ -588,9 +588,6 @@ impl ScriptTask {
|
|||
&rval);
|
||||
|
||||
}
|
||||
// We don't know what the script changed, so for now we will do a total redisplay.
|
||||
page.damage(ContentChangedDocumentDamage);
|
||||
page.reflow(ReflowForDisplay, self.chan.clone(), self.compositor);
|
||||
}
|
||||
|
||||
/// Handles a notification that reflow completed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue