Use ElementTraversal in SelectorDataList::execute
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 May 2013 03:17:43 +0000 (03:17 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 May 2013 03:17:43 +0000 (03:17 +0000)
commit6e3a705d4f608b7d2948532ae3592ef061587230
treed35f309cf4ddc1bad7ed9500f4618e7f6ec4fca0
parentb2d3c6d62dd63fde9a1de05e9f4c1de7d3e581fa
Use ElementTraversal in SelectorDataList::execute
https://bugs.webkit.org/show_bug.cgi?id=116131

Reviewed by Darin Adler.

Use ElementTraversal::firstWithin and ElementTraversal::next to simplify the code.

* dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::execute):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/SelectorQuery.cpp