From 8255e8e31853623b76cec7740c3621a89cfc5fed Mon Sep 17 00:00:00 2001 From: Atbrakhi Date: Tue, 15 Aug 2023 20:02:02 +0200 Subject: Remove `EventLoopWaker` from Constellation (#30101) * remove event_loop_waker that is always None * remove None event_loop_waker form InitialScriptState * fix formatting * remove None event_loop_waker from ScriptThread * remove None EventLoopWaker from Window * remove None and use of wake_after_send in webgl code --- components/script/script_thread.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'components/script/script_thread.rs') diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index b0b55eeb43a..b9833da8e3f 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -715,10 +715,6 @@ pub struct ScriptThread { #[no_trace] player_context: WindowGLContext, - /// A mechanism to force the compositor's event loop to process events. - #[no_trace] - event_loop_waker: Option>, - /// A set of all nodes ever created in this script thread node_ids: DomRefCell>, @@ -1416,7 +1412,6 @@ impl ScriptThread { replace_surrogates: opts.debug.replace_surrogates, user_agent, player_context: state.player_context, - event_loop_waker: state.event_loop_waker, node_ids: Default::default(), is_user_interacting: Cell::new(false), @@ -3295,6 +3290,7 @@ impl ScriptThread { self.timer_task_source(incomplete.pipeline_id), self.websocket_task_source(incomplete.pipeline_id), ); + // Create the window and document objects. let window = Window::new( self.js_runtime.clone(), @@ -3333,7 +3329,6 @@ impl ScriptThread { self.replace_surrogates, self.user_agent.clone(), self.player_context.clone(), - self.event_loop_waker.as_ref().map(|w| (*w).clone_box()), self.gpu_id_hub.clone(), incomplete.inherited_secure_context, ); -- cgit v1.2.3