Reviewed by darin.
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Aug 2005 18:46:44 +0000 (18:46 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Aug 2005 18:46:44 +0000 (18:46 +0000)
        * khtml/ecma/kjs_dom.cpp:
        * khtml/ecma/kjs_dom.h:
        (KJS::DOMNodeList::):
Add Length and Item to DOMNodeList.

        * khtml/ecma/kjs_navigator.cpp:
        (KJS::Plugins::getValueProperty):
        (KJS::MimeTypes::getValueProperty):
Fix capitalization.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10078 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/ecma/kjs_dom.cpp
WebCore/khtml/ecma/kjs_dom.h
WebCore/khtml/ecma/kjs_navigator.cpp

index aaeed3fc8aa9d10648baeeb6b4dd7b0aae3a1765..a1188551b9575b247280bec87db55c1444ff1d14 100644 (file)
@@ -1,3 +1,17 @@
+2005-08-07  Anders Carlsson  <andersca@mac.com>
+
+        Reviewed by darin.
+
+        * khtml/ecma/kjs_dom.cpp:
+        * khtml/ecma/kjs_dom.h:
+        (KJS::DOMNodeList::):
+       Add Length and Item to DOMNodeList.
+       
+        * khtml/ecma/kjs_navigator.cpp:
+        (KJS::Plugins::getValueProperty):
+        (KJS::MimeTypes::getValueProperty):
+       Fix capitalization.
+       
 2005-08-04  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Darin.
index 88338877d77cf405a5562d172985d1502a49a2c8..7b70c8dbd60e77c6acae2463b9e94a4d65430996 100644 (file)
@@ -706,8 +706,8 @@ NodeImpl *toNode(ValueImp *val)
 
 /*
 @begin DOMNodeListTable 2
-  length       DOMStyleSheetList::Length       DontDelete|ReadOnly
-  item         DOMStyleSheetList::Item         DontDelete|Function 1
+  length       DOMNodeList::Length     DontDelete|ReadOnly
+  item         DOMNodeList::Item               DontDelete|Function 1
 @end
 */
 
index c266c20131e6c838b3d5745d0bc8edd90f5a7e85..b73fcff8fcd91f933dc0a50207f1b83d30a7eed4 100644 (file)
@@ -99,6 +99,7 @@ namespace KJS {
     virtual const ClassInfo* classInfo() const { return &info; }
     virtual bool toBoolean(ExecState *) const { return true; }
     static const ClassInfo info;
+    enum { Length, Item };
     DOM::NodeListImpl *impl() const { return m_impl.get(); }
 
     virtual Value toPrimitive(ExecState *exec, Type preferred = UndefinedType) const;
index 34c8f37c7e82f122f835a7bc4260b704058423f2..1775b71a9708e64eedf34b2a5147a7f7805de481 100644 (file)
@@ -363,7 +363,7 @@ IMPLEMENT_PROTOFUNC(PluginsFunc)
 
 Value Plugins::getValueProperty(ExecState *exec, int token) const
 {
-  assert(token == length);
+  assert(token == Length);
   return Number(plugins->count());
 }
 
@@ -422,7 +422,7 @@ bool Plugins::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName
 
 Value MimeTypes::getValueProperty(ExecState *exec, int token) const
 {
-  assert(token == length);
+  assert(token == Length);
   return Number(plugins->count());
 }