[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

hyatt hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:08:24 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 0b542aa238708675aa3d42ba78b7abe47a6ff879
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Nov 26 01:27:02 2002 +0000

    	Fix this even further.  JUst drop support for arbitrary
    	property lookup by name on the document.  Mac IE and
    	Gecko only do this for img and form, and this makes things
    	a lot faster.
    
            * khtml/ecma/kjs_html.cpp:
            (KJS::HTMLDocument::hasProperty):
            (KJS::HTMLDocument::tryGet):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2868 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 2460fe3..25a95ff 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,5 +1,16 @@
 2002-11-25  David Hyatt  <hyatt at apple.com>
 
+	Fix this even further.  JUst drop support for arbitrary
+	property lookup by name on the document.  Mac IE and
+	Gecko only do this for img and form, and this makes things
+	a lot faster.
+	
+        * khtml/ecma/kjs_html.cpp:
+        (KJS::HTMLDocument::hasProperty):
+        (KJS::HTMLDocument::tryGet):
+
+2002-11-25  David Hyatt  <hyatt at apple.com>
+
 	Rewrite the img/form document property lookup strategy.  This
 	should be faster and actually work (gasp!).  Fixes the dhtml
 	on hrweb to at least show up.
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 2460fe3..25a95ff 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,16 @@
 2002-11-25  David Hyatt  <hyatt at apple.com>
 
+	Fix this even further.  JUst drop support for arbitrary
+	property lookup by name on the document.  Mac IE and
+	Gecko only do this for img and form, and this makes things
+	a lot faster.
+	
+        * khtml/ecma/kjs_html.cpp:
+        (KJS::HTMLDocument::hasProperty):
+        (KJS::HTMLDocument::tryGet):
+
+2002-11-25  David Hyatt  <hyatt at apple.com>
+
 	Rewrite the img/form document property lookup strategy.  This
 	should be faster and actually work (gasp!).  Fixes the dhtml
 	on hrweb to at least show up.
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 2460fe3..25a95ff 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,16 @@
 2002-11-25  David Hyatt  <hyatt at apple.com>
 
+	Fix this even further.  JUst drop support for arbitrary
+	property lookup by name on the document.  Mac IE and
+	Gecko only do this for img and form, and this makes things
+	a lot faster.
+	
+        * khtml/ecma/kjs_html.cpp:
+        (KJS::HTMLDocument::hasProperty):
+        (KJS::HTMLDocument::tryGet):
+
+2002-11-25  David Hyatt  <hyatt at apple.com>
+
 	Rewrite the img/form document property lookup strategy.  This
 	should be faster and actually work (gasp!).  Fixes the dhtml
 	on hrweb to at least show up.
diff --git a/WebCore/khtml/ecma/kjs_html.cpp b/WebCore/khtml/ecma/kjs_html.cpp
index de7b47e..f321e9c 100644
--- a/WebCore/khtml/ecma/kjs_html.cpp
+++ b/WebCore/khtml/ecma/kjs_html.cpp
@@ -139,8 +139,8 @@ bool KJS::HTMLDocument::hasProperty(ExecState *exec, const Identifier &p) const
 #ifdef KJS_VERBOSE
   //kdDebug(6070) << "KJS::HTMLDocument::hasProperty " << p.qstring() << endl;
 #endif
-  if (!static_cast<DOM::HTMLDocument>(node).all().
-      namedItem(p.string()).isNull())
+  if ((!static_cast<DOM::HTMLDocument>(node).images().namedItem(p.string()).isNull()) ||
+      (!static_cast<DOM::HTMLDocument>(node).forms().namedItem(p.string()).isNull()))
     return true;
   return DOMDocument::hasProperty(exec, p);
 }
@@ -272,18 +272,6 @@ Value KJS::HTMLDocument::tryGet(ExecState *exec, const Identifier &propertyName)
     }
   }
 
-  DOM::HTMLCollection collAll = doc.all();
-  element = collAll.namedItem(propertyName.string());
-  element2 = collAll.nextNamedItem(propertyName.string());
-  if(!element.isNull())
-  {
-    if (element2.isNull())
-      return getDOMNode(exec, element);
-    else {
-      KJS::HTMLCollection htmlcoll(exec,coll);
-      return htmlcoll.getNamedItems(exec, propertyName); // Get all the items with the same name
-    }
-  }
   return Undefined();
 }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list