aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/file.rs
diff options
context:
space:
mode:
authorMichael Booth <michaelboothj@gmail.com>2014-11-27 20:44:41 +0000
committerMichael Booth <michaelboothj@gmail.com>2014-11-30 19:47:52 +0000
commit2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1 (patch)
tree0bd3db5aa9c9e3b91715c3d067721960d342ef77 /components/script/dom/file.rs
parent9cea3ce2661e68bae5400164b72930e4c5eeae55 (diff)
downloadservo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.tar.gz
servo-2cbf5a36710f9ea8310bdf9d90847da3c18fb2f1.zip
Updated reflect_dom_object to be passed by value
Diffstat (limited to 'components/script/dom/file.rs')
-rw-r--r--components/script/dom/file.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs
index d6a056cb04b..26555755401 100644
--- a/components/script/dom/file.rs
+++ b/components/script/dom/file.rs
@@ -28,7 +28,7 @@ impl File {
// the relevant subfields of file_bits should be copied over
}
- pub fn new(global: &GlobalRef, file_bits: JSRef<Blob>, name: DOMString) -> Temporary<File> {
+ pub fn new(global: GlobalRef, file_bits: JSRef<Blob>, name: DOMString) -> Temporary<File> {
reflect_dom_object(box File::new_inherited(file_bits, name),
global,
FileBinding::Wrap)