aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/virtualmethods.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r--components/script/dom/virtualmethods.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs
index 2147ee07c48..e871fdd1894 100644
--- a/components/script/dom/virtualmethods.rs
+++ b/components/script/dom/virtualmethods.rs
@@ -88,6 +88,14 @@ pub trait VirtualMethods {
}
}
+ /// Called when changing or removing attributes, after all modification
+ /// has taken place.
+ fn after_remove_attr(&self, name: &Atom) {
+ if let Some(ref s) = self.super_type() {
+ s.after_remove_attr(name);
+ }
+ }
+
/// Returns the right AttrValue variant for the attribute with name `name`
/// on this element.
fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue {