[CSS Parser] Get functional pseudos parsing
authorhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Oct 2016 16:14:17 +0000 (16:14 +0000)
committerhyatt@apple.com <hyatt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Oct 2016 16:14:17 +0000 (16:14 +0000)
commit2e68215211c4f0ba7c81d672e07f7984f40cd229
treec0d425a9db8cb0b12753d90044b0bc6a913606a9
parent2eaff45a8889e6489301e312b70bb13e8265a7fc
[CSS Parser] Get functional pseudos parsing
https://bugs.webkit.org/show_bug.cgi?id=164018

Reviewed by Zalan Bujtas.

* css/parser/CSSParserValues.cpp:
(WebCore::CSSParserSelector::parsePseudoClassSelectorFromStringView):
Remove the ( check so that we can parse strings that end in (.

* css/parser/CSSSelectorParser.cpp:
(WebCore::CSSSelectorParser::consumePseudo):
Put in a hack that adds a ( to the end of the string so that it will be found in the map.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/parser/CSSParserValues.cpp
Source/WebCore/css/parser/CSSSelectorParser.cpp