mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use the newly added inCompartments option everywhere it can be
This commit is contained in:
parent
0b29caa554
commit
292d468cd1
22 changed files with 216 additions and 259 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// check-tidy: no specs after this line
|
||||
|
||||
use crate::compartments::InCompartment;
|
||||
use crate::dom::bindings::codegen::Bindings::TestWorkletBinding::TestWorkletMethods;
|
||||
use crate::dom::bindings::codegen::Bindings::TestWorkletBinding::Wrap;
|
||||
use crate::dom::bindings::codegen::Bindings::WorkletBinding::WorkletBinding::WorkletMethods;
|
||||
|
@ -51,8 +51,13 @@ impl TestWorklet {
|
|||
}
|
||||
|
||||
impl TestWorkletMethods for TestWorklet {
|
||||
fn AddModule(&self, moduleURL: USVString, options: &WorkletOptions) -> Rc<Promise> {
|
||||
self.worklet.AddModule(moduleURL, options)
|
||||
fn AddModule(
|
||||
&self,
|
||||
moduleURL: USVString,
|
||||
options: &WorkletOptions,
|
||||
comp: InCompartment,
|
||||
) -> Rc<Promise> {
|
||||
self.worklet.AddModule(moduleURL, options, comp)
|
||||
}
|
||||
|
||||
fn Lookup(&self, key: DOMString) -> Option<DOMString> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue