switched window.page from *mut Page to @mut Page

This commit is contained in:
Tim Kuehn 2013-07-29 14:14:31 -07:00
parent 43491d5b23
commit df5306e358
5 changed files with 17 additions and 26 deletions

View file

@ -569,10 +569,10 @@ impl ScriptTask {
for last_loaded_url.iter().advance |last_loaded_url| {
let (ref last_loaded_url, needs_reflow) = *last_loaded_url;
if *last_loaded_url == url {
page.url = Some((last_loaded_url.clone(), false));
if needs_reflow {
page.reflow_all(ReflowForDisplay, self.chan.clone(), self.compositor);
}
page.url = Some((last_loaded_url.clone(), false));
return;
}
}
@ -601,7 +601,7 @@ impl ScriptTask {
let HtmlParserResult {root, js_port, style_port, iframe_port} = html_parsing_result;
// Create the window and document objects.
let window = Window::new(&mut *page, self.chan.clone(), self.compositor);
let window = Window::new(page, self.chan.clone(), self.compositor);
let document = Document(root, Some(window));
// Tie the root into the document.