[Webkit-unassigned] [Bug 85844] Inline Node::traverseNextNode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 11 08:49:21 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=85844





--- Comment #40 from Antti Koivisto <koivisto at iki.fi>  2012-05-11 08:48:25 PST ---
(In reply to comment #22)
> I also think we can override this in ContainerNode to do a version that’s even tighter for cases where we are starting with an Element* rather than a Node*. The firstChild function is smaller on an Element* than on a Node*.

Most of the clients actually want to traverse Elements (or StyledElements) not Nodes. We might want to have traverseNextElement/traverseNextElementSibling. If we tracked whether elements have any Element children (with a bit) we could avoid looking into Text nodes at all.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list