-
rolandsteiner@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=77697 Make use of Element::previous/nextElementSibling. Made those methods inline. Simplify code in checkSelector and checkOneSelector, esp. for first/nth/nth-last/last/only-child implementations. Reviewed by Andreas Kling. No new tests. (refactoring) * css/SelectorChecker.cpp: (WebCore::SelectorChecker::checkSelector): (WebCore::SelectorChecker::checkOneSelector): * dom/Element.cpp: * dom/Element.h: (WebCore::Element::previousElementSibling): (WebCore): (WebCore::Element::nextElementSibling): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
868aa8a8