Simplify code for finding body in FrameSelection::setSelectionFromNone()
Simplify code for finding body in FrameSelection::setSelectionFromNone()

Simplify code for finding body in FrameSelection::setSelectionFromNone() by
using Traversal<HTMLBodyElement>::firstChild(*documentElement). This is very
close to what is done in Document::body() except that body() searches for
both HTMLBodyElement and HTMLFrameSetElement. For this reason, we cannot
simply call Document::body() here.

Besides being shorter, the new code is also more optimal because:
- It does not check documentElement as it cannot be an HTMLBodyElement. For
  HTML documents, the documentElement is an HTMLHtmlElement.
- It avoids checking descendants and will only check the direct children of
  the <html> element.

R=adamk@chromium.org, leviw@chromium.org

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

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

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