Fixes DOM.scrollIntoView() to assume the BODY element is scrollable by default (which it is).
Issue: 707
Patch by: bobv
Review by: jgw


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@999 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/user/client/impl/DOMImpl.java b/user/src/com/google/gwt/user/client/impl/DOMImpl.java
index 542cb3c..06036ef 100644
--- a/user/src/com/google/gwt/user/client/impl/DOMImpl.java
+++ b/user/src/com/google/gwt/user/client/impl/DOMImpl.java
@@ -277,7 +277,10 @@
 
     var cur = elem.parentNode;
     while (cur && (cur.nodeType == 1)) {
-      if ((cur.style.overflow == 'auto') || (cur.style.overflow == 'scroll')) {
+      // body tags are implicitly scrollable
+      if ((cur.style.overflow == 'auto') || (cur.style.overflow == 'scroll') ||
+          (cur.tagName == 'BODY')) {
+      
         if (left < cur.scrollLeft) {
           cur.scrollLeft = left;
         }