From 7cdfc76ea940d9b753e3695a05bd7d0e09b078a5 Mon Sep 17 00:00:00 2001 From: Dhananjay Nakrani Date: Sat, 18 Apr 2015 12:42:51 -0700 Subject: [PATCH] Change parse_progress() take JSRef by value. [Issue#5738] --- components/script/parse/html.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs index 5fb991745919..1424c72181cd 100644 --- a/components/script/parse/html.rs +++ b/components/script/parse/html.rs @@ -275,7 +275,7 @@ pub fn parse_html(document: JSRef, task_state::enter(IN_HTML_PARSER); } - fn parse_progress(parser: &JSRef, url: &Url, load_response: &LoadResponse) { + fn parse_progress(parser: JSRef, url: &Url, load_response: &LoadResponse) { for msg in load_response.progress_port.iter() { match msg { ProgressMsg::Payload(data) => { @@ -314,10 +314,10 @@ pub fn parse_html(document: JSRef, // https://html.spec.whatwg.org/multipage/#read-text let page = format!("
\u{000A}");
                     parser.parse_chunk(page);
-                    parse_progress(&parser, url, &load_response);
+                    parse_progress(parser, url, &load_response);
                 },
                 _ => {
-                    parse_progress(&parser, url, &load_response);
+                    parse_progress(parser, url, &load_response);
                 }
             }
         }