mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
script: Mark callback methods with CanGc. (#35753)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
3d320fa96a
commit
5650fa2e79
26 changed files with 133 additions and 67 deletions
|
@ -1154,6 +1154,7 @@ fn invoke(
|
|||
phase,
|
||||
invocation_target_in_shadow_tree,
|
||||
timeline_window,
|
||||
can_gc,
|
||||
);
|
||||
|
||||
// Step 9. If found is false and event’s isTrusted attribute is true:
|
||||
|
@ -1182,6 +1183,7 @@ fn invoke(
|
|||
phase,
|
||||
invocation_target_in_shadow_tree,
|
||||
timeline_window,
|
||||
can_gc,
|
||||
);
|
||||
|
||||
// Step 9.4 Set event’s type attribute value to originalEventType.
|
||||
|
@ -1196,6 +1198,7 @@ fn inner_invoke(
|
|||
_phase: ListenerPhase,
|
||||
invocation_target_in_shadow_tree: bool,
|
||||
timeline_window: Option<&Window>,
|
||||
can_gc: CanGc,
|
||||
) -> bool {
|
||||
// Step 1. Let found be false.
|
||||
let mut found = false;
|
||||
|
@ -1261,6 +1264,7 @@ fn inner_invoke(
|
|||
.expect("event target was initialized as part of \"invoke\""),
|
||||
event,
|
||||
ExceptionHandling::Report,
|
||||
can_gc,
|
||||
);
|
||||
if let Some(window) = timeline_window {
|
||||
window.emit_timeline_marker(marker.end());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue