diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-05-20 14:34:31 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-05-20 14:34:31 -0500 |
commit | fada39164cbaba3a9885f08fad6f10a2353a4838 (patch) | |
tree | dcf483e3d1ac9ac86457daaaa35726c01111f62f /components/script/dom/virtualmethods.rs | |
parent | ee147c164a8a13743dec2def60b13997145e7a55 (diff) | |
parent | 1c96eed54410b45e0d0401941d4d156c5c8c9c78 (diff) | |
download | servo-fada39164cbaba3a9885f08fad6f10a2353a4838.tar.gz servo-fada39164cbaba3a9885f08fad6f10a2353a4838.zip |
Auto merge of #5858 - pgonda:tabindex-focus-flag, r=jdm
Added support for the tabindex field, also added its correct defaults (-2 TODOs for things not supported in Servo yet). Also added tabindex logic into Element::is_focusable_area.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5858)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index a83c801831d..4effc4daf33 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -91,6 +91,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 { |