aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-10-17 10:31:45 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-10-29 14:31:47 -0700
commitf39e01b3366eabb5dca5d9cf1eb705731e56972f (patch)
treee58861e5bc43f469d2fd23296d0b3801085ed38b /components/script/dom/window.rs
parentfe123ad07ce048c11c2820481c9fd54ce296202d (diff)
downloadservo-f39e01b3366eabb5dca5d9cf1eb705731e56972f.tar.gz
servo-f39e01b3366eabb5dca5d9cf1eb705731e56972f.zip
Don't force reflow on content changes
This fixes a performance regression caused by the previous patches. Once we allowed script and layout to run during parsing, it was running too often (every time the document changed and called window.reflow). Fixes #1269.
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index b35752b08c0..71c8890ab6f 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -19,7 +19,7 @@ use dom::location::Location;
use dom::navigator::Navigator;
use dom::performance::Performance;
use dom::screen::Screen;
-use layout_interface::{ReflowGoal, ReflowForDisplay};
+use layout_interface::ReflowGoal;
use page::Page;
use script_task::{ExitWindowMsg, ScriptChan, TriggerLoadMsg, TriggerFragmentMsg};
use script_task::FromWindow;
@@ -348,10 +348,6 @@ impl<'a> WindowHelpers for JSRef<'a, Window> {
fn reflow(self) {
self.page().damage();
- // FIXME This should probably be ReflowForQuery, not Display. All queries currently
- // currently rely on the display list, which means we can't destroy it by
- // doing a query reflow.
- self.page().reflow(ReflowForDisplay, self.control_chan.clone(), &*self.compositor);
}
fn flush_layout(self, goal: ReflowGoal) {