mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add trait DomObjectWrap to provide WRAP function
This commit is contained in:
parent
ca29399bab
commit
3ea6d87bcc
353 changed files with 327 additions and 1236 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
// check-tidy: no specs after this line
|
||||
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;
|
||||
use crate::dom::bindings::codegen::Bindings::WorkletBinding::WorkletOptions;
|
||||
use crate::dom::bindings::error::Fallible;
|
||||
|
@ -38,11 +37,7 @@ impl TestWorklet {
|
|||
|
||||
fn new(window: &Window) -> DomRoot<TestWorklet> {
|
||||
let worklet = Worklet::new(window, WorkletGlobalScopeType::Test);
|
||||
reflect_dom_object(
|
||||
Box::new(TestWorklet::new_inherited(&*worklet)),
|
||||
window,
|
||||
Wrap,
|
||||
)
|
||||
reflect_dom_object(Box::new(TestWorklet::new_inherited(&*worklet)), window)
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue