mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue