diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2013-12-10 15:15:43 -0800 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2013-12-12 14:43:26 -0800 |
commit | 0238410b478c1b8af0599e6a2f2869e8fdd29439 (patch) | |
tree | dc3fa13078a82b2dc67e324021236adf97cef505 /src/components/script/script_task.rs | |
parent | 93e10eaf20e169853d54350d56408bb91d94e343 (diff) | |
download | servo-0238410b478c1b8af0599e6a2f2869e8fdd29439.tar.gz servo-0238410b478c1b8af0599e6a2f2869e8fdd29439.zip |
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.
Diffstat (limited to 'src/components/script/script_task.rs')
-rwxr-xr-x | src/components/script/script_task.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 0c3bf255163..b77b383f4ed 100755 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -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. |