Avoid double attribute lookup in HTMLElement::matchesReadWritePseudoClass()
Avoid double attribute lookup in HTMLElement::matchesReadWritePseudoClass()

Avoid double attribute lookup in HTMLElement::matchesReadWritePseudoClass().
Instead of calling fastHasAttribute() then fastGetAttribute(), call
fastGetAttribute() directly and check if the returned value is nullAtom.

fastHasAttribute() and fastGetAttribute() do exactly the same thing internally
and the only difference is the return type. The attribute lookup is a linear
search and thus it is a good idea to avoid doing it twice.

R=adamk, eseidel

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

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

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