diff options
author | Will Huxtable <will.huxtable@gmail.com> | 2015-07-11 17:06:12 +0100 |
---|---|---|
committer | Will Huxtable <will.huxtable@gmail.com> | 2015-07-11 17:06:12 +0100 |
commit | 58a31b07b4d2b10a37622fe35918415f333f1b04 (patch) | |
tree | 6506589fba33d9746a64bd06b6c10142033f2ec9 /components/script/page.rs | |
parent | 243446eff33d596b192a7190d5dfe3bb1a6e07dd (diff) | |
download | servo-58a31b07b4d2b10a37622fe35918415f333f1b04.tar.gz servo-58a31b07b4d2b10a37622fe35918415f333f1b04.zip |
Remove url field from Page
Diffstat (limited to 'components/script/page.rs')
-rw-r--r-- | components/script/page.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/components/script/page.rs b/components/script/page.rs index 83c0c609a93..563cbae1006 100644 --- a/components/script/page.rs +++ b/components/script/page.rs @@ -11,7 +11,6 @@ use dom::window::Window; use msg::constellation_msg::PipelineId; use std::cell::Cell; use std::rc::Rc; -use url::Url; /// Encapsulates a handle to a frame in a frame tree. #[derive(JSTraceable)] @@ -22,11 +21,6 @@ pub struct Page { /// The outermost frame containing the document and window. frame: DOMRefCell<Option<Frame>>, - /// Cached copy of the most recent url loaded by the script, after all redirections. - /// TODO(tkuehn): this currently does not follow any particular caching policy - /// and simply caches pages forever (!). - url: Url, - /// Indicates if reflow is required when reloading. needs_reflow: Cell<bool>, @@ -61,11 +55,10 @@ impl IterablePage for Rc<Page> { } impl Page { - pub fn new(id: PipelineId, url: Url) -> Page { + pub fn new(id: PipelineId) -> Page { Page { id: id, frame: DOMRefCell::new(None), - url: url, needs_reflow: Cell::new(true), children: DOMRefCell::new(vec!()), } |