mirror of
https://github.com/servo/servo.git
synced 2025-10-17 00:39:15 +01:00
auto merge of #1608 : SimonSapin/servo/url, r=metajack
Align with spec terminology.
This commit is contained in:
commit
fe1bb6a325
9 changed files with 60 additions and 66 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