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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 7 17:11:00 PDT 2012


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





--- Comment #7 from Antti Koivisto <koivisto at iki.fi>  2012-05-07 17:10:59 PST ---
(In reply to comment #6)
> > Yeah but that is an interface change and better done separately. We don't know what relies on ability to pass null. We should ASSERT(stayWithin).
> 
> What I meant is that you could just call traverseNextNode() in that case. Oh well, I guess compilers are smart enough to move the condition out of the loop?

That still adds an extra branch for no reason. It should really be the callers responsibility to use the right variant as usually they just need one or the other.

-- 
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