summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/generated/JSMediaList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSMediaList.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/generated/JSMediaList.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSMediaList.cpp b/src/3rdparty/webkit/WebCore/generated/JSMediaList.cpp
index 448b378ce..007e9762d 100644
--- a/src/3rdparty/webkit/WebCore/generated/JSMediaList.cpp
+++ b/src/3rdparty/webkit/WebCore/generated/JSMediaList.cpp
@@ -65,12 +65,12 @@ static JSC_CONST_HASHTABLE HashTable JSMediaListConstructorTable =
{ 1, 0, JSMediaListConstructorTableValues, 0 };
#endif
-class JSMediaListConstructor : public DOMObject {
+class JSMediaListConstructor : public DOMConstructorObject {
public:
- JSMediaListConstructor(ExecState* exec)
- : DOMObject(JSMediaListConstructor::createStructure(exec->lexicalGlobalObject()->objectPrototype()))
+ JSMediaListConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
+ : DOMConstructorObject(JSMediaListConstructor::createStructure(globalObject->objectPrototype()), globalObject)
{
- putDirect(exec->propertyNames().prototype, JSMediaListPrototype::self(exec, exec->lexicalGlobalObject()), None);
+ putDirect(exec->propertyNames().prototype, JSMediaListPrototype::self(exec, globalObject), None);
}
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual const ClassInfo* classInfo() const { return &s_info; }
@@ -120,8 +120,8 @@ bool JSMediaListPrototype::getOwnPropertySlot(ExecState* exec, const Identifier&
const ClassInfo JSMediaList::s_info = { "MediaList", 0, &JSMediaListTable, 0 };
-JSMediaList::JSMediaList(PassRefPtr<Structure> structure, PassRefPtr<MediaList> impl)
- : DOMObject(structure)
+JSMediaList::JSMediaList(PassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<MediaList> impl)
+ : DOMObjectWithGlobalPointer(structure, globalObject)
, m_impl(impl)
{
}
@@ -163,21 +163,24 @@ bool JSMediaList::getOwnPropertySlot(ExecState* exec, unsigned propertyName, Pro
JSValue jsMediaListMediaText(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSMediaList* castedThis = static_cast<JSMediaList*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- MediaList* imp = static_cast<MediaList*>(static_cast<JSMediaList*>(asObject(slot.slotBase()))->impl());
+ MediaList* imp = static_cast<MediaList*>(castedThis->impl());
return jsStringOrNull(exec, imp->mediaText());
}
JSValue jsMediaListLength(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
+ JSMediaList* castedThis = static_cast<JSMediaList*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
- MediaList* imp = static_cast<MediaList*>(static_cast<JSMediaList*>(asObject(slot.slotBase()))->impl());
+ MediaList* imp = static_cast<MediaList*>(castedThis->impl());
return jsNumber(exec, imp->length());
}
JSValue jsMediaListConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
- return static_cast<JSMediaList*>(asObject(slot.slotBase()))->getConstructor(exec);
+ JSMediaList* domObject = static_cast<JSMediaList*>(asObject(slot.slotBase()));
+ return JSMediaList::getConstructor(exec, domObject->globalObject());
}
void JSMediaList::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
{
@@ -199,9 +202,9 @@ void JSMediaList::getPropertyNames(ExecState* exec, PropertyNameArray& propertyN
Base::getPropertyNames(exec, propertyNames);
}
-JSValue JSMediaList::getConstructor(ExecState* exec)
+JSValue JSMediaList::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
{
- return getDOMConstructor<JSMediaListConstructor>(exec);
+ return getDOMConstructor<JSMediaListConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
}
JSValue JSC_HOST_CALL jsMediaListPrototypeFunctionItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args)
@@ -254,9 +257,9 @@ JSValue JSMediaList::indexGetter(ExecState* exec, const Identifier&, const Prope
JSMediaList* thisObj = static_cast<JSMediaList*>(asObject(slot.slotBase()));
return jsStringOrNull(exec, thisObj->impl()->item(slot.index()));
}
-JSC::JSValue toJS(JSC::ExecState* exec, MediaList* object)
+JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, MediaList* object)
{
- return getDOMObjectWrapper<JSMediaList>(exec, object);
+ return getDOMObjectWrapper<JSMediaList>(exec, globalObject, object);
}
MediaList* toMediaList(JSC::JSValue value)
{