Revert shouldInvalidateNodeListCaches() back to template-unrolled version.
Revert shouldInvalidateNodeListCaches() back to template-unrolled version.

Switch Document::shouldInvalidateNodeListCaches() back to the previous
version of unrolling a loop by way of a recursive template expansion.
A mild slowdown was seen in crbug.com/375810 when using the simpler
loop-based version from http://codereview.chromium.org/280123002/

R=haraken@chromium.org
BUG=375810
NOTRY=true

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

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

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