aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse/html.rs
diff options
context:
space:
mode:
authorDhananjay Nakrani <dhananjaynakrani@gmail.com>2015-04-18 12:42:51 -0700
committerDhananjay Nakrani <dhananjaynakrani@gmail.com>2015-04-19 11:24:45 -0700
commit7cdfc76ea940d9b753e3695a05bd7d0e09b078a5 (patch)
treed45d7a9685075f38f5dc7ef154bcc1a539ee520e /components/script/parse/html.rs
parentf164cc253eb876d82ab7c52268751db250ef8f8f (diff)
downloadservo-7cdfc76ea940d9b753e3695a05bd7d0e09b078a5.tar.gz
servo-7cdfc76ea940d9b753e3695a05bd7d0e09b078a5.zip
Change parse_progress() take JSRef by value. [Issue#5738]
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r--components/script/parse/html.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index 5fb99174591..1424c72181c 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -275,7 +275,7 @@ pub fn parse_html(document: JSRef<Document>,
task_state::enter(IN_HTML_PARSER);
}
- fn parse_progress(parser: &JSRef<ServoHTMLParser>, url: &Url, load_response: &LoadResponse) {
+ fn parse_progress(parser: JSRef<ServoHTMLParser>, 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<Document>,
// https://html.spec.whatwg.org/multipage/#read-text
let page = format!("<pre>\u{000A}<plaintext>");
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);
}
}
}