aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/page.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/page.rs')
-rw-r--r--components/script/page.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/page.rs b/components/script/page.rs
index 01b396126ad..4e87ebe9050 100644
--- a/components/script/page.rs
+++ b/components/script/page.rs
@@ -182,7 +182,7 @@ impl Page {
if force_reflow {
let frame = self.frame();
let window = frame.as_ref().unwrap().window.root();
- self.reflow(reflow_goal, window.control_chan().clone(), window.compositor(), query);
+ self.reflow(reflow_goal, window.control_chan().clone(), &mut **window.compositor(), query);
} else {
self.avoided_reflows.set(self.avoided_reflows.get() + 1);
}
@@ -328,9 +328,8 @@ impl Page {
pub fn reflow(&self,
goal: ReflowGoal,
script_chan: ScriptControlChan,
- compositor: &ScriptListener,
+ compositor: &mut ScriptListener,
query_type: ReflowQueryType) {
-
let root = match *self.frame() {
None => return,
Some(ref frame) => {