InspectorCSSAgent should not call styleResolverChanged
InspectorCSSAgent should not call styleResolverChanged

InspectorCSSAgent has a list of elements to override the pseudo states on to enable
the feature in the web inspector where you can say "make this element :hover". This
doesn't actually need to invalidate the style resolver, it just needs to cause a
forced style recalc of the document to recalc everyone's style. This switches it to
be async and use scheduleForcedStyleRecalc() instead of styleResolverChanged.

Note that even that seems a bit too agressive since we should just be able to use
boundNodeId and setNeedsStyleRecalc(SubtreeStyleChange) but I don't entirely understand
the semantics of boundNodeId and why the m_nodeIdToForcedPseudoState doesn't just keep
pointers to the nodes so this patch avoids changing the behavior too much there.

R=pfeldman@chromium.org,eseidel@chromium.org,dglazkov@chromium.org

Review URL: https://chromiumcodereview.appspot.com/18512010

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

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