aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index 8f3d13c897d..ff236836bd5 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -151,11 +151,11 @@ pub struct Page {
pub struct PageTree {
pub page: Rc<Page>,
- pub inner: ~[PageTree],
+ pub inner: Vec<PageTree>,
}
pub struct PageTreeIterator<'a> {
- stack: ~[&'a mut PageTree],
+ stack: Vec<&'a mut PageTree>,
}
impl PageTree {
@@ -175,7 +175,7 @@ impl PageTree {
fragment_node: Traceable::new(RefCell::new(None)),
last_reflow_id: Traceable::new(RefCell::new(0)),
}),
- inner: ~[],
+ inner: vec!(),
}
}
@@ -198,7 +198,7 @@ impl PageTree {
pub fn iter<'a>(&'a mut self) -> PageTreeIterator<'a> {
PageTreeIterator {
- stack: ~[self],
+ stack: vec!(self),
}
}