mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
More CanGc fixes (#33888)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
720d632170
commit
9c893c7f4d
25 changed files with 102 additions and 58 deletions
|
@ -1905,6 +1905,7 @@ impl Document {
|
|||
pub fn dispatch_composition_event(
|
||||
&self,
|
||||
composition_event: ::keyboard_types::CompositionEvent,
|
||||
can_gc: CanGc,
|
||||
) {
|
||||
// spec: https://w3c.github.io/uievents/#compositionstart
|
||||
// spec: https://w3c.github.io/uievents/#compositionupdate
|
||||
|
@ -1928,6 +1929,7 @@ impl Document {
|
|||
Some(&self.window),
|
||||
0,
|
||||
DOMString::from(composition_event.data),
|
||||
can_gc,
|
||||
);
|
||||
let event = compositionevent.upcast::<Event>();
|
||||
event.fire(target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue