mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add a realm
This commit is contained in:
parent
f721113f8d
commit
c89f79b132
2 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use crate::compartments::enter_realm;
|
||||
use crate::dom::bindings::codegen::Bindings::EventBinding::EventBinding::EventMethods;
|
||||
use crate::dom::bindings::codegen::Bindings::XRInputSourcesChangeEventBinding::{
|
||||
self, XRInputSourcesChangeEventMethods,
|
||||
|
@ -62,7 +63,7 @@ impl XRInputSourcesChangeEvent {
|
|||
let event = changeevent.upcast::<Event>();
|
||||
event.init_event(type_, bubbles, cancelable);
|
||||
}
|
||||
|
||||
let _ac = enter_realm(&*global);
|
||||
let cx = global.get_cx();
|
||||
unsafe {
|
||||
rooted!(in(*cx) let mut added_val = UndefinedValue());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue