aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-12-10 15:15:43 -0800
committerKeegan McAllister <kmcallister@mozilla.com>2013-12-12 14:43:26 -0800
commit0238410b478c1b8af0599e6a2f2869e8fdd29439 (patch)
treedc3fa13078a82b2dc67e324021236adf97cef505 /src/components/script/script_task.rs
parent93e10eaf20e169853d54350d56408bb91d94e343 (diff)
downloadservo-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-xsrc/components/script/script_task.rs3
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.