Call after_remove_attr before removing the attribute, and rename it before_remove_attr.

This commit is contained in:
Ms2ger 2014-02-25 17:18:47 +01:00
parent fdd17b4139
commit 432e9cb3a7
3 changed files with 12 additions and 12 deletions

View file

@ -96,7 +96,7 @@ impl HTMLImageElement {
}
}
pub fn AfterRemoveAttr(&mut self, name: DOMString) {
pub fn BeforeRemoveAttr(&mut self, name: DOMString) {
if "src" == name {
self.update_image(None, None);
}