diff -r 000000000000 -r 4f2f89ce4247 WebCore/generated/JSSVGFESpotLightElement.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WebCore/generated/JSSVGFESpotLightElement.cpp Fri Sep 17 09:02:29 2010 +0300 @@ -0,0 +1,244 @@ +/* + 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) && ENABLE(FILTERS) + +#include "JSSVGFESpotLightElement.h" + +#include "JSSVGAnimatedNumber.h" +#include "SVGFESpotLightElement.h" +#include + +using namespace JSC; + +namespace WebCore { + +ASSERT_CLASS_FITS_IN_CELL(JSSVGFESpotLightElement); + +/* Hash table */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSSVGFESpotLightElementTableValues[10] = +{ + { "x", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementX), (intptr_t)0 THUNK_GENERATOR(0) }, + { "y", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementY), (intptr_t)0 THUNK_GENERATOR(0) }, + { "z", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementZ), (intptr_t)0 THUNK_GENERATOR(0) }, + { "pointsAtX", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementPointsAtX), (intptr_t)0 THUNK_GENERATOR(0) }, + { "pointsAtY", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementPointsAtY), (intptr_t)0 THUNK_GENERATOR(0) }, + { "pointsAtZ", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementPointsAtZ), (intptr_t)0 THUNK_GENERATOR(0) }, + { "specularExponent", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementSpecularExponent), (intptr_t)0 THUNK_GENERATOR(0) }, + { "limitingConeAngle", DontDelete | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementLimitingConeAngle), (intptr_t)0 THUNK_GENERATOR(0) }, + { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast(jsSVGFESpotLightElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSSVGFESpotLightElementTable = { 32, 31, JSSVGFESpotLightElementTableValues, 0 }; +/* Hash table for constructor */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSSVGFESpotLightElementConstructorTableValues[1] = +{ + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSSVGFESpotLightElementConstructorTable = { 1, 0, JSSVGFESpotLightElementConstructorTableValues, 0 }; +class JSSVGFESpotLightElementConstructor : public DOMConstructorObject { +public: + JSSVGFESpotLightElementConstructor(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 JSSVGFESpotLightElementConstructor::s_info = { "SVGFESpotLightElementConstructor", 0, &JSSVGFESpotLightElementConstructorTable, 0 }; + +JSSVGFESpotLightElementConstructor::JSSVGFESpotLightElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) + : DOMConstructorObject(JSSVGFESpotLightElementConstructor::createStructure(globalObject->objectPrototype()), globalObject) +{ + putDirect(exec->propertyNames().prototype, JSSVGFESpotLightElementPrototype::self(exec, globalObject), DontDelete | ReadOnly); +} + +bool JSSVGFESpotLightElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot(exec, &JSSVGFESpotLightElementConstructorTable, this, propertyName, slot); +} + +bool JSSVGFESpotLightElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) +{ + return getStaticValueDescriptor(exec, &JSSVGFESpotLightElementConstructorTable, this, propertyName, descriptor); +} + +/* Hash table for prototype */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSSVGFESpotLightElementPrototypeTableValues[1] = +{ + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSSVGFESpotLightElementPrototypeTable = { 1, 0, JSSVGFESpotLightElementPrototypeTableValues, 0 }; +const ClassInfo JSSVGFESpotLightElementPrototype::s_info = { "SVGFESpotLightElementPrototype", 0, &JSSVGFESpotLightElementPrototypeTable, 0 }; + +JSObject* JSSVGFESpotLightElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject) +{ + return getDOMPrototype(exec, globalObject); +} + +const ClassInfo JSSVGFESpotLightElement::s_info = { "SVGFESpotLightElement", &JSSVGElement::s_info, &JSSVGFESpotLightElementTable, 0 }; + +JSSVGFESpotLightElement::JSSVGFESpotLightElement(NonNullPassRefPtr structure, JSDOMGlobalObject* globalObject, PassRefPtr impl) + : JSSVGElement(structure, globalObject, impl) +{ +} + +JSObject* JSSVGFESpotLightElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject) +{ + return new (exec) JSSVGFESpotLightElementPrototype(globalObject, JSSVGFESpotLightElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject))); +} + +bool JSSVGFESpotLightElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot(exec, &JSSVGFESpotLightElementTable, this, propertyName, slot); +} + +bool JSSVGFESpotLightElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) +{ + return getStaticValueDescriptor(exec, &JSSVGFESpotLightElementTable, this, propertyName, descriptor); +} + +JSValue jsSVGFESpotLightElementX(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->xAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementY(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->yAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementZ(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->zAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementPointsAtX(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->pointsAtXAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementPointsAtY(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->pointsAtYAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementPointsAtZ(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->pointsAtZAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementSpecularExponent(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->specularExponentAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementLimitingConeAngle(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + SVGFESpotLightElement* imp = static_cast(castedThis->impl()); + RefPtr obj = imp->limitingConeAngleAnimated(); + JSValue result = toJS(exec, castedThis->globalObject(), obj.get(), imp); + return result; +} + +JSValue jsSVGFESpotLightElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSSVGFESpotLightElement* domObject = static_cast(asObject(slotBase)); + return JSSVGFESpotLightElement::getConstructor(exec, domObject->globalObject()); +} +JSValue JSSVGFESpotLightElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject) +{ + return getDOMConstructor(exec, static_cast(globalObject)); +} + + +} + +#endif // ENABLE(SVG) && ENABLE(FILTERS)