From cbc5ca65a8fed0542a74b8917b5d8d6450714478 Mon Sep 17 00:00:00 2001 From: Connor Brewster Date: Thu, 5 May 2016 22:45:08 -0600 Subject: remove page and move functionality to browing context Allow for adding history items Fixed nested iframe test failure Cleanup and small refactors fixup --- components/script/dom/window.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'components/script/dom/window.rs') diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index dc6fb8704e8..cb8f0c59639 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -51,7 +51,6 @@ use net_traits::bluetooth_thread::BluetoothMethodMsg; use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheThread}; use net_traits::storage_thread::{StorageThread, StorageType}; use num_traits::ToPrimitive; -use page::Page; use profile_traits::mem; use reporter::CSSErrorReporter; use rustc_serialize::base64::{FromBase64, STANDARD, ToBase64}; @@ -151,7 +150,6 @@ pub struct Window { #[ignore_heap_size_of = "TODO(#6911) newtypes containing unmeasurable types are hard"] compositor: IpcSender, browsing_context: MutNullableHeap>, - page: Rc, performance: MutNullableHeap>, navigation_start: u64, navigation_start_precise: f64, @@ -337,10 +335,6 @@ impl Window { self.browsing_context.get().unwrap() } - pub fn page(&self) -> &Page { - &*self.page - } - pub fn bluetooth_thread(&self) -> IpcSender { self.bluetooth_thread.clone() } @@ -1420,7 +1414,6 @@ impl Window { impl Window { pub fn new(runtime: Rc, - page: Rc, script_chan: MainThreadScriptChan, dom_task_source: DOMManipulationTaskSource, user_task_source: UserInteractionTaskSource, @@ -1467,7 +1460,6 @@ impl Window { console: Default::default(), crypto: Default::default(), compositor: compositor, - page: page, navigator: Default::default(), image_cache_thread: image_cache_thread, mem_profiler_chan: mem_profiler_chan, -- cgit v1.2.3