mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -5,7 +5,6 @@
|
|||
use crate::dom::bindings::callback::ExceptionHandling;
|
||||
use crate::dom::bindings::cell::DomRefCell;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceBinding::PerformanceEntryList as DOMPerformanceEntryList;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceObserverBinding;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceObserverBinding::PerformanceObserverCallback;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceObserverBinding::PerformanceObserverInit;
|
||||
use crate::dom::bindings::codegen::Bindings::PerformanceObserverBinding::PerformanceObserverMethods;
|
||||
|
@ -71,7 +70,7 @@ impl PerformanceObserver {
|
|||
entries: DOMPerformanceEntryList,
|
||||
) -> DomRoot<PerformanceObserver> {
|
||||
let observer = PerformanceObserver::new_inherited(callback, DomRefCell::new(entries));
|
||||
reflect_dom_object(Box::new(observer), global, PerformanceObserverBinding::Wrap)
|
||||
reflect_dom_object(Box::new(observer), global)
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue