12012-09-28 Dimitri Glazkov <dglazkov@chromium.org>
2
3 Kill transitive effects of SelectorChecker::checkOneSelector.
4 https://bugs.webkit.org/show_bug.cgi?id=97953
5
6 Reviewed by NOBODY (OOPS!).
7
8 The dynamicPseudo/hasUnknownPseudoelements by-ref parameters that are passed into checkOneSelector make the logic harder to understand and aren't needed. Refactor the code to rid of them, replacing them instead with two flags in SelectorCheckingContext.
9
10 No change in behavior, covered by existing tests.
11
12 * css/SelectorChecker.cpp:
13 (WebCore::SelectorChecker::checkSelector): Rolled pseudo-element-checking code out of checkOneSelector into here, since that is where t
14 (WebCore::SelectorChecker::checkOneSelector): Changed to use SelectorCheckingContext rather than transitive params.
15 * css/SelectorChecker.h:
16 (WebCore::SelectorChecker::SelectorCheckingContext::SelectorCheckingContext): Added two new flags.
17 (SelectorCheckingContext): Ditto.
18
19