Reverting Node.contains() change because it breaks DOMTest#isOrHasChild in IE9.

Review at http://gwt-code-reviews.appspot.com/1725808/


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@11043 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/dom/client/DOMImplStandardBase.java b/user/src/com/google/gwt/dom/client/DOMImplStandardBase.java
index 5d698f7..68aafb6 100644
--- a/user/src/com/google/gwt/dom/client/DOMImplStandardBase.java
+++ b/user/src/com/google/gwt/dom/client/DOMImplStandardBase.java
@@ -245,6 +245,20 @@
   }-*/;
 
   @Override
+  public native boolean isOrHasChild(Node parent, Node child) /*-{
+    while (child) {
+      if (parent == child) {
+        return true;
+      }
+      child = child.parentNode;
+      if (child && (child.nodeType != 1)) {
+        child = null;
+      }
+    }
+    return false;
+  }-*/;
+
+  @Override
   public void setScrollLeft(Document doc, int left) {
     // Safari always applies document scrolling to the body element, even in
     // strict mode.