mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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 -->
This commit is contained in:
commit
fada39164c
6 changed files with 80 additions and 16 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue