Don't bother using a Vector for the ouput of querySelector, just return the first element found
Created attachment 209152 [details] Patch
Comment on attachment 209152 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=209152&action=review > Source/WebCore/dom/SelectorQuery.cpp:149 > + SelectorQueryTrait::appendOutputForElement(output, element); > + if (SelectorQueryTrait::shouldOnlyMatchFirstElement) It'll be nice to assert that we never call appendOutputForElement for the first match case.
Committed r154370: <http://trac.webkit.org/changeset/154370>