Split SelectorDataList::executeSingleTagNameSelectorData() into the 4 kinds of traversal
Created attachment 204285 [details] Patch
Comment on attachment 204285 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=204285&action=review r=me provided the following comments are addressed. > Source/WebCore/dom/SelectorQuery.cpp:161 > + if (element->localName() == localName) { Can we assert that this condition matches with SelectorChecker::tagMatches(element, tagQualifiedName)? I'm afraid that this might get out of sync with SelectorChecker::tagMatches some day. > Source/WebCore/dom/SelectorQuery.cpp:173 > + matchedElements.append(element); Ditto.
That's a very good point. I add a test verifying the generated matchedElements vector is correct.
Committed r151470: <http://trac.webkit.org/changeset/151470>