diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-04-19 17:00:56 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-04-19 17:00:56 -0500 |
commit | 4474321829d0a1ead7a5ba30fbc9225cd1131319 (patch) | |
tree | d45d7a9685075f38f5dc7ef154bcc1a539ee520e /components/script/parse | |
parent | f164cc253eb876d82ab7c52268751db250ef8f8f (diff) | |
parent | 7cdfc76ea940d9b753e3695a05bd7d0e09b078a5 (diff) | |
download | servo-4474321829d0a1ead7a5ba30fbc9225cd1131319.tar.gz servo-4474321829d0a1ead7a5ba30fbc9225cd1131319.zip |
Auto merge of #5744 - dhananjay92:Issue#5738, r=Manishearth
*This PR solves Issue #5738*
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5744)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/parse')
-rw-r--r-- | components/script/parse/html.rs | 6 |
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); } } } |