aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorAtbrakhi <atbrakhi@igalia.com>2023-08-15 20:02:02 +0200
committerGitHub <noreply@github.com>2023-08-15 18:02:02 +0000
commit8255e8e31853623b76cec7740c3621a89cfc5fed (patch)
tree0d0f19804d9ee17d5e51b7285fed739a65390a71 /components/script_traits/lib.rs
parent83a46f68db17de3b84596c4af97e73dbcf7abd6a (diff)
downloadservo-8255e8e31853623b76cec7740c3621a89cfc5fed.tar.gz
servo-8255e8e31853623b76cec7740c3621a89cfc5fed.zip
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
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index f85a833df94..a6291cf5745 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -38,7 +38,7 @@ use canvas_traits::webgl::WebGLPipeline;
use compositor::ScrollTreeNodeId;
use crossbeam_channel::{Receiver, RecvTimeoutError, Sender};
use devtools_traits::{DevtoolScriptControlMsg, ScriptToDevtoolsControlMsg, WorkerId};
-use embedder_traits::{Cursor, EventLoopWaker};
+use embedder_traits::Cursor;
use euclid::{default::Point2D, Length, Rect, Scale, Size2D, UnknownUnit, Vector2D};
use gfx_traits::Epoch;
use http::HeaderMap;
@@ -687,8 +687,6 @@ pub struct InitialScriptState {
pub layout_is_busy: Arc<AtomicBool>,
/// Application window's GL Context for Media player
pub player_context: WindowGLContext,
- /// Mechanism to force the compositor to process events.
- pub event_loop_waker: Option<Box<dyn EventLoopWaker>>,
}
/// This trait allows creating a `ScriptThread` without depending on the `script`