mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Rename make_url/current_url to parse_url/base_url, to align with spec terminology.
This commit is contained in:
parent
39e781bcc7
commit
33f8ef618b
8 changed files with 60 additions and 60 deletions
|
@ -13,7 +13,7 @@ use servo_util::geometry::to_px;
|
|||
use layout_interface::{ContentBoxQuery, ContentBoxResponse};
|
||||
use servo_net::image_cache_task;
|
||||
use servo_net::image_cache_task::ImageCacheTask;
|
||||
use servo_util::url::make_url;
|
||||
use servo_util::url::parse_url;
|
||||
use servo_util::namespace::Null;
|
||||
|
||||
pub struct HTMLImageElement {
|
||||
|
@ -44,7 +44,7 @@ impl HTMLImageElement {
|
|||
match src_opt {
|
||||
None => {}
|
||||
Some(src) => {
|
||||
let img_url = make_url(src, url);
|
||||
let img_url = parse_url(src, url);
|
||||
self.image = Some(img_url.clone());
|
||||
|
||||
// inform the image cache to load this, but don't store a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue