summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/generated/JSUIEvent.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/JSUIEvent.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/JSUIEvent.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/generated/JSUIEvent.cpp48
1 files changed, 29 insertions, 19 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSUIEvent.cpp b/src/3rdparty/webkit/WebCore/generated/JSUIEvent.cpp
index cdf611f..98891f3 100644
--- a/src/3rdparty/webkit/WebCore/generated/JSUIEvent.cpp
+++ b/src/3rdparty/webkit/WebCore/generated/JSUIEvent.cpp
@@ -72,12 +72,12 @@ static JSC_CONST_HASHTABLE HashTable JSUIEventConstructorTable =
{ 1, 0, JSUIEventConstructorTableValues, 0 };
#endif
-class JSUIEventConstructor : public DOMObject {
+class JSUIEventConstructor : public DOMConstructorObject {
public:
- JSUIEventConstructor(ExecState* exec)
- : DOMObject(JSUIEventConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype()))
+ JSUIEventConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
+ : DOMConstructorObject(JSUIEventConstructor::createStructure(globalObject->objectPrototype()), globalObject)
{
- putDirect(exec->propertyNames().prototype, JSUIEventPrototype::self(exec, exec->lexicalGlobalObject()), None);
+ putDirect(exec->propertyNames().prototype, JSUIEventPrototype::self(exec, globalObject), None);
}
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual const ClassInfo* classInfo() const { return &s_info; }
@@ -125,8 +125,8 @@ bool JSUIEventPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& p
const ClassInfo JSUIEvent::s_info = { "UIEvent", &JSEvent::s_info, &JSUIEventTable, 0 };
-JSUIEvent::JSUIEvent(PassRefPtr<Structure> structure, PassRefPtr<UIEvent> impl)
- : JSEvent(structure, impl)
+JSUIEvent::JSUIEvent(PassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<UIEvent> impl)
+ : JSEvent(structure, globalObject, impl)
{
}
@@ -142,74 +142,84 @@ bool JSUIEvent::getOwnPropertySlot(ExecState* exec, const Identifier& propertyNa
JSValue jsUIEventView(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
- return toJS(exec, WTF::getPtr(imp->view()));
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
+ return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->view()));
}
JSValue jsUIEventDetail(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->detail());
}
JSValue jsUIEventKeyCode(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->keyCode());
}
JSValue jsUIEventCharCode(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->charCode());
}
JSValue jsUIEventLayerX(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->layerX());
}
JSValue jsUIEventLayerY(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->layerY());
}
JSValue jsUIEventPageX(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->pageX());
}
JSValue jsUIEventPageY(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->pageY());
}
JSValue jsUIEventWhich(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSUIEvent* castedThis = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- UIEvent* imp = static_cast<UIEvent*>(static_cast<JSUIEvent*>(asObject(slot.slotBase()))->impl());
+ UIEvent* imp = static_cast<UIEvent*>(castedThis->impl());
return jsNumber(exec, imp->which());
}
JSValue jsUIEventConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
- return static_cast<JSUIEvent*>(asObject(slot.slotBase()))->getConstructor(exec);
+ JSUIEvent* domObject = static_cast<JSUIEvent*>(asObject(slot.slotBase()));
+ return JSUIEvent::getConstructor(exec, domObject->globalObject());
}
-JSValue JSUIEvent::getConstructor(ExecState* exec)
+JSValue JSUIEvent::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
{
- return getDOMConstructor<JSUIEventConstructor>(exec);
+ return getDOMConstructor<JSUIEventConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
}
JSValue JSC_HOST_CALL jsUIEventPrototypeFunctionInitUIEvent(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)