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/JSHTMLMapElement.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/JSHTMLMapElement.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSHTMLMapElement.cpp | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSHTMLMapElement.cpp b/src/3rdparty/webkit/WebCore/generated/JSHTMLMapElement.cpp index d4fc27d..1ddb239 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSHTMLMapElement.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSHTMLMapElement.cpp @@ -38,9 +38,9 @@ ASSERT_CLASS_FITS_IN_CELL(JSHTMLMapElement); static const HashTableValue JSHTMLMapElementTableValues[4] = { - { "areas", DontDelete|ReadOnly, (intptr_t)jsHTMLMapElementAreas, (intptr_t)0 }, - { "name", DontDelete, (intptr_t)jsHTMLMapElementName, (intptr_t)setJSHTMLMapElementName }, - { "constructor", DontEnum|ReadOnly, (intptr_t)jsHTMLMapElementConstructor, (intptr_t)0 }, + { "areas", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLMapElementAreas), (intptr_t)0 }, + { "name", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLMapElementName), (intptr_t)setJSHTMLMapElementName }, + { "constructor", DontEnum|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLMapElementConstructor), (intptr_t)0 }, { 0, 0, 0, 0 } }; @@ -79,7 +79,7 @@ public: static PassRefPtr<Structure> createStructure(JSValue proto) { - return Structure::create(proto, TypeInfo(ObjectType, StructureFlags)); + return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount); } protected: @@ -141,25 +141,27 @@ bool JSHTMLMapElement::getOwnPropertyDescriptor(ExecState* exec, const Identifie return getStaticValueDescriptor<JSHTMLMapElement, Base>(exec, &JSHTMLMapElementTable, this, propertyName, descriptor); } -JSValue jsHTMLMapElementAreas(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLMapElementAreas(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLMapElement* castedThis = static_cast<JSHTMLMapElement*>(asObject(slot.slotBase())); + JSHTMLMapElement* castedThis = static_cast<JSHTMLMapElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLMapElement* imp = static_cast<HTMLMapElement*>(castedThis->impl()); - return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->areas())); + JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->areas())); + return result; } -JSValue jsHTMLMapElementName(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLMapElementName(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLMapElement* castedThis = static_cast<JSHTMLMapElement*>(asObject(slot.slotBase())); + JSHTMLMapElement* castedThis = static_cast<JSHTMLMapElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLMapElement* imp = static_cast<HTMLMapElement*>(castedThis->impl()); - return jsString(exec, imp->name()); + JSValue result = jsString(exec, imp->name()); + return result; } -JSValue jsHTMLMapElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLMapElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLMapElement* domObject = static_cast<JSHTMLMapElement*>(asObject(slot.slotBase())); + JSHTMLMapElement* domObject = static_cast<JSHTMLMapElement*>(asObject(slotBase)); return JSHTMLMapElement::getConstructor(exec, domObject->globalObject()); } void JSHTMLMapElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) @@ -169,7 +171,8 @@ void JSHTMLMapElement::put(ExecState* exec, const Identifier& propertyName, JSVa void setJSHTMLMapElementName(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLMapElement* imp = static_cast<HTMLMapElement*>(static_cast<JSHTMLMapElement*>(thisObject)->impl()); + JSHTMLMapElement* castedThisObj = static_cast<JSHTMLMapElement*>(thisObject); + HTMLMapElement* imp = static_cast<HTMLMapElement*>(castedThisObj->impl()); imp->setName(valueToStringWithNullCheck(exec, value)); } |