mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
Reduce copying on parse_url() call sites.
This commit is contained in:
parent
fe1bb6a325
commit
d3cbdd8865
7 changed files with 41 additions and 41 deletions
|
@ -895,7 +895,7 @@ impl ScriptTask {
|
|||
url.clone()
|
||||
});
|
||||
debug!("ScriptTask: current url is {:?}", base_url);
|
||||
let url = parse_url(href.Value(), base_url);
|
||||
let url = parse_url(href.value_ref(), base_url);
|
||||
|
||||
if click_frag {
|
||||
match self.find_fragment_node(page, url.fragment.unwrap()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue