In PageAnimator iterate through collected documents instead of frames
In PageAnimator iterate through collected documents instead of frames

In PageAnimator, it's possible frame tree has been mutated by
Javascript. To avoid this, we iterator through documents collection
instead, and check whether they are still present in their frames.

This was part of CL 214953004, which got reverted in 335103004 when it
caused crbug.com/383946. So I am adding back the reverted CL in parts.
This part should be only related to crbug.com/359028.

BUG=359028

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

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

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