summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/generated/JSImageData.cpp
diff options
context:
space:
mode:
authorkh <qtc-committer@nokia.com>2009-07-29 16:32:57 (GMT)
committerkh <qtc-committer@nokia.com>2009-07-29 16:32:57 (GMT)
commit91005e4878c76630390fd17afec2f283fcd5121d (patch)
treec9a997a7c542da025ff00549ea80bd517557c577 /src/3rdparty/webkit/WebCore/generated/JSImageData.cpp
parentf21a36efaab400e086a8c1e87f91da595e4a4443 (diff)
parentb2b626a936d778b89f8fbf33ac914d99876ec4b3 (diff)
downloadQt-91005e4878c76630390fd17afec2f283fcd5121d.zip
Qt-91005e4878c76630390fd17afec2f283fcd5121d.tar.gz
Qt-91005e4878c76630390fd17afec2f283fcd5121d.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSImageData.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/generated/JSImageData.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSImageData.cpp b/src/3rdparty/webkit/WebCore/generated/JSImageData.cpp
index 139249b..841b1a2 100644
--- a/src/3rdparty/webkit/WebCore/generated/JSImageData.cpp
+++ b/src/3rdparty/webkit/WebCore/generated/JSImageData.cpp
@@ -62,12 +62,12 @@ static JSC_CONST_HASHTABLE HashTable JSImageDataConstructorTable =
{ 1, 0, JSImageDataConstructorTableValues, 0 };
#endif
-class JSImageDataConstructor : public DOMObject {
+class JSImageDataConstructor : public DOMConstructorObject {
public:
- JSImageDataConstructor(ExecState* exec)
- : DOMObject(JSImageDataConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype()))
+ JSImageDataConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
+ : DOMConstructorObject(JSImageDataConstructor::createStructure(globalObject->objectPrototype()), globalObject)
{
- putDirect(exec->propertyNames().prototype, JSImageDataPrototype::self(exec, exec->lexicalGlobalObject()), None);
+ putDirect(exec->propertyNames().prototype, JSImageDataPrototype::self(exec, globalObject), None);
}
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual const ClassInfo* classInfo() const { return &s_info; }
@@ -109,8 +109,8 @@ JSObject* JSImageDataPrototype::self(ExecState* exec, JSGlobalObject* globalObje
const ClassInfo JSImageData::s_info = { "ImageData", 0, &JSImageDataTable, 0 };
-JSImageData::JSImageData(PassRefPtr<Structure> structure, PassRefPtr<ImageData> impl)
- : DOMObject(structure)
+JSImageData::JSImageData(PassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<ImageData> impl)
+ : DOMObjectWithGlobalPointer(structure, globalObject)
, m_impl(impl)
{
}
@@ -132,25 +132,28 @@ bool JSImageData::getOwnPropertySlot(ExecState* exec, const Identifier& property
JSValue jsImageDataWidth(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSImageData* castedThis = static_cast<JSImageData*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- ImageData* imp = static_cast<ImageData*>(static_cast<JSImageData*>(asObject(slot.slotBase()))->impl());
+ ImageData* imp = static_cast<ImageData*>(castedThis->impl());
return jsNumber(exec, imp->width());
}
JSValue jsImageDataHeight(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSImageData* castedThis = static_cast<JSImageData*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- ImageData* imp = static_cast<ImageData*>(static_cast<JSImageData*>(asObject(slot.slotBase()))->impl());
+ ImageData* imp = static_cast<ImageData*>(castedThis->impl());
return jsNumber(exec, imp->height());
}
JSValue jsImageDataConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
- return static_cast<JSImageData*>(asObject(slot.slotBase()))->getConstructor(exec);
+ JSImageData* domObject = static_cast<JSImageData*>(asObject(slot.slotBase()));
+ return JSImageData::getConstructor(exec, domObject->globalObject());
}
-JSValue JSImageData::getConstructor(ExecState* exec)
+JSValue JSImageData::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
{
- return getDOMConstructor<JSImageDataConstructor>(exec);
+ return getDOMConstructor<JSImageDataConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
}
ImageData* toImageData(JSC::JSValue value)