* 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
+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.
/*
@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
*/
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;
Value Plugins::getValueProperty(ExecState *exec, int token) const
{
- assert(token == length);
+ assert(token == Length);
return Number(plugins->count());
}
Value MimeTypes::getValueProperty(ExecState *exec, int token) const
{
- assert(token == length);
+ assert(token == Length);
return Number(plugins->count());
}