diff -r 000000000000 -r 4f2f89ce4247 WebCore/generated/JSSVGPathSegCurvetoCubicAbs.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WebCore/generated/JSSVGPathSegCurvetoCubicAbs.cpp Fri Sep 17 09:02:29 2010 +0300 @@ -0,0 +1,269 @@ +/* + This file is part of the WebKit open source project. + This file has been generated by generate-bindings.pl. DO NOT MODIFY! + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "config.h" + +#if ENABLE(SVG) + +#include "JSSVGPathSegCurvetoCubicAbs.h" + +#include "SVGPathSegCurvetoCubic.h" +#include +#include + +using namespace JSC; + +namespace WebCore { + +ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegCurvetoCubicAbs); + +/* Hash table */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSSVGPathSegCurvetoCubicAbsTableValues[8] = +{ + { "x", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicAbsX), (intptr_t)setJSSVGPathSegCurvetoCubicAbsX THUNK_GENERATOR(0) }, + { "y", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicAbsY), (intptr_t)setJSSVGPathSegCurvetoCubicAbsY THUNK_GENERATOR(0) }, + { "x1", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicAbsX1), (intptr_t)setJSSVGPathSegCurvetoCubicAbsX1 THUNK_GENERATOR(0) }, + { "y1", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicAbsY1), (intptr_t)setJSSVGPathSegCurvetoCubicAbsY1 THUNK_GENERATOR(0) }, + { "x2", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicAbsX2), (intptr_t)setJSSVGPathSegCurvetoCubicAbsX2 THUNK_GENERATOR(0) }, + { "y2", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicAbsY2), (intptr_t)setJSSVGPathSegCurvetoCubicAbsY2 THUNK_GENERATOR(0) }, + { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicAbsConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicAbsTable = { 16, 15, JSSVGPathSegCurvetoCubicAbsTableValues, 0 }; +/* Hash table for constructor */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSSVGPathSegCurvetoCubicAbsConstructorTableValues[1] = +{ + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicAbsConstructorTable = { 1, 0, JSSVGPathSegCurvetoCubicAbsConstructorTableValues, 0 }; +class JSSVGPathSegCurvetoCubicAbsConstructor : public DOMConstructorObject { +public: + JSSVGPathSegCurvetoCubicAbsConstructor(JSC::ExecState*, JSDOMGlobalObject*); + + virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); + virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); + virtual const JSC::ClassInfo* classInfo() const { return &s_info; } + static const JSC::ClassInfo s_info; + static PassRefPtr createStructure(JSC::JSValue prototype) + { + return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); + } +protected: + static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; +}; + +const ClassInfo JSSVGPathSegCurvetoCubicAbsConstructor::s_info = { "SVGPathSegCurvetoCubicAbsConstructor", 0, &JSSVGPathSegCurvetoCubicAbsConstructorTable, 0 }; + +JSSVGPathSegCurvetoCubicAbsConstructor::JSSVGPathSegCurvetoCubicAbsConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) + : DOMConstructorObject(JSSVGPathSegCurvetoCubicAbsConstructor::createStructure(globalObject->objectPrototype()), globalObject) +{ + putDirect(exec->propertyNames().prototype, JSSVGPathSegCurvetoCubicAbsPrototype::self(exec, globalObject), DontDelete | ReadOnly); +} + +bool JSSVGPathSegCurvetoCubicAbsConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot(exec, &JSSVGPathSegCurvetoCubicAbsConstructorTable, this, propertyName, slot); +} + +bool JSSVGPathSegCurvetoCubicAbsConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) +{ + return getStaticValueDescriptor(exec, &JSSVGPathSegCurvetoCubicAbsConstructorTable, this, propertyName, descriptor); +} + +/* Hash table for prototype */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSSVGPathSegCurvetoCubicAbsPrototypeTableValues[1] = +{ + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicAbsPrototypeTable = { 1, 0, JSSVGPathSegCurvetoCubicAbsPrototypeTableValues, 0 }; +const ClassInfo JSSVGPathSegCurvetoCubicAbsPrototype::s_info = { "SVGPathSegCurvetoCubicAbsPrototype", 0, &JSSVGPathSegCurvetoCubicAbsPrototypeTable, 0 }; + +JSObject* JSSVGPathSegCurvetoCubicAbsPrototype::self(ExecState* exec, JSGlobalObject* globalObject) +{ + return getDOMPrototype(exec, globalObject); +} + +const ClassInfo JSSVGPathSegCurvetoCubicAbs::s_info = { "SVGPathSegCurvetoCubicAbs", &JSSVGPathSeg::s_info, &JSSVGPathSegCurvetoCubicAbsTable, 0 }; + +JSSVGPathSegCurvetoCubicAbs::JSSVGPathSegCurvetoCubicAbs(NonNullPassRefPtr structure, JSDOMGlobalObject* globalObject, PassRefPtr impl) + : JSSVGPathSeg(structure, globalObject, impl) +{ +} + +JSObject* JSSVGPathSegCurvetoCubicAbs::createPrototype(ExecState* exec, JSGlobalObject* globalObject) +{ + return new (exec) JSSVGPathSegCurvetoCubicAbsPrototype(globalObject, JSSVGPathSegCurvetoCubicAbsPrototype::createStructure(JSSVGPathSegPrototype::self(exec, globalObject))); +} + +bool JSSVGPathSegCurvetoCubicAbs::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot(exec, &JSSVGPathSegCurvetoCubicAbsTable, this, propertyName, slot); +} + +bool JSSVGPathSegCurvetoCubicAbs::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) +{ + return getStaticValueDescriptor(exec, &JSSVGPathSegCurvetoCubicAbsTable, this, propertyName, descriptor); +} + +JSValue jsSVGPathSegCurvetoCubicAbsX(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + JSValue result = jsNumber(exec, imp->x()); + return result; +} + +JSValue jsSVGPathSegCurvetoCubicAbsY(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + JSValue result = jsNumber(exec, imp->y()); + return result; +} + +JSValue jsSVGPathSegCurvetoCubicAbsX1(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + JSValue result = jsNumber(exec, imp->x1()); + return result; +} + +JSValue jsSVGPathSegCurvetoCubicAbsY1(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + JSValue result = jsNumber(exec, imp->y1()); + return result; +} + +JSValue jsSVGPathSegCurvetoCubicAbsX2(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + JSValue result = jsNumber(exec, imp->x2()); + return result; +} + +JSValue jsSVGPathSegCurvetoCubicAbsY2(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + JSValue result = jsNumber(exec, imp->y2()); + return result; +} + +JSValue jsSVGPathSegCurvetoCubicAbsConstructor(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGPathSegCurvetoCubicAbs* domObject = static_cast(asObject(slotBase)); + return JSSVGPathSegCurvetoCubicAbs::getConstructor(exec, domObject->globalObject()); +} +void JSSVGPathSegCurvetoCubicAbs::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) +{ + lookupPut(exec, propertyName, value, &JSSVGPathSegCurvetoCubicAbsTable, this, slot); +} + +void setJSSVGPathSegCurvetoCubicAbsX(ExecState* exec, JSObject* thisObject, JSValue value) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(thisObject); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + imp->setX(value.toFloat(exec)); + JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName()); +} + +void setJSSVGPathSegCurvetoCubicAbsY(ExecState* exec, JSObject* thisObject, JSValue value) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(thisObject); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + imp->setY(value.toFloat(exec)); + JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName()); +} + +void setJSSVGPathSegCurvetoCubicAbsX1(ExecState* exec, JSObject* thisObject, JSValue value) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(thisObject); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + imp->setX1(value.toFloat(exec)); + JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName()); +} + +void setJSSVGPathSegCurvetoCubicAbsY1(ExecState* exec, JSObject* thisObject, JSValue value) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(thisObject); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + imp->setY1(value.toFloat(exec)); + JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName()); +} + +void setJSSVGPathSegCurvetoCubicAbsX2(ExecState* exec, JSObject* thisObject, JSValue value) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(thisObject); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + imp->setX2(value.toFloat(exec)); + JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName()); +} + +void setJSSVGPathSegCurvetoCubicAbsY2(ExecState* exec, JSObject* thisObject, JSValue value) +{ + JSSVGPathSegCurvetoCubicAbs* castedThis = static_cast(thisObject); + SVGPathSegCurvetoCubicAbs* imp = static_cast(castedThis->impl()); + imp->setY2(value.toFloat(exec)); + JSSVGContextCache::propagateSVGDOMChange(castedThis, imp->associatedAttributeName()); +} + +JSValue JSSVGPathSegCurvetoCubicAbs::getConstructor(ExecState* exec, JSGlobalObject* globalObject) +{ + return getDOMConstructor(exec, static_cast(globalObject)); +} + + +} + +#endif // ENABLE(SVG)