aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation/constellation.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2021-10-16 11:10:25 -0400
committerJosh Matthews <josh@joshmatthews.net>2021-10-18 09:58:32 -0400
commit6b50d7025c8839b834dcaa3167c0654f7d603b1f (patch)
treea5e17d082b39ed8235d03cbb5f35df471fad3fc5 /components/constellation/constellation.rs
parent74f1eb199e67e82ff713f77f7803f02a25966628 (diff)
downloadservo-6b50d7025c8839b834dcaa3167c0654f7d603b1f.tar.gz
servo-6b50d7025c8839b834dcaa3167c0654f7d603b1f.zip
Create initial browser id for compositor on startup.
Diffstat (limited to 'components/constellation/constellation.rs')
-rw-r--r--components/constellation/constellation.rs8
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);