mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Mark CompileFunction as a potential GC operation. (#33937)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
9acb25521e
commit
dc03d1f3e2
5 changed files with 35 additions and 19 deletions
|
@ -271,6 +271,7 @@ impl Event {
|
|||
object,
|
||||
self,
|
||||
Some(ListenerPhase::Capturing),
|
||||
can_gc,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -290,6 +291,7 @@ impl Event {
|
|||
object,
|
||||
self,
|
||||
Some(ListenerPhase::Bubbling),
|
||||
can_gc,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -639,6 +641,7 @@ fn invoke(
|
|||
object: &EventTarget,
|
||||
event: &Event,
|
||||
phase: Option<ListenerPhase>,
|
||||
can_gc: CanGc,
|
||||
// TODO legacy_output_did_listeners_throw for indexeddb
|
||||
) {
|
||||
// Step 1: Until shadow DOM puts the event path in the
|
||||
|
@ -657,7 +660,7 @@ fn invoke(
|
|||
event.current_target.set(Some(object));
|
||||
|
||||
// Step 6
|
||||
let listeners = object.get_listeners_for(&event.type_(), phase);
|
||||
let listeners = object.get_listeners_for(&event.type_(), phase, can_gc);
|
||||
|
||||
// Step 7.
|
||||
let found = inner_invoke(timeline_window, object, event, &listeners);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue