mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
CanGc fixes in components/script/dom (#33843)
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
parent
1e39787573
commit
46d6c0c883
9 changed files with 21 additions and 24 deletions
|
@ -1614,7 +1614,7 @@ impl ScriptThread {
|
|||
},
|
||||
|
||||
CompositorEvent::WheelEvent(delta, point, node_address) => {
|
||||
self.handle_wheel_event(pipeline_id, delta, point, node_address);
|
||||
self.handle_wheel_event(pipeline_id, delta, point, node_address, can_gc);
|
||||
},
|
||||
|
||||
CompositorEvent::KeyboardEvent(key_event) => {
|
||||
|
@ -3955,12 +3955,13 @@ impl ScriptThread {
|
|||
wheel_delta: WheelDelta,
|
||||
point: Point2D<f32>,
|
||||
node_address: Option<UntrustedNodeAddress>,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
let Some(document) = self.documents.borrow().find_document(pipeline_id) else {
|
||||
warn!("Message sent to closed pipeline {pipeline_id}.");
|
||||
return;
|
||||
};
|
||||
unsafe { document.handle_wheel_event(wheel_delta, point, node_address) };
|
||||
unsafe { document.handle_wheel_event(wheel_delta, point, node_address, can_gc) };
|
||||
}
|
||||
|
||||
/// Handle a "navigate an iframe" message from the constellation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue