diff options
Diffstat (limited to 'components/constellation/constellation.rs')
-rw-r--r-- | components/constellation/constellation.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/components/constellation/constellation.rs b/components/constellation/constellation.rs index 6fbd449a236..d1cf5fed950 100644 --- a/components/constellation/constellation.rs +++ b/components/constellation/constellation.rs @@ -4983,7 +4983,7 @@ where /// Called when the window is resized. fn handle_window_size_msg( &mut self, - top_level_browsing_context_id: Option<TopLevelBrowsingContextId>, + top_level_browsing_context_id: TopLevelBrowsingContextId, new_size: WindowSizeData, size_type: WindowSizeType, ) { @@ -4992,10 +4992,8 @@ where new_size.initial_viewport.to_untyped() ); - if let Some(top_level_browsing_context_id) = top_level_browsing_context_id { - let browsing_context_id = BrowsingContextId::from(top_level_browsing_context_id); - self.resize_browsing_context(new_size, size_type, browsing_context_id); - } + let browsing_context_id = BrowsingContextId::from(top_level_browsing_context_id); + self.resize_browsing_context(new_size, size_type, browsing_context_id); if let Some(resize_channel) = self.webdriver.resize_channel.take() { let _ = resize_channel.send(new_size); |