diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index d6c1201106e..7f885988c4e 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -1133,10 +1133,6 @@ impl Window { subpage_id } - pub fn layout_is_idle(&self) -> bool { - self.layout_join_port.borrow().is_none() - } - pub fn get_pending_reflow_count(&self) -> u32 { self.pending_reflow_count.get() } diff --git a/components/script/script_task.rs b/components/script/script_task.rs index a090d1c91ef..8426363a69e 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -712,12 +712,10 @@ impl ScriptTask { for page in page.iter() { // Only process a resize if layout is idle. let window = page.window(); - if window.r().layout_is_idle() { - let resize_event = window.r().steal_resize_event(); - match resize_event { - Some(size) => resizes.push((window.r().pipeline(), size)), - None => () - } + let resize_event = window.r().steal_resize_event(); + match resize_event { + Some(size) => resizes.push((window.r().pipeline(), size)), + None => () } } }