mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +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
|
@ -601,7 +601,6 @@ macro_rules! rooted_vec {
|
|||
/// DOM struct implementation for simple interfaces inheriting from PerformanceEntry.
|
||||
macro_rules! impl_performance_entry_struct(
|
||||
($binding:ident, $struct:ident, $type:expr) => (
|
||||
use crate::dom::bindings::codegen::Bindings::$binding;
|
||||
use crate::dom::bindings::reflector::reflect_dom_object;
|
||||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::str::DOMString;
|
||||
|
@ -631,7 +630,7 @@ macro_rules! impl_performance_entry_struct(
|
|||
start_time: f64,
|
||||
duration: f64) -> DomRoot<$struct> {
|
||||
let entry = $struct::new_inherited(name, start_time, duration);
|
||||
reflect_dom_object(Box::new(entry), global, $binding::Wrap)
|
||||
reflect_dom_object(Box::new(entry), global)
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue