Deindent the main part of handle_stylesheet_url.

This commit is contained in:
Ms2ger 2016-09-27 17:22:47 +02:00
parent 7fe688b8e9
commit ebbf9fd4d5

View file

@ -203,8 +203,11 @@ impl HTMLLinkElement {
return;
}
match document.base_url().join(href) {
Ok(url) => {
let url = match document.base_url().join(href) {
Err(e) => return debug!("Parsing url {} failed: {}", href, e),
Ok(url) => url,
};
let element = self.upcast::<Element>();
let mq_attribute = element.get_attribute(&ns!(), &atom!("media"));
@ -251,9 +254,6 @@ impl HTMLLinkElement {
document.load_async(LoadType::Stylesheet(url), response_target, referrer_policy);
}
Err(e) => debug!("Parsing url {} failed: {}", href, e)
}
}
fn handle_favicon_url(&self, rel: &str, href: &str, sizes: &Option<String>) {
let document = document_from_node(self);