Changeset 15468 in webkit for trunk/JavaScriptCore/API/JSCallbackObject.cpp
- Timestamp:
- Jul 16, 2006, 2:06:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackObject.cpp
r15462 r15468 31 31 #include "JSObjectRef.h" 32 32 #include "internal.h" 33 #include "reference.h" 34 #include "reference_list.h" 33 #include "PropertyNameArray.h" 35 34 36 35 namespace KJS { … … 291 290 } 292 291 293 void JSCallbackObject::getPropertyList(ReferenceList& propertyList, bool recursive) 294 { 295 JSObjectRef thisRef = toRef(this); 296 297 for (JSClassRef jsClass = m_class; jsClass; jsClass = jsClass->parentClass) { 298 if (JSObjectAddPropertiesToListCallback addPropertiesToList = jsClass->addPropertiesToList) 299 addPropertiesToList(thisRef, toRef(&propertyList)); 292 void JSCallbackObject::getPropertyNames(ExecState* exec, PropertyNameArray& propertyNames) 293 { 294 JSContextRef execRef = toRef(exec); 295 JSObjectRef thisRef = toRef(this); 296 297 for (JSClassRef jsClass = m_class; jsClass; jsClass = jsClass->parentClass) { 298 if (JSObjectGetPropertyNamesCallback getPropertyNames = jsClass->getPropertyNames) 299 getPropertyNames(execRef, thisRef, toRef(&propertyNames)); 300 300 301 301 if (__JSClass::StaticValuesTable* staticValues = jsClass->staticValues) { … … 306 306 StaticValueEntry* entry = it->second; 307 307 if (entry->getProperty && !(entry->attributes & kJSPropertyAttributeDontEnum)) 308 property List.append(Reference(this, Identifier(name)));308 propertyNames.add(Identifier(name)); 309 309 } 310 310 } … … 317 317 StaticFunctionEntry* entry = it->second; 318 318 if (!(entry->attributes & kJSPropertyAttributeDontEnum)) 319 property List.append(Reference(this, Identifier(name)));320 } 321 } 322 } 323 324 JSObject::getProperty List(propertyList, recursive);319 propertyNames.add(Identifier(name)); 320 } 321 } 322 } 323 324 JSObject::getPropertyNames(exec, propertyNames); 325 325 } 326 326
Note:
See TracChangeset
for help on using the changeset viewer.