Summary: | Don't bother using a Vector for the ouput of querySelector, just return the first element found | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||
Component: | New Bugs | Assignee: | Benjamin Poulain <benjamin> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | allan.jensen, commit-queue, esprehn+autocc, kangil.han | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Benjamin Poulain
2013-08-19 20:29:27 PDT
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> |