Split SelectorChecker's fast-checking logic into its own class.
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Feb 2013 05:15:35 +0000 (05:15 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Feb 2013 05:15:35 +0000 (05:15 +0000)
commit4448a15c1b79599c2f2aaaabb24ab788c263a1da
treed15c53cfe46621b3d7aacc8a73b8f858675ed8c3
parentb09397f9d29e03e8973cb88cdda78d4dcd59b701
Split SelectorChecker's fast-checking logic into its own class.
https://bugs.webkit.org/show_bug.cgi?id=106860

Reviewed by Antti Koivisto.

No functional changes, covered by existing tests.

* CMakeLists.txt: Added new class to existing build system.
* GNUmakefile.list.am: Ditto.
* Target.pri: Ditto.
* WebCore.gypi: Ditto.
* WebCore.xcodeproj/project.pbxproj: Ditto.
* css/CSSAllInOne.cpp: Ditto.
* css/RuleSet.cpp:
(WebCore::RuleData::RuleData): Changed to use SelectorCheckerFastPath.
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::matches): Ditto.
* css/SelectorChecker.h:
(SelectorChecker): Move fast path code into SelectorCheckerFastPath.
* css/SelectorCheckerFastPath.cpp: Added.
* css/SelectorCheckerFastPath.h: Added.
* css/StyleResolver.cpp:
(WebCore::StyleResolver::ruleMatches): Changed to use SelectorCheckerFastPath.
* dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::initialize): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@143686 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Target.pri
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/css/CSSAllInOne.cpp
Source/WebCore/css/RuleSet.cpp
Source/WebCore/css/SelectorChecker.cpp
Source/WebCore/css/SelectorChecker.h
Source/WebCore/css/SelectorCheckerFastPath.cpp [new file with mode: 0644]
Source/WebCore/css/SelectorCheckerFastPath.h [new file with mode: 0644]
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/dom/SelectorQuery.cpp