diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-09 13:41:10 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-15 13:55:40 -0700 |
commit | ffe60ea02704c0bd4545a194bff3f2feafd0133c (patch) | |
tree | 97f40c907aae08235e4bc856681cd1eb6df5a274 /src/components/script/script_task.rs | |
parent | 907d9f23cf8ab5be112376199c3c57ba9e4a3035 (diff) | |
download | servo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.tar.gz servo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.zip |
Trait changes, and eliminate 'copy'
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 3386f058b08..4d6b5f2bda2 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -266,7 +266,7 @@ impl Page { // Send new document and relevant styles to layout. let reflow = ~Reflow { document_root: do frame.document.with_base |doc| { doc.root }, - url: copy self.url.get_ref().first(), + url: self.url.get_ref().first().clone(), goal: goal, window_size: self.window_size.get(), script_chan: script_chan, @@ -498,7 +498,7 @@ impl ScriptTask { js_info.js_compartment.define_functions(debug_fns); js_info.js_context.evaluate_script(js_info.js_compartment.global_obj, bytes, - copy url.path, + url.path.clone(), 1); } } |