diff options
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r-- | components/script/dom/bindings/utils.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 369a4f11d88..2c96fa2c0dd 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -129,7 +129,7 @@ pub struct NativePropertyHooks { } /// The struct that holds inheritance information for DOM object reflectors. -#[derive(Copy)] +#[derive(Copy, Clone)] pub struct DOMClass { /// A list of interfaces that this object implements, in order of decreasing /// derivedness. @@ -148,6 +148,9 @@ pub struct DOMJSClass { /// Associated data for DOM object reflectors. pub dom_class: DOMClass } +impl Clone for DOMJSClass { + fn clone(&self) -> DOMJSClass { *self } +} unsafe impl Sync for DOMJSClass {} /// Returns the ProtoOrIfaceArray for the given global object. |