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/JSHTMLModElement.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/JSHTMLModElement.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSHTMLModElement.cpp | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSHTMLModElement.cpp b/src/3rdparty/webkit/WebCore/generated/JSHTMLModElement.cpp index d440576..8b6fae1 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSHTMLModElement.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSHTMLModElement.cpp @@ -36,9 +36,9 @@ ASSERT_CLASS_FITS_IN_CELL(JSHTMLModElement); static const HashTableValue JSHTMLModElementTableValues[4] = { - { "cite", DontDelete, (intptr_t)jsHTMLModElementCite, (intptr_t)setJSHTMLModElementCite }, - { "dateTime", DontDelete, (intptr_t)jsHTMLModElementDateTime, (intptr_t)setJSHTMLModElementDateTime }, - { "constructor", DontEnum|ReadOnly, (intptr_t)jsHTMLModElementConstructor, (intptr_t)0 }, + { "cite", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLModElementCite), (intptr_t)setJSHTMLModElementCite }, + { "dateTime", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLModElementDateTime), (intptr_t)setJSHTMLModElementDateTime }, + { "constructor", DontEnum|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLModElementConstructor), (intptr_t)0 }, { 0, 0, 0, 0 } }; @@ -77,7 +77,7 @@ public: static PassRefPtr<Structure> createStructure(JSValue proto) { - return Structure::create(proto, TypeInfo(ObjectType, StructureFlags)); + return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount); } protected: @@ -139,25 +139,27 @@ bool JSHTMLModElement::getOwnPropertyDescriptor(ExecState* exec, const Identifie return getStaticValueDescriptor<JSHTMLModElement, Base>(exec, &JSHTMLModElementTable, this, propertyName, descriptor); } -JSValue jsHTMLModElementCite(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLModElementCite(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLModElement* castedThis = static_cast<JSHTMLModElement*>(asObject(slot.slotBase())); + JSHTMLModElement* castedThis = static_cast<JSHTMLModElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLModElement* imp = static_cast<HTMLModElement*>(castedThis->impl()); - return jsString(exec, imp->cite()); + JSValue result = jsString(exec, imp->cite()); + return result; } -JSValue jsHTMLModElementDateTime(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLModElementDateTime(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLModElement* castedThis = static_cast<JSHTMLModElement*>(asObject(slot.slotBase())); + JSHTMLModElement* castedThis = static_cast<JSHTMLModElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLModElement* imp = static_cast<HTMLModElement*>(castedThis->impl()); - return jsString(exec, imp->dateTime()); + JSValue result = jsString(exec, imp->dateTime()); + return result; } -JSValue jsHTMLModElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLModElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLModElement* domObject = static_cast<JSHTMLModElement*>(asObject(slot.slotBase())); + JSHTMLModElement* domObject = static_cast<JSHTMLModElement*>(asObject(slotBase)); return JSHTMLModElement::getConstructor(exec, domObject->globalObject()); } void JSHTMLModElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) @@ -167,13 +169,15 @@ void JSHTMLModElement::put(ExecState* exec, const Identifier& propertyName, JSVa void setJSHTMLModElementCite(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLModElement* imp = static_cast<HTMLModElement*>(static_cast<JSHTMLModElement*>(thisObject)->impl()); + JSHTMLModElement* castedThisObj = static_cast<JSHTMLModElement*>(thisObject); + HTMLModElement* imp = static_cast<HTMLModElement*>(castedThisObj->impl()); imp->setCite(valueToStringWithNullCheck(exec, value)); } void setJSHTMLModElementDateTime(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLModElement* imp = static_cast<HTMLModElement*>(static_cast<JSHTMLModElement*>(thisObject)->impl()); + JSHTMLModElement* castedThisObj = static_cast<JSHTMLModElement*>(thisObject); + HTMLModElement* imp = static_cast<HTMLModElement*>(castedThisObj->impl()); imp->setDateTime(valueToStringWithNullCheck(exec, value)); } |