summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/generated/JSUIEvent.cpp
diff options
context:
space:
mode:
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)