mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Call after_remove_attr before removing the attribute, and rename it before_remove_attr.
This commit is contained in:
parent
fdd17b4139
commit
432e9cb3a7
3 changed files with 12 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue