diff options
author | Michael Booth <michaelboothj@gmail.com> | 2014-11-27 20:44:41 +0000 |
---|---|---|
committer | Michael Booth <michaelboothj@gmail.com> | 2014-11-30 19:47:52 +0000 |
commit | 2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1 (patch) | |
tree | 0bd3db5aa9c9e3b91715c3d067721960d342ef77 /components/script/dom/blob.rs | |
parent | 9cea3ce2661e68bae5400164b72930e4c5eeae55 (diff) | |
download | servo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.tar.gz servo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.zip |
Updated reflect_dom_object to be passed by value
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r-- | components/script/dom/blob.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs index f59c690360e..3380670d4f5 100644 --- a/components/script/dom/blob.rs +++ b/components/script/dom/blob.rs @@ -29,14 +29,14 @@ impl Blob { } } - pub fn new(global: &GlobalRef) -> Temporary<Blob> { + pub fn new(global: GlobalRef) -> Temporary<Blob> { reflect_dom_object(box Blob::new_inherited(), global, BlobBinding::Wrap) } pub fn Constructor(global: &GlobalRef) -> Fallible<Temporary<Blob>> { - Ok(Blob::new(global)) + Ok(Blob::new(*global)) } } |