mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
script: Fix typo in ScriptThread::process_pending_input_events
(#35627)
Also remove an unused import. Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
fe509bb82f
commit
d42146ce91
2 changed files with 5 additions and 5 deletions
|
@ -1060,7 +1060,7 @@ impl ScriptThread {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Process compositor events as part of a "update the rendering task".
|
/// 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 {
|
let Some(document) = self.documents.borrow().find_document(pipeline_id) else {
|
||||||
warn!("Processing pending compositor events for closed pipeline {pipeline_id}.");
|
warn!("Processing pending compositor events for closed pipeline {pipeline_id}.");
|
||||||
return;
|
return;
|
||||||
|
@ -1199,13 +1199,13 @@ impl ScriptThread {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(#31581): The steps in the "Revealing the document" section need to be implemente
|
// TODO(#31581): The steps in the "Revealing the document" section need to be implemented
|
||||||
// `proces_pending_input_events` handles the focusing steps as well as other events
|
// `process_pending_input_events` handles the focusing steps as well as other events
|
||||||
// from the compositor.
|
// from the compositor.
|
||||||
|
|
||||||
// TODO: Should this be broken and to match the specification more closely? For instance see
|
// TODO: Should this be broken and to match the specification more closely? For instance see
|
||||||
// https://html.spec.whatwg.org/multipage/#flush-autofocus-candidates.
|
// 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
|
// TODO(#31665): Implement the "run the scroll steps" from
|
||||||
// https://drafts.csswg.org/cssom-view/#document-run-the-scroll-steps.
|
// https://drafts.csswg.org/cssom-view/#document-run-the-scroll-steps.
|
||||||
|
|
|
@ -8,7 +8,7 @@ use std::sync::{Arc, Mutex};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use std::{mem, thread};
|
use std::{mem, thread};
|
||||||
|
|
||||||
use euclid::{Box2D, Point2D, Rect, RigidTransform3D, Rotation3D, Size2D, Transform3D, Vector3D};
|
use euclid::{Point2D, Rect, RigidTransform3D, Rotation3D, Size2D, Transform3D, Vector3D};
|
||||||
use glow::{self as gl, HasContext, PixelUnpackData};
|
use glow::{self as gl, HasContext, PixelUnpackData};
|
||||||
use interaction_profiles::{get_profiles_from_path, get_supported_interaction_profiles};
|
use interaction_profiles::{get_profiles_from_path, get_supported_interaction_profiles};
|
||||||
use log::{error, warn};
|
use log::{error, warn};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue