mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Implement sectionRowIndex
property on <tr>
.
Fixes https://github.com/servo/servo/issues/10509.
This commit is contained in:
parent
9fb5703c6d
commit
0ee9521848
5 changed files with 29 additions and 76 deletions
|
@ -118,13 +118,6 @@ impl HTMLTableElement {
|
|||
thead.upcast::<Node>().remove_self();
|
||||
}
|
||||
}
|
||||
|
||||
/// Determine the row index for the given `HTMLTableRowElement`.
|
||||
pub fn row_index(&self, row_elem: &HTMLTableRowElement) -> Option<usize> {
|
||||
self.Rows()
|
||||
.elements_iter()
|
||||
.position(|elem| (&elem as &Element) == row_elem.upcast::<Element>())
|
||||
}
|
||||
}
|
||||
|
||||
impl HTMLTableElementMethods for HTMLTableElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue