aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-07-25 09:51:23 -0700
committerbors-servo <release+servo@mozilla.com>2013-07-25 09:51:23 -0700
commitf34a13a8b566d42a94f2127a3e3c6e6a36fb8180 (patch)
tree61de1b185d6a7ec87ed4a0f0c76f02f30bf6d379 /src/components/script/script_task.rs
parentb219262f0a8c4c4cdba54a3f430c70c28293bf82 (diff)
parentdc9f7560b058e1cb5acc8122c43f0ee9632b8608 (diff)
downloadservo-f34a13a8b566d42a94f2127a3e3c6e6a36fb8180.tar.gz
servo-f34a13a8b566d42a94f2127a3e3c6e6a36fb8180.zip
auto merge of #619 : kmcallister/servo/script-redisplay, r=jdm
Stuff I found in the process of working on incremental layout.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index c3b574413c9..b0d9af20cfc 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -16,7 +16,7 @@ use dom::window::Window;
use layout_interface::{AddStylesheetMsg, DocumentDamage};
use layout_interface::{DocumentDamageLevel, HitTestQuery, HitTestResponse, LayoutQuery};
use layout_interface::{LayoutChan, MatchSelectorsDocumentDamage, QueryMsg, Reflow};
-use layout_interface::{ReflowDocumentDamage, ReflowForDisplay, ReflowForScriptQuery, ReflowGoal};
+use layout_interface::{ReflowDocumentDamage, ReflowForDisplay, ReflowGoal};
use layout_interface::ReflowMsg;
use layout_interface;
use servo_msg::constellation_msg::{ConstellationChan, LoadUrlMsg, NavigationDirection};
@@ -321,7 +321,8 @@ impl ScriptTask {
null(),
&rval);
- self.reflow(ReflowForScriptQuery)
+ // We don't know what the script changed, so for now we will do a total redisplay.
+ self.reflow_all(ReflowForDisplay)
}
}