Prevent leak on completion of drop operation.
Prevent leak on completion of drop operation.

If the 'drop' event handler signals that the event has been handled and
no default handling is to be done, we clear the document and consider
the operation complete. Also clear out the drag caret selection at that
time, as it may hold onto an anchor node (and its document.)

R=dcheng
BUG=364417
TEST=fast/dom/shadow/drop-event-for-input-in-shadow.html

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

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

Bysmyyr/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,XiaosongWei/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,nwjs/blink,nwjs/blink,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,PeterWangIntel/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,nwjs/blink,jtg-gg/blink,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,jtg-gg/blink,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,nwjs/blink,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,jtg-gg/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,kurli/blink-crosswalk,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,modulexcite/blink,nwjs/blink,Pluto-tv/blink-crosswalk,modulexcite/blink,nwjs/blink,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink,nwjs/blink,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,jtg-gg/blink,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,kurli/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,PeterWangIntel/blink-crosswalk,jtg-gg/blink,XiaosongWei/blink-crosswalk,modulexcite/blink,jtg-gg/blink,nwjs/blink,jtg-gg/blink,modulexcite/blink,jtg-gg/blink,smishenk/blink-crosswalk,nwjs/blink