Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement HTMLTableCellElement::CellIndex #7829
Conversation
82d7cfa
to
e7b869f
| if let Some(tr) = NodeCast::from_ref(self).GetParentNode() { | ||
| if let Some(tr) = HTMLTableRowElementCast::to_root(tr) { | ||
| let this = Some(Root::from_ref(ElementCast::from_ref(self))); | ||
| for i in 0..tr.Cells().Length() { |
This comment has been minimized.
This comment has been minimized.
Ms2ger
Oct 2, 2015
Contributor
Using Cells and Item kinda sucks. Why not use children().position()? That should be a lot more efficient, and because we compare to self, would still be correct.
68bdef5
to
8d4ce78
|
components/script/dom/htmltablecellelement.rs, line 91 [r1] (raw file): Comments from the review on Reviewable.io |
|
Reviewed 3 of 4 files at r1, 1 of 1 files at r2. components/script/dom/htmltablecellelement.rs, line 94 [r2] (raw file): Comments from the review on Reviewable.io |
c252fc5
to
d335e85
|
How's that? |
|
Reviewed 3 of 3 files at r3. tests/wpt/web-platform-tests/html/semantics/tabular-data/attributes-common-to-td-and-th-elements/cellIndex.html, line 48 [r3] (raw file): Comments from the review on Reviewable.io |
|
-S-awaiting-review +S-needs-code-changes Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. Comments from the review on Reviewable.io |
|
|
d335e85
to
4df2de4
4df2de4
to
899f1ca
|
Tidy issues addressed. |
|
@bors-servo r+ Reviewed 2 of 2 files at r4. Comments from the review on Reviewable.io |
|
|
Implement HTMLTableCellElement::CellIndex Extracted from #6936 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7829) <!-- Reviewable:end -->
|
|
frewsxcv commentedOct 2, 2015
Extracted from #6936