Simplify CSSSelector::isAttributeSelector() by not checking each Match type
Simplify CSSSelector::isAttributeSelector() by not checking each Match type

Simplify CSSSelector::isAttributeSelector() by not checking each Match type
explicitly and reordering the Match enum instead so that the attribute
selector match type are contiguous and at the end of the enum. This way, the
check can become (m_match >= FirstAttributeSelectorMatch).

This optimization is similar to the one we already use in CollectionType.h
for collection types. isAttributeSelector() is called from
SelectorChecker::checkOne() which is hot code.

I see a ~2% progression on Dromaeo's cssquery-jquery:
http://dromaeo.com/?id=222514,222518

Review URL: https://codereview.chromium.org/315043005

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@175632 bbb929c8-8fbe-4397-9dbb-9b2b20218538

XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,hgl888/blink-crosswalk-efl,modulexcite/blink,Pluto-tv/blink-crosswalk,modulexcite/blink,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,nwjs/blink,jtg-gg/blink,kurli/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,modulexcite/blink,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,jtg-gg/blink,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,jtg-gg/blink,modulexcite/blink,XiaosongWei/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,modulexcite/blink,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,modulexcite/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,nwjs/blink,Pluto-tv/blink-crosswalk,nwjs/blink,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,jtg-gg/blink,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,ondra-novak/blink,Pluto-tv/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,ondra-novak/blink,kurli/blink-crosswalk,kurli/blink-crosswalk,jtg-gg/blink,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,nwjs/blink,XiaosongWei/blink-crosswalk,hgl888/blink-crosswalk-efl,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,ondra-novak/blink,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,ondra-novak/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,ondra-novak/blink,nwjs/blink,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,ondra-novak/blink,smishenk/blink-crosswalk,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,modulexcite/blink,jtg-gg/blink,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,nwjs/blink,nwjs/blink,Bysmyyr/blink-crosswalk