diff options
author | Euclid Ye <yezhizhenjiakang@gmail.com> | 2025-02-24 23:58:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-24 15:58:05 +0000 |
commit | d42146ce91f518f1ed0e220d02d381f919ac04ee (patch) | |
tree | a67e0be51c2e9cc5443179317729c4f369a86ef7 /components/script/script_thread.rs | |
parent | fe509bb82f648f415434933fa5c78a4f1c70aae5 (diff) | |
download | servo-d42146ce91f518f1ed0e220d02d381f919ac04ee.tar.gz servo-d42146ce91f518f1ed0e220d02d381f919ac04ee.zip |
script: Fix typo in `ScriptThread::process_pending_input_events` (#35627)
Also remove an unused import.
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index e0998db7b2b..9118b79aa62 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -1060,7 +1060,7 @@ impl ScriptThread { } /// Process compositor events as part of a "update the rendering task". - fn proces_pending_input_events(&self, pipeline_id: PipelineId, can_gc: CanGc) { + fn process_pending_input_events(&self, pipeline_id: PipelineId, can_gc: CanGc) { let Some(document) = self.documents.borrow().find_document(pipeline_id) else { warn!("Processing pending compositor events for closed pipeline {pipeline_id}."); return; @@ -1199,13 +1199,13 @@ impl ScriptThread { continue; } - // TODO(#31581): The steps in the "Revealing the document" section need to be implemente - // `proces_pending_input_events` handles the focusing steps as well as other events + // TODO(#31581): The steps in the "Revealing the document" section need to be implemented + // `process_pending_input_events` handles the focusing steps as well as other events // from the compositor. // TODO: Should this be broken and to match the specification more closely? For instance see // https://html.spec.whatwg.org/multipage/#flush-autofocus-candidates. - self.proces_pending_input_events(*pipeline_id, can_gc); + self.process_pending_input_events(*pipeline_id, can_gc); // TODO(#31665): Implement the "run the scroll steps" from // https://drafts.csswg.org/cssom-view/#document-run-the-scroll-steps. |