/* 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 */ static const HashTableValue JSSVGPathSegCurvetoCubicRelTableValues[7] = { { "x", DontDelete, (intptr_t)jsSVGPathSegCurvetoCubicRelX, (intptr_t)setJSSVGPathSegCurvetoCubicRelX }, { "y", DontDelete, (intptr_t)jsSVGPathSegCurvetoCubicRelY, (intptr_t)setJSSVGPathSegCurvetoCubicRelY }, { "x1", DontDelete, (intptr_t)jsSVGPathSegCurvetoCubicRelX1, (intptr_t)setJSSVGPathSegCurvetoCubicRelX1 }, { "y1", DontDelete, (intptr_t)jsSVGPathSegCurvetoCubicRelY1, (intptr_t)setJSSVGPathSegCurvetoCubicRelY1 }, { "x2", DontDelete, (intptr_t)jsSVGPathSegCurvetoCubicRelX2, (intptr_t)setJSSVGPathSegCurvetoCubicRelX2 }, { "y2", DontDelete, (intptr_t)jsSVGPathSegCurvetoCubicRelY2, (intptr_t)setJSSVGPathSegCurvetoCubicRelY2 }, { 0, 0, 0, 0 } }; static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicRelTable = #if ENABLE(PERFECT_HASH_SIZE) { 7, JSSVGPathSegCurvetoCubicRelTableValues, 0 }; #else { 16, 15, JSSVGPathSegCurvetoCubicRelTableValues, 0 }; #endif /* Hash table for prototype */ static const HashTableValue JSSVGPathSegCurvetoCubicRelPrototypeTableValues[1] = { { 0, 0, 0, 0 } }; static JSC_CONST_HASHTABLE HashTable JSSVGPathSegCurvetoCubicRelPrototypeTable = #if ENABLE(PERFECT_HASH_SIZE) { 0, JSSVGPathSegCurvetoCubicRelPrototypeTableValues, 0 }; #else { 1, 0, JSSVGPathSegCurvetoCubicRelPrototypeTableValues, 0 }; #endif const ClassInfo JSSVGPathSegCurvetoCubicRelPrototype::s_info = { "SVGPathSegCurvetoCubicRelPrototype", 0, &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(NonNullPassRefPtr structure, JSDOMGlobalObject* globalObject, PassRefPtr impl, SVGElement* context) : JSSVGPathSeg(structure, globalObject, impl, context) { } JSObject* JSSVGPathSegCurvetoCubicRel::createPrototype(ExecState* exec, JSGlobalObject* globalObject) { return new (exec) JSSVGPathSegCurvetoCubicRelPrototype(JSSVGPathSegCurvetoCubicRelPrototype::createStructure(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, const Identifier&, const PropertySlot& slot) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); return jsNumber(exec, imp->x()); } JSValue jsSVGPathSegCurvetoCubicRelY(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); return jsNumber(exec, imp->y()); } JSValue jsSVGPathSegCurvetoCubicRelX1(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); return jsNumber(exec, imp->x1()); } JSValue jsSVGPathSegCurvetoCubicRelY1(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); return jsNumber(exec, imp->y1()); } JSValue jsSVGPathSegCurvetoCubicRelX2(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); return jsNumber(exec, imp->x2()); } JSValue jsSVGPathSegCurvetoCubicRelY2(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSSVGPathSegCurvetoCubicRel* castedThis = static_cast(asObject(slot.slotBase())); UNUSED_PARAM(exec); SVGPathSegCurvetoCubicRel* imp = static_cast(castedThis->impl()); return jsNumber(exec, imp->y2()); } 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) { SVGPathSegCurvetoCubicRel* imp = static_cast(static_cast(thisObject)->impl()); imp->setX(value.toFloat(exec)); if (static_cast(thisObject)->context()) static_cast(thisObject)->context()->svgAttributeChanged(static_cast(thisObject)->impl()->associatedAttributeName()); } void setJSSVGPathSegCurvetoCubicRelY(ExecState* exec, JSObject* thisObject, JSValue value) { SVGPathSegCurvetoCubicRel* imp = static_cast(static_cast(thisObject)->impl()); imp->setY(value.toFloat(exec)); if (static_cast(thisObject)->context()) static_cast(thisObject)->context()->svgAttributeChanged(static_cast(thisObject)->impl()->associatedAttributeName()); } void setJSSVGPathSegCurvetoCubicRelX1(ExecState* exec, JSObject* thisObject, JSValue value) { SVGPathSegCurvetoCubicRel* imp = static_cast(static_cast(thisObject)->impl()); imp->setX1(value.toFloat(exec)); if (static_cast(thisObject)->context()) static_cast(thisObject)->context()->svgAttributeChanged(static_cast(thisObject)->impl()->associatedAttributeName()); } void setJSSVGPathSegCurvetoCubicRelY1(ExecState* exec, JSObject* thisObject, JSValue value) { SVGPathSegCurvetoCubicRel* imp = static_cast(static_cast(thisObject)->impl()); imp->setY1(value.toFloat(exec)); if (static_cast(thisObject)->context()) static_cast(thisObject)->context()->svgAttributeChanged(static_cast(thisObject)->impl()->associatedAttributeName()); } void setJSSVGPathSegCurvetoCubicRelX2(ExecState* exec, JSObject* thisObject, JSValue value) { SVGPathSegCurvetoCubicRel* imp = static_cast(static_cast(thisObject)->impl()); imp->setX2(value.toFloat(exec)); if (static_cast(thisObject)->context()) static_cast(thisObject)->context()->svgAttributeChanged(static_cast(thisObject)->impl()->associatedAttributeName()); } void setJSSVGPathSegCurvetoCubicRelY2(ExecState* exec, JSObject* thisObject, JSValue value) { SVGPathSegCurvetoCubicRel* imp = static_cast(static_cast(thisObject)->impl()); imp->setY2(value.toFloat(exec)); if (static_cast(thisObject)->context()) static_cast(thisObject)->context()->svgAttributeChanged(static_cast(thisObject)->impl()->associatedAttributeName()); } } #endif // ENABLE(SVG)