diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSSVGPointList.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSSVGPointList.cpp | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSSVGPointList.cpp b/src/3rdparty/webkit/WebCore/generated/JSSVGPointList.cpp index 7eebc21..4dd7afd 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSSVGPointList.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSSVGPointList.cpp @@ -37,7 +37,7 @@ using namespace JSC; namespace WebCore { -ASSERT_CLASS_FITS_IN_CELL(JSSVGPointList) +ASSERT_CLASS_FITS_IN_CELL(JSSVGPointList); /* Hash table */ @@ -77,9 +77,9 @@ static const HashTable JSSVGPointListPrototypeTable = const ClassInfo JSSVGPointListPrototype::s_info = { "SVGPointListPrototype", 0, &JSSVGPointListPrototypeTable, 0 }; -JSObject* JSSVGPointListPrototype::self(ExecState* exec) +JSObject* JSSVGPointListPrototype::self(ExecState* exec, JSGlobalObject* globalObject) { - return getDOMPrototype<JSSVGPointList>(exec); + return getDOMPrototype<JSSVGPointList>(exec, globalObject); } bool JSSVGPointListPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -99,12 +99,11 @@ JSSVGPointList::JSSVGPointList(PassRefPtr<Structure> structure, PassRefPtr<SVGPo JSSVGPointList::~JSSVGPointList() { forgetDOMObject(*Heap::heap(this)->globalData(), m_impl.get()); - } -JSObject* JSSVGPointList::createPrototype(ExecState* exec) +JSObject* JSSVGPointList::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { - return new (exec) JSSVGPointListPrototype(JSSVGPointListPrototype::createStructure(exec->lexicalGlobalObject()->objectPrototype())); + return new (exec) JSSVGPointListPrototype(JSSVGPointListPrototype::createStructure(globalObject->objectPrototype())); } bool JSSVGPointList::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) @@ -112,75 +111,83 @@ bool JSSVGPointList::getOwnPropertySlot(ExecState* exec, const Identifier& prope return getStaticValueSlot<JSSVGPointList, Base>(exec, &JSSVGPointListTable, this, propertyName, slot); } -JSValuePtr jsSVGPointListNumberOfItems(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsSVGPointListNumberOfItems(ExecState* exec, const Identifier&, const PropertySlot& slot) { + UNUSED_PARAM(exec); SVGPointList* imp = static_cast<SVGPointList*>(static_cast<JSSVGPointList*>(asObject(slot.slotBase()))->impl()); return jsNumber(exec, imp->numberOfItems()); } -JSValuePtr jsSVGPointListPrototypeFunctionClear(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsSVGPointListPrototypeFunctionClear(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSSVGPointList::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSSVGPointList::s_info)) return throwError(exec, TypeError); JSSVGPointList* castedThisObj = static_cast<JSSVGPointList*>(asObject(thisValue)); return castedThisObj->clear(exec, args); } -JSValuePtr jsSVGPointListPrototypeFunctionInitialize(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsSVGPointListPrototypeFunctionInitialize(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSSVGPointList::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSSVGPointList::s_info)) return throwError(exec, TypeError); JSSVGPointList* castedThisObj = static_cast<JSSVGPointList*>(asObject(thisValue)); return castedThisObj->initialize(exec, args); } -JSValuePtr jsSVGPointListPrototypeFunctionGetItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsSVGPointListPrototypeFunctionGetItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSSVGPointList::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSSVGPointList::s_info)) return throwError(exec, TypeError); JSSVGPointList* castedThisObj = static_cast<JSSVGPointList*>(asObject(thisValue)); return castedThisObj->getItem(exec, args); } -JSValuePtr jsSVGPointListPrototypeFunctionInsertItemBefore(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsSVGPointListPrototypeFunctionInsertItemBefore(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSSVGPointList::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSSVGPointList::s_info)) return throwError(exec, TypeError); JSSVGPointList* castedThisObj = static_cast<JSSVGPointList*>(asObject(thisValue)); return castedThisObj->insertItemBefore(exec, args); } -JSValuePtr jsSVGPointListPrototypeFunctionReplaceItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsSVGPointListPrototypeFunctionReplaceItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSSVGPointList::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSSVGPointList::s_info)) return throwError(exec, TypeError); JSSVGPointList* castedThisObj = static_cast<JSSVGPointList*>(asObject(thisValue)); return castedThisObj->replaceItem(exec, args); } -JSValuePtr jsSVGPointListPrototypeFunctionRemoveItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsSVGPointListPrototypeFunctionRemoveItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSSVGPointList::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSSVGPointList::s_info)) return throwError(exec, TypeError); JSSVGPointList* castedThisObj = static_cast<JSSVGPointList*>(asObject(thisValue)); return castedThisObj->removeItem(exec, args); } -JSValuePtr jsSVGPointListPrototypeFunctionAppendItem(ExecState* exec, JSObject*, JSValuePtr thisValue, const ArgList& args) +JSValue JSC_HOST_CALL jsSVGPointListPrototypeFunctionAppendItem(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { - if (!thisValue->isObject(&JSSVGPointList::s_info)) + UNUSED_PARAM(args); + if (!thisValue.isObject(&JSSVGPointList::s_info)) return throwError(exec, TypeError); JSSVGPointList* castedThisObj = static_cast<JSSVGPointList*>(asObject(thisValue)); return castedThisObj->appendItem(exec, args); } -JSC::JSValuePtr toJS(JSC::ExecState* exec, SVGPointList* object, SVGElement* context) +JSC::JSValue toJS(JSC::ExecState* exec, SVGPointList* object, SVGElement* context) { return getDOMObjectWrapper<JSSVGPointList>(exec, object, context); } -SVGPointList* toSVGPointList(JSC::JSValuePtr value) +SVGPointList* toSVGPointList(JSC::JSValue value) { - return value->isObject(&JSSVGPointList::s_info) ? static_cast<JSSVGPointList*>(asObject(value))->impl() : 0; + return value.isObject(&JSSVGPointList::s_info) ? static_cast<JSSVGPointList*>(asObject(value))->impl() : 0; } } |