diff options
Diffstat (limited to 'components/script/dom/webglactiveinfo.rs')
-rw-r--r-- | components/script/dom/webglactiveinfo.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/webglactiveinfo.rs b/components/script/dom/webglactiveinfo.rs index 6712e61fea4..245f6194105 100644 --- a/components/script/dom/webglactiveinfo.rs +++ b/components/script/dom/webglactiveinfo.rs @@ -31,7 +31,11 @@ impl WebGLActiveInfo { } pub fn new(window: &Window, size: i32, ty: u32, name: DOMString) -> DomRoot<WebGLActiveInfo> { - reflect_dom_object(box WebGLActiveInfo::new_inherited(size, ty, name), window, WebGLActiveInfoBinding::Wrap) + reflect_dom_object( + Box::new(WebGLActiveInfo::new_inherited(size, ty, name)), + window, + WebGLActiveInfoBinding::Wrap + ) } } |