diff options
author | Jocelyn Turcotte <jocelyn.turcotte@nokia.com> | 2010-04-06 10:36:47 (GMT) |
---|---|---|
committer | Jocelyn Turcotte <jocelyn.turcotte@nokia.com> | 2010-04-06 10:36:47 (GMT) |
commit | bb35b65bbfba82e0dd0ac306d3dab54436cdaff6 (patch) | |
tree | 8174cb262a960ff7b2e4aa8f1aaf154db71d2636 /src/3rdparty/webkit/WebCore/generated/JSPluginArray.cpp | |
parent | 4b27d0d887269583a0f76e922948f8c25e96ab88 (diff) | |
download | Qt-bb35b65bbfba82e0dd0ac306d3dab54436cdaff6.zip Qt-bb35b65bbfba82e0dd0ac306d3dab54436cdaff6.tar.gz Qt-bb35b65bbfba82e0dd0ac306d3dab54436cdaff6.tar.bz2 |
Update src/3rdparty/webkit from trunk.
Imported from 839d8709327f925aacb3b6362c06152594def97e
in branch qtwebkit-2.0 of repository
git://gitorious.org/+qtwebkit-developers/webkit/qtwebkit.git
Rubber-stamped-by: Simon Hausmann
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSPluginArray.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSPluginArray.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSPluginArray.cpp b/src/3rdparty/webkit/WebCore/generated/JSPluginArray.cpp index 38a9346..99f88a9 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSPluginArray.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSPluginArray.cpp @@ -40,8 +40,8 @@ ASSERT_CLASS_FITS_IN_CELL(JSPluginArray); static const HashTableValue JSPluginArrayTableValues[3] = { - { "length", DontDelete|ReadOnly, (intptr_t)jsPluginArrayLength, (intptr_t)0 }, - { "constructor", DontEnum|ReadOnly, (intptr_t)jsPluginArrayConstructor, (intptr_t)0 }, + { "length", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsPluginArrayLength), (intptr_t)0 }, + { "constructor", DontEnum|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsPluginArrayConstructor), (intptr_t)0 }, { 0, 0, 0, 0 } }; @@ -80,7 +80,7 @@ public: static PassRefPtr<Structure> createStructure(JSValue proto) { - return Structure::create(proto, TypeInfo(ObjectType, StructureFlags)); + return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount); } protected: @@ -103,9 +103,9 @@ bool JSPluginArrayConstructor::getOwnPropertyDescriptor(ExecState* exec, const I static const HashTableValue JSPluginArrayPrototypeTableValues[4] = { - { "item", DontDelete|Function, (intptr_t)jsPluginArrayPrototypeFunctionItem, (intptr_t)1 }, - { "namedItem", DontDelete|Function, (intptr_t)jsPluginArrayPrototypeFunctionNamedItem, (intptr_t)1 }, - { "refresh", DontDelete|Function, (intptr_t)jsPluginArrayPrototypeFunctionRefresh, (intptr_t)1 }, + { "item", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsPluginArrayPrototypeFunctionItem), (intptr_t)1 }, + { "namedItem", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsPluginArrayPrototypeFunctionNamedItem), (intptr_t)1 }, + { "refresh", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsPluginArrayPrototypeFunctionRefresh), (intptr_t)1 }, { 0, 0, 0, 0 } }; @@ -206,24 +206,25 @@ bool JSPluginArray::getOwnPropertySlot(ExecState* exec, unsigned propertyName, P return getOwnPropertySlot(exec, Identifier::from(exec, propertyName), slot); } -JSValue jsPluginArrayLength(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsPluginArrayLength(ExecState* exec, JSValue slotBase, const Identifier&) { - JSPluginArray* castedThis = static_cast<JSPluginArray*>(asObject(slot.slotBase())); + JSPluginArray* castedThis = static_cast<JSPluginArray*>(asObject(slotBase)); UNUSED_PARAM(exec); PluginArray* imp = static_cast<PluginArray*>(castedThis->impl()); - return jsNumber(exec, imp->length()); + JSValue result = jsNumber(exec, imp->length()); + return result; } -JSValue jsPluginArrayConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsPluginArrayConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSPluginArray* domObject = static_cast<JSPluginArray*>(asObject(slot.slotBase())); + JSPluginArray* domObject = static_cast<JSPluginArray*>(asObject(slotBase)); return JSPluginArray::getConstructor(exec, domObject->globalObject()); } -void JSPluginArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames) +void JSPluginArray::getOwnPropertyNames(ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode) { for (unsigned i = 0; i < static_cast<PluginArray*>(impl())->length(); ++i) propertyNames.add(Identifier::from(exec, i)); - Base::getOwnPropertyNames(exec, propertyNames); + Base::getOwnPropertyNames(exec, propertyNames, mode); } JSValue JSPluginArray::getConstructor(ExecState* exec, JSGlobalObject* globalObject) @@ -273,10 +274,10 @@ JSValue JSC_HOST_CALL jsPluginArrayPrototypeFunctionRefresh(ExecState* exec, JSO } -JSValue JSPluginArray::indexGetter(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue JSPluginArray::indexGetter(ExecState* exec, JSValue slotBase, unsigned index) { - JSPluginArray* thisObj = static_cast<JSPluginArray*>(asObject(slot.slotBase())); - return toJS(exec, thisObj->globalObject(), static_cast<PluginArray*>(thisObj->impl())->item(slot.index())); + JSPluginArray* thisObj = static_cast<JSPluginArray*>(asObject(slotBase)); + return toJS(exec, thisObj->globalObject(), static_cast<PluginArray*>(thisObj->impl())->item(index)); } JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, PluginArray* object) { |