diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-12 15:06:31 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-12 15:06:31 -0600 |
commit | 611f3b38a18e283555ab8ed181e90f8e01b8cc32 (patch) | |
tree | 2bf13be52d3a422e27de477a679a56af544370a0 /components/script/dom | |
parent | 6e26197c069d8dc3e186e48e5a04ed6298b43066 (diff) | |
download | servo-611f3b38a18e283555ab8ed181e90f8e01b8cc32.tar.gz servo-611f3b38a18e283555ab8ed181e90f8e01b8cc32.zip |
Remove reflow status from browsing context.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/browsingcontext.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/components/script/dom/browsingcontext.rs b/components/script/dom/browsingcontext.rs index 9652445d96f..1c2ca66b33e 100644 --- a/components/script/dom/browsingcontext.rs +++ b/components/script/dom/browsingcontext.rs @@ -33,9 +33,6 @@ use std::cell::Cell; pub struct BrowsingContext { reflector: Reflector, - /// Indicates if reflow is required when reloading. - needs_reflow: Cell<bool>, - /// Has this browsing context been discarded? discarded: Cell<bool>, @@ -47,7 +44,6 @@ impl BrowsingContext { pub fn new_inherited(frame_element: Option<&Element>) -> BrowsingContext { BrowsingContext { reflector: Reflector::new(), - needs_reflow: Cell::new(true), discarded: Cell::new(false), frame_element: frame_element.map(JS::from_ref), } @@ -95,12 +91,6 @@ impl BrowsingContext { assert!(!window_proxy.get().is_null()); window_proxy.get() } - - pub fn set_reflow_status(&self, status: bool) -> bool { - let old = self.needs_reflow.get(); - self.needs_reflow.set(status); - old - } } #[allow(unsafe_code)] |