DescriptionUse Traversal<HTMLElement> API in HTMLTableRowsCollection
Use Traversal<HTMLElement> API in HTMLTableRowsCollection for clarity and
performance:
- It makes rowAfter() and lastRow() more consistent
- It makes it clear we are only interested in HTMLElements
- We can use hadLocalName() instead of hasTagName() as we only iterate through
HTML elements
- We can use the slightly faster lastChild(const ContainerNode&) overload in
lastRow() now that we know at compile time the argument is not merely a
generic Node.
R=esprehn, adamk
BUG=346733
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170120
Patch Set 1 #Patch Set 2 : Use const HTMLElement in template specialization for consistency #
Total comments: 6
Messages
Total messages: 9 (0 generated)
|