summaryrefslogtreecommitdiff
path: root/src/3rdparty/webkit/WebCore/generated/JSHTMLLIElement.cpp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@nokia.com>2010-04-06 12:36:47 +0200
committerJocelyn Turcotte <jocelyn.turcotte@nokia.com>2010-04-06 12:36:47 +0200
commitbb35b65bbfba82e0dd0ac306d3dab54436cdaff6 (patch)
tree8174cb262a960ff7b2e4aa8f1aaf154db71d2636 /src/3rdparty/webkit/WebCore/generated/JSHTMLLIElement.cpp
parent4b27d0d887269583a0f76e922948f8c25e96ab88 (diff)
downloadqt4-tools-bb35b65bbfba82e0dd0ac306d3dab54436cdaff6.tar.gz
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/JSHTMLLIElement.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/generated/JSHTMLLIElement.cpp32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSHTMLLIElement.cpp b/src/3rdparty/webkit/WebCore/generated/JSHTMLLIElement.cpp
index 2cc828c8cf..6290419e45 100644
--- a/src/3rdparty/webkit/WebCore/generated/JSHTMLLIElement.cpp
+++ b/src/3rdparty/webkit/WebCore/generated/JSHTMLLIElement.cpp
@@ -37,9 +37,9 @@ ASSERT_CLASS_FITS_IN_CELL(JSHTMLLIElement);
static const HashTableValue JSHTMLLIElementTableValues[4] =
{
- { "type", DontDelete, (intptr_t)jsHTMLLIElementType, (intptr_t)setJSHTMLLIElementType },
- { "value", DontDelete, (intptr_t)jsHTMLLIElementValue, (intptr_t)setJSHTMLLIElementValue },
- { "constructor", DontEnum|ReadOnly, (intptr_t)jsHTMLLIElementConstructor, (intptr_t)0 },
+ { "type", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLLIElementType), (intptr_t)setJSHTMLLIElementType },
+ { "value", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLLIElementValue), (intptr_t)setJSHTMLLIElementValue },
+ { "constructor", DontEnum|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLLIElementConstructor), (intptr_t)0 },
{ 0, 0, 0, 0 }
};
@@ -78,7 +78,7 @@ public:
static PassRefPtr<Structure> createStructure(JSValue proto)
{
- return Structure::create(proto, TypeInfo(ObjectType, StructureFlags));
+ return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount);
}
protected:
@@ -140,25 +140,27 @@ bool JSHTMLLIElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier
return getStaticValueDescriptor<JSHTMLLIElement, Base>(exec, &JSHTMLLIElementTable, this, propertyName, descriptor);
}
-JSValue jsHTMLLIElementType(ExecState* exec, const Identifier&, const PropertySlot& slot)
+JSValue jsHTMLLIElementType(ExecState* exec, JSValue slotBase, const Identifier&)
{
- JSHTMLLIElement* castedThis = static_cast<JSHTMLLIElement*>(asObject(slot.slotBase()));
+ JSHTMLLIElement* castedThis = static_cast<JSHTMLLIElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLLIElement* imp = static_cast<HTMLLIElement*>(castedThis->impl());
- return jsString(exec, imp->type());
+ JSValue result = jsString(exec, imp->type());
+ return result;
}
-JSValue jsHTMLLIElementValue(ExecState* exec, const Identifier&, const PropertySlot& slot)
+JSValue jsHTMLLIElementValue(ExecState* exec, JSValue slotBase, const Identifier&)
{
- JSHTMLLIElement* castedThis = static_cast<JSHTMLLIElement*>(asObject(slot.slotBase()));
+ JSHTMLLIElement* castedThis = static_cast<JSHTMLLIElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLLIElement* imp = static_cast<HTMLLIElement*>(castedThis->impl());
- return jsNumber(exec, imp->value());
+ JSValue result = jsNumber(exec, imp->value());
+ return result;
}
-JSValue jsHTMLLIElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
+JSValue jsHTMLLIElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
{
- JSHTMLLIElement* domObject = static_cast<JSHTMLLIElement*>(asObject(slot.slotBase()));
+ JSHTMLLIElement* domObject = static_cast<JSHTMLLIElement*>(asObject(slotBase));
return JSHTMLLIElement::getConstructor(exec, domObject->globalObject());
}
void JSHTMLLIElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
@@ -168,13 +170,15 @@ void JSHTMLLIElement::put(ExecState* exec, const Identifier& propertyName, JSVal
void setJSHTMLLIElementType(ExecState* exec, JSObject* thisObject, JSValue value)
{
- HTMLLIElement* imp = static_cast<HTMLLIElement*>(static_cast<JSHTMLLIElement*>(thisObject)->impl());
+ JSHTMLLIElement* castedThisObj = static_cast<JSHTMLLIElement*>(thisObject);
+ HTMLLIElement* imp = static_cast<HTMLLIElement*>(castedThisObj->impl());
imp->setType(valueToStringWithNullCheck(exec, value));
}
void setJSHTMLLIElementValue(ExecState* exec, JSObject* thisObject, JSValue value)
{
- HTMLLIElement* imp = static_cast<HTMLLIElement*>(static_cast<JSHTMLLIElement*>(thisObject)->impl());
+ JSHTMLLIElement* castedThisObj = static_cast<JSHTMLLIElement*>(thisObject);
+ HTMLLIElement* imp = static_cast<HTMLLIElement*>(castedThisObj->impl());
imp->setValue(value.toInt32(exec));
}