On Feb 18, 2013, at 6:18 PM, Hajime Morrita <morr...@chromium.org> wrote:
> Non-trivial tree traversal API in general should, IMO, be modeled after > recently introduced NodeTraversal. Having separate namespaces allows us to > keep Node API minimal. Also it is stateless and simple. I made > NodeRenderingTraversal in that way. AncestorChainWalker could be just merged > to NodeRenderingTraversal. That sounds like a promising direction. > Speaking of ComposedShadowTreeWalker, I think it is worth having a class > instead of namespace > since it holds configuration parameters to decide, for example, whether it > skips specific types of node. I think this depends on how often this is used, and how. The designers of the DOM took an approach like this with NodeIterator and it has not proved a popular API design with clients. -- Darin _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev