Remove the image loading workaround from the parser.

This commit is contained in:
Ms2ger 2014-02-25 19:04:47 +01:00
parent 3b9ff728fe
commit 2639e36c78
3 changed files with 3 additions and 13 deletions

View file

@ -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 {