Skip to content
  • antti@apple.com's avatar
    Replace ElementIteratorAdapter find() with beginAt() · aa03e50f
    antti@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=126714
    
    Reviewed by Andreas Kling.
    
    ElementIteratorAdapter find() would return iterator for the argument element if it was
    of correct type and in the right subtree. This is not really what you would expect from find()
    so replace it with a simple beginAt() iterator construction function.
    
    * dom/DocumentOrderedMap.cpp:
    (WebCore::DocumentOrderedMap::getAllElementsById):
    * dom/ElementChildIterator.h:
    (WebCore::ElementChildIteratorAdapter<ElementType>::beginAt):
    (WebCore::ElementChildConstIteratorAdapter<ElementType>::beginAt):
    * dom/ElementDescendantIterator.h:
    (WebCore::ElementDescendantIteratorAdapter<ElementType>::beginAt):
    (WebCore::ElementDescendantConstIteratorAdapter<ElementType>::beginAt):
    * html/HTMLFormElement.cpp:
    (WebCore::HTMLFormElement::formElementIndex):
    * html/HTMLTableRowsCollection.cpp:
    (WebCore::HTMLTableRowsCollection::rowAfter):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    aa03e50f