mirror of
https://github.com/servo/servo.git
synced 2025-10-07 20:19:21 +01:00
Remove the image loading workaround from the parser.
This commit is contained in:
parent
3b9ff728fe
commit
2639e36c78
3 changed files with 3 additions and 13 deletions
|
@ -66,7 +66,7 @@ impl HTMLImageElement {
|
|||
impl HTMLImageElement {
|
||||
/// Makes the local `image` member match the status of the `src` attribute and starts
|
||||
/// prefetching the image. This method must be called after `src` is changed.
|
||||
pub fn update_image(&mut self, image_cache: ImageCacheTask, url: Option<Url>) {
|
||||
fn update_image(&mut self, image_cache: ImageCacheTask, url: Option<Url>) {
|
||||
let elem = &mut self.htmlelement.element;
|
||||
let src_opt = elem.get_attribute(Null, "src").map(|x| x.get().Value());
|
||||
match src_opt {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue