aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 538ce0b5f8c..82509d132c3 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -725,10 +725,8 @@ impl ScriptThread {
for (id, document) in self.documents.borrow().iter() {
// Only process a resize if layout is idle.
- let resize_event = document.window().steal_resize_event();
- match resize_event {
- Some((size, size_type)) => resizes.push((id, size, size_type)),
- None => ()
+ if let Some((size, size_type)) = document.window().steal_resize_event() {
+ resizes.push((id, size, size_type));
}
}