Normal traversal works fine.
Created attachment 236790 [details] patch
Comment on attachment 236790 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=236790&action=review > Source/WebCore/rendering/RenderListItem.cpp:-138 > - // FIXME: Can this be optimized to skip the children of the elements without a renderer? So I guess you are removing this because the answer is no?
> > - // FIXME: Can this be optimized to skip the children of the elements without a renderer? > > So I guess you are removing this because the answer is no? It could, it just didn't feel important enough for a FIXME. We should really have abstraction for "traverse render tree in DOM order" which would do optimisations like that.
This is actually wrong, a pseudo element can have display:list-item.