/* 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 "JSSVGPathSegCurvetoCubicRel.h" #include "SVGPathSegCurvetoCubic.h" #include #include using namespace JSC; namespace WebCore { ASSERT_CLASS_FITS_IN_CELL(JSSVGPathSegCurvetoCubicRel); /* Hash table */ #if ENABLE(JIT) #define THUNK_GENERATOR(generator) , generator #else #define THUNK_GENERATOR(generator) #endif static const HashTableValue JSSVGPathSegCurvetoCubicRelTableValues[8] = { { "x", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicRelX), (intptr_t)setJSSVGPathSegCurvetoCubicRelX THUNK_GENERATOR(0) }, { "y", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicRelY), (intptr_t)setJSSVGPathSegCurvetoCubicRelY THUNK_GENERATOR(0) }, { "x1", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicRelX1), (intptr_t)setJSSVGPathSegCurvetoCubicRelX1 THUNK_GENERATOR(0) }, { "y1", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicRelY1), (intptr_t)setJSSVGPathSegCurvetoCubicRelY1 THUNK_GENERATOR(0) }, { "x2", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicRelX2), (intptr_t)setJSSVGPathSegCurvetoCubicRelX2 THUNK_GENERATOR(0) }, { "y2", DontDelete, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicRelY2), (intptr_t)setJSSVGPathSegCurvetoCubicRelY2 THUNK_GENERATOR(0) }, { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast(jsSVGPathSegCurvetoCubicRelConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, { 0, 0, 0, 0 THUNK_GENERATOR(0) } }; #undef THUNK_GENERATOR static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicRelTable = { 16, 15, JSSVGPathSegCurvetoCubicRelTableValues, 0 }; /* Hash table for constructor */ #if ENABLE(JIT) #define THUNK_GENERATOR(generator) , generator #else #define THUNK_GENERATOR(generator) #endif static const HashTableValue JSSVGPathSegCurvetoCubicRelConstructorTableValues[1] = { { 0, 0, 0, 0 THUNK_GENERATOR(0) } }; #undef THUNK_GENERATOR static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicRelConstructorTable = { 1, 0, JSSVGPathSegCurvetoCubicRelConstructorTableValues, 0 }; class JSSVGPathSegCurvetoCubicRelConstructor : public DOMConstructorObject { public: JSSVGPathSegCurvetoCubicRelConstructor(JSC::ExecState*, JSC::Structure*, JSDOMGlobalObject*); virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); static const JSC::ClassInfo s_info; static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype) { return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info); } protected: static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; }; const ClassInfo JSSVGPathSegCurvetoCubicRelConstructor::s_info = { "SVGPathSegCurvetoCubicRelConstructor", &DOMConstructorObject::s_info, &JSSVGPathSegCurvetoCubicRelConstructorTable, 0 }; JSSVGPathSegCurvetoCubicRelConstructor::JSSVGPathSegCurvetoCubicRelConstructor(ExecState* exec, Structure* structure, JSDOMGlobalObject* globalObject) : DOMConstructorObject(structure, globalObject) { ASSERT(inherits(&s_info)); putDirect(exec->globalData(), exec->propertyNames().prototype, JSSVGPathSegCurvetoCubicRelPrototype::self(exec, globalObject), DontDelete | ReadOnly); } bool JSSVGPathSegCurvetoCubicRelConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) { return getStaticValueSlot(exec, &JSSVGPathSegCurvetoCubicRelConstructorTable, this, propertyName, slot); } bool JSSVGPathSegCurvetoCubicRelConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) { return getStaticValueDescriptor(exec, &JSSVGPathSegCurvetoCubicRelConstructorTable, this, propertyName, descriptor); } /* Hash table for prototype */ #if ENABLE(JIT) #define THUNK_GENERATOR(generator) , generator #else #define THUNK_GENERATOR(generator) #endif static const HashTableValue JSSVGPathSegCurvetoCubicRelPrototypeTableValues[1] = { { 0, 0, 0, 0 THUNK_GENERATOR(0) } }; #undef THUNK_GENERATOR static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicRelPrototypeTable = { 1, 0, JSSVGPathSegCurvetoCubicRelPrototypeTableValues, 0 }; const ClassInfo JSSVGPathSegCurvetoCubicRelPrototype::s_info = { "SVGPathSegCurvetoCubicRelPrototype", &JSC::JSObjectWithGlobalObject::s_info, &JSSVGPathSegCurvetoCubicRelPrototypeTable, 0 }; JSObject* JSSVGPathSegCurvetoCubicRelPrototype::self(ExecState* exec, JSGlobalObject* globalObject) { return getDOMPrototype(exec, globalObject); } const ClassInfo JSSVGPathSegCurvetoCubicRel::s_info = { "SVGPathSegCurvetoCubicRel", &JSSVGPathSeg::s_info, &JSSVGPathSegCurvetoCubicRelTable, 0 }; JSSVGPathSegCurvetoCubicRel::JSSVGPathSegCurvetoCubicRel(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr impl) : JSSVGPathSeg(structure, globalObject, impl) { ASSERT(inherits(&s_info)); } JSObject* JSSVGPathSegCurvetoCubicRel::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { return new (exec) JSSVGPathSegCurvetoCubicRelPrototype(exec->globalData(), globalObject, JSSVGPathSegCurvetoCubicRelPrototype::createStructure(exec->globalData(), JSSVGPathSegPrototype::self(exec, globalObject))); } bool JSSVGPathSegCurvetoCubicRel::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) { return getStaticValueSlot(exec, &JSSVGPathSegCurvetoCubicRelTable, this, propertyName, slot); } bool JSSVGPathSegCurvetoCubicRel::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) { return getStaticValueDescriptor(exec, &JSSVGPathSegCurvetoCubicRelTable, this, propertyName, descriptor); } JSValue jsSVGPathSegCurvetoCubicRelX(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slotBase)); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); JSValue result = jsNumber(imp->x()); return result; } JSValue jsSVGPathSegCurvetoCubicRelY(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slotBase)); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); JSValue result = jsNumber(imp->y()); return result; } JSValue jsSVGPathSegCurvetoCubicRelX1(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slotBase)); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); JSValue result = jsNumber(imp->x1()); return result; } JSValue jsSVGPathSegCurvetoCubicRelY1(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slotBase)); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); JSValue result = jsNumber(imp->y1()); return result; } JSValue jsSVGPathSegCurvetoCubicRelX2(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slotBase)); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); JSValue result = jsNumber(imp->x2()); return result; } JSValue jsSVGPathSegCurvetoCubicRelY2(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slotBase)); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); JSValue result = jsNumber(imp->y2()); return result; } JSValue jsSVGPathSegCurvetoCubicRelConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSSVGPathSegCurvetoCubicRel* domObject = static_cast(asObject(slotBase)); return JSSVGPathSegCurvetoCubicRel::getConstructor(exec, domObject->globalObject()); } void JSSVGPathSegCurvetoCubicRel::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) { lookupPut(exec, propertyName, value, &JSSVGPathSegCurvetoCubicRelTable, this, slot); } void setJSSVGPathSegCurvetoCubicRelX(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(thisObject); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); imp->setX(value.toFloat(exec)); } void setJSSVGPathSegCurvetoCubicRelY(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(thisObject); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); imp->setY(value.toFloat(exec)); } void setJSSVGPathSegCurvetoCubicRelX1(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(thisObject); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); imp->setX1(value.toFloat(exec)); } void setJSSVGPathSegCurvetoCubicRelY1(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(thisObject); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); imp->setY1(value.toFloat(exec)); } void setJSSVGPathSegCurvetoCubicRelX2(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(thisObject); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); imp->setX2(value.toFloat(exec)); } void setJSSVGPathSegCurvetoCubicRelY2(ExecState* exec, JSObject* thisObject, JSValue value) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(thisObject); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); imp->setY2(value.toFloat(exec)); } JSValue JSSVGPathSegCurvetoCubicRel::getConstructor(ExecState* exec, JSGlobalObject* globalObject) { return getDOMConstructor(exec, static_cast(globalObject)); } } #endif // ENABLE(SVG)