WebCore/generated/JSSVGFESpotLightElement.cpp
changeset 0 4f2f89ce4247
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 /*
       
     2     This file is part of the WebKit open source project.
       
     3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
       
     4 
       
     5     This library is free software; you can redistribute it and/or
       
     6     modify it under the terms of the GNU Library General Public
       
     7     License as published by the Free Software Foundation; either
       
     8     version 2 of the License, or (at your option) any later version.
       
     9 
       
    10     This library is distributed in the hope that it will be useful,
       
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    13     Library General Public License for more details.
       
    14 
       
    15     You should have received a copy of the GNU Library General Public License
       
    16     along with this library; see the file COPYING.LIB.  If not, write to
       
    17     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    18     Boston, MA 02110-1301, USA.
       
    19 */
       
    20 
       
    21 #include "config.h"
       
    22 
       
    23 #if ENABLE(SVG) && ENABLE(FILTERS)
       
    24 
       
    25 #include "JSSVGFESpotLightElement.h"
       
    26 
       
    27 #include "JSSVGAnimatedNumber.h"
       
    28 #include "SVGFESpotLightElement.h"
       
    29 #include <wtf/GetPtr.h>
       
    30 
       
    31 using namespace JSC;
       
    32 
       
    33 namespace WebCore {
       
    34 
       
    35 ASSERT_CLASS_FITS_IN_CELL(JSSVGFESpotLightElement);
       
    36 
       
    37 /* Hash table */
       
    38 #if ENABLE(JIT)
       
    39 #define THUNK_GENERATOR(generator) , generator
       
    40 #else
       
    41 #define THUNK_GENERATOR(generator)
       
    42 #endif
       
    43 
       
    44 static const HashTableValue JSSVGFESpotLightElementTableValues[10] =
       
    45 {
       
    46     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    47     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    48     { "z", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementZ), (intptr_t)0 THUNK_GENERATOR(0) },
       
    49     { "pointsAtX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementPointsAtX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    50     { "pointsAtY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementPointsAtY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    51     { "pointsAtZ", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementPointsAtZ), (intptr_t)0 THUNK_GENERATOR(0) },
       
    52     { "specularExponent", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementSpecularExponent), (intptr_t)0 THUNK_GENERATOR(0) },
       
    53     { "limitingConeAngle", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementLimitingConeAngle), (intptr_t)0 THUNK_GENERATOR(0) },
       
    54     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFESpotLightElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    55     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    56 };
       
    57 
       
    58 #undef THUNK_GENERATOR
       
    59 static JSC_CONST_HASHTABLE HashTable JSSVGFESpotLightElementTable = { 32, 31, JSSVGFESpotLightElementTableValues, 0 };
       
    60 /* Hash table for constructor */
       
    61 #if ENABLE(JIT)
       
    62 #define THUNK_GENERATOR(generator) , generator
       
    63 #else
       
    64 #define THUNK_GENERATOR(generator)
       
    65 #endif
       
    66 
       
    67 static const HashTableValue JSSVGFESpotLightElementConstructorTableValues[1] =
       
    68 {
       
    69     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    70 };
       
    71 
       
    72 #undef THUNK_GENERATOR
       
    73 static JSC_CONST_HASHTABLE HashTable JSSVGFESpotLightElementConstructorTable = { 1, 0, JSSVGFESpotLightElementConstructorTableValues, 0 };
       
    74 class JSSVGFESpotLightElementConstructor : public DOMConstructorObject {
       
    75 public:
       
    76     JSSVGFESpotLightElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    77 
       
    78     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    79     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    80     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    81     static const JSC::ClassInfo s_info;
       
    82     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    83     {
       
    84         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    85     }
       
    86 protected:
       
    87     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    88 };
       
    89 
       
    90 const ClassInfo JSSVGFESpotLightElementConstructor::s_info = { "SVGFESpotLightElementConstructor", 0, &JSSVGFESpotLightElementConstructorTable, 0 };
       
    91 
       
    92 JSSVGFESpotLightElementConstructor::JSSVGFESpotLightElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    93     : DOMConstructorObject(JSSVGFESpotLightElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
    94 {
       
    95     putDirect(exec->propertyNames().prototype, JSSVGFESpotLightElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
    96 }
       
    97 
       
    98 bool JSSVGFESpotLightElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
    99 {
       
   100     return getStaticValueSlot<JSSVGFESpotLightElementConstructor, DOMObject>(exec, &JSSVGFESpotLightElementConstructorTable, this, propertyName, slot);
       
   101 }
       
   102 
       
   103 bool JSSVGFESpotLightElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   104 {
       
   105     return getStaticValueDescriptor<JSSVGFESpotLightElementConstructor, DOMObject>(exec, &JSSVGFESpotLightElementConstructorTable, this, propertyName, descriptor);
       
   106 }
       
   107 
       
   108 /* Hash table for prototype */
       
   109 #if ENABLE(JIT)
       
   110 #define THUNK_GENERATOR(generator) , generator
       
   111 #else
       
   112 #define THUNK_GENERATOR(generator)
       
   113 #endif
       
   114 
       
   115 static const HashTableValue JSSVGFESpotLightElementPrototypeTableValues[1] =
       
   116 {
       
   117     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   118 };
       
   119 
       
   120 #undef THUNK_GENERATOR
       
   121 static JSC_CONST_HASHTABLE HashTable JSSVGFESpotLightElementPrototypeTable = { 1, 0, JSSVGFESpotLightElementPrototypeTableValues, 0 };
       
   122 const ClassInfo JSSVGFESpotLightElementPrototype::s_info = { "SVGFESpotLightElementPrototype", 0, &JSSVGFESpotLightElementPrototypeTable, 0 };
       
   123 
       
   124 JSObject* JSSVGFESpotLightElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   125 {
       
   126     return getDOMPrototype<JSSVGFESpotLightElement>(exec, globalObject);
       
   127 }
       
   128 
       
   129 const ClassInfo JSSVGFESpotLightElement::s_info = { "SVGFESpotLightElement", &JSSVGElement::s_info, &JSSVGFESpotLightElementTable, 0 };
       
   130 
       
   131 JSSVGFESpotLightElement::JSSVGFESpotLightElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFESpotLightElement> impl)
       
   132     : JSSVGElement(structure, globalObject, impl)
       
   133 {
       
   134 }
       
   135 
       
   136 JSObject* JSSVGFESpotLightElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   137 {
       
   138     return new (exec) JSSVGFESpotLightElementPrototype(globalObject, JSSVGFESpotLightElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject)));
       
   139 }
       
   140 
       
   141 bool JSSVGFESpotLightElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   142 {
       
   143     return getStaticValueSlot<JSSVGFESpotLightElement, Base>(exec, &JSSVGFESpotLightElementTable, this, propertyName, slot);
       
   144 }
       
   145 
       
   146 bool JSSVGFESpotLightElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   147 {
       
   148     return getStaticValueDescriptor<JSSVGFESpotLightElement, Base>(exec, &JSSVGFESpotLightElementTable, this, propertyName, descriptor);
       
   149 }
       
   150 
       
   151 JSValue jsSVGFESpotLightElementX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   152 {
       
   153     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   154     UNUSED_PARAM(exec);
       
   155     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   156     RefPtr<SVGAnimatedNumber> obj = imp->xAnimated();
       
   157     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   158     return result;
       
   159 }
       
   160 
       
   161 JSValue jsSVGFESpotLightElementY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   162 {
       
   163     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   164     UNUSED_PARAM(exec);
       
   165     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   166     RefPtr<SVGAnimatedNumber> obj = imp->yAnimated();
       
   167     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   168     return result;
       
   169 }
       
   170 
       
   171 JSValue jsSVGFESpotLightElementZ(ExecState* exec, JSValue slotBase, const Identifier&)
       
   172 {
       
   173     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   174     UNUSED_PARAM(exec);
       
   175     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   176     RefPtr<SVGAnimatedNumber> obj = imp->zAnimated();
       
   177     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   178     return result;
       
   179 }
       
   180 
       
   181 JSValue jsSVGFESpotLightElementPointsAtX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   182 {
       
   183     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   184     UNUSED_PARAM(exec);
       
   185     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   186     RefPtr<SVGAnimatedNumber> obj = imp->pointsAtXAnimated();
       
   187     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   188     return result;
       
   189 }
       
   190 
       
   191 JSValue jsSVGFESpotLightElementPointsAtY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   192 {
       
   193     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   194     UNUSED_PARAM(exec);
       
   195     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   196     RefPtr<SVGAnimatedNumber> obj = imp->pointsAtYAnimated();
       
   197     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   198     return result;
       
   199 }
       
   200 
       
   201 JSValue jsSVGFESpotLightElementPointsAtZ(ExecState* exec, JSValue slotBase, const Identifier&)
       
   202 {
       
   203     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   204     UNUSED_PARAM(exec);
       
   205     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   206     RefPtr<SVGAnimatedNumber> obj = imp->pointsAtZAnimated();
       
   207     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   208     return result;
       
   209 }
       
   210 
       
   211 JSValue jsSVGFESpotLightElementSpecularExponent(ExecState* exec, JSValue slotBase, const Identifier&)
       
   212 {
       
   213     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   214     UNUSED_PARAM(exec);
       
   215     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   216     RefPtr<SVGAnimatedNumber> obj = imp->specularExponentAnimated();
       
   217     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   218     return result;
       
   219 }
       
   220 
       
   221 JSValue jsSVGFESpotLightElementLimitingConeAngle(ExecState* exec, JSValue slotBase, const Identifier&)
       
   222 {
       
   223     JSSVGFESpotLightElement* castedThis = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   224     UNUSED_PARAM(exec);
       
   225     SVGFESpotLightElement* imp = static_cast<SVGFESpotLightElement*>(castedThis->impl());
       
   226     RefPtr<SVGAnimatedNumber> obj = imp->limitingConeAngleAnimated();
       
   227     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   228     return result;
       
   229 }
       
   230 
       
   231 JSValue jsSVGFESpotLightElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   232 {
       
   233     JSSVGFESpotLightElement* domObject = static_cast<JSSVGFESpotLightElement*>(asObject(slotBase));
       
   234     return JSSVGFESpotLightElement::getConstructor(exec, domObject->globalObject());
       
   235 }
       
   236 JSValue JSSVGFESpotLightElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   237 {
       
   238     return getDOMConstructor<JSSVGFESpotLightElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   239 }
       
   240 
       
   241 
       
   242 }
       
   243 
       
   244 #endif // ENABLE(SVG) && ENABLE(FILTERS)