aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/html/hubbub_html_parser.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-08-09 13:24:10 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2013-08-15 13:55:40 -0700
commitbe061a9aa0384fc36b42f4f8902b6c8cb76d30cc (patch)
tree4ede58c0b6442422f720684686cd4715dc143d2c /src/components/script/html/hubbub_html_parser.rs
parentffe60ea02704c0bd4545a194bff3f2feafd0133c (diff)
downloadservo-be061a9aa0384fc36b42f4f8902b6c8cb76d30cc.tar.gz
servo-be061a9aa0384fc36b42f4f8902b6c8cb76d30cc.zip
Library changes
Diffstat (limited to 'src/components/script/html/hubbub_html_parser.rs')
-rw-r--r--src/components/script/html/hubbub_html_parser.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/script/html/hubbub_html_parser.rs b/src/components/script/html/hubbub_html_parser.rs
index 79403b643c2..2409d4c0a6a 100644
--- a/src/components/script/html/hubbub_html_parser.rs
+++ b/src/components/script/html/hubbub_html_parser.rs
@@ -56,8 +56,8 @@ use std::cell::Cell;
use std::comm;
use std::comm::{Chan, Port, SharedChan};
use std::str::eq_slice;
-use std::result;
use std::task;
+use std::from_str::FromStr;
use hubbub::hubbub;
use servo_msg::constellation_msg::SubpageId;
use servo_net::image_cache_task::ImageCacheTask;
@@ -65,8 +65,7 @@ use servo_net::image_cache_task;
use servo_net::resource_task::{Done, Load, Payload, ResourceTask};
use servo_util::tree::TreeUtils;
use servo_util::url::make_url;
-use extra::net::url::Url;
-use extra::net::url;
+use extra::url::Url;
use extra::future::{Future, from_port};
use geom::size::Size2D;
@@ -498,7 +497,7 @@ pub fn parse_html(cx: *JSContext,
// We've reached the end of a <style> so we can submit all the text to the parser.
unsafe {
let style: AbstractNode<ScriptView> = NodeWrapping::from_hubbub_node(style);
- let url = url::from_str("http://example.com/"); // FIXME
+ let url = FromStr::from_str("http://example.com/"); // FIXME
let url_cell = Cell::new(url);
let mut data = ~[];
@@ -511,7 +510,7 @@ pub fn parse_html(cx: *JSContext,
}
debug!("data = %?", data);
- let provenance = InlineProvenance(result::unwrap(url_cell.take()), data.concat());
+ let provenance = InlineProvenance(url_cell.take().unwrap(), data.concat());
css_chan3.send(CSSTaskNewFile(provenance));
}
},