mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Deindent the main part of handle_stylesheet_url.
This commit is contained in:
parent
7fe688b8e9
commit
ebbf9fd4d5
1 changed files with 43 additions and 43 deletions
|
@ -203,8 +203,11 @@ impl HTMLLinkElement {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
match document.base_url().join(href) {
|
let url = match document.base_url().join(href) {
|
||||||
Ok(url) => {
|
Err(e) => return debug!("Parsing url {} failed: {}", href, e),
|
||||||
|
Ok(url) => url,
|
||||||
|
};
|
||||||
|
|
||||||
let element = self.upcast::<Element>();
|
let element = self.upcast::<Element>();
|
||||||
|
|
||||||
let mq_attribute = element.get_attribute(&ns!(), &atom!("media"));
|
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);
|
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>) {
|
fn handle_favicon_url(&self, rel: &str, href: &str, sizes: &Option<String>) {
|
||||||
let document = document_from_node(self);
|
let document = document_from_node(self);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue