WebCore/generated/JSSVGFEPointLightElement.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 "JSSVGFEPointLightElement.h"
       
    26 
       
    27 #include "JSSVGAnimatedNumber.h"
       
    28 #include "SVGFEPointLightElement.h"
       
    29 #include <wtf/GetPtr.h>
       
    30 
       
    31 using namespace JSC;
       
    32 
       
    33 namespace WebCore {
       
    34 
       
    35 ASSERT_CLASS_FITS_IN_CELL(JSSVGFEPointLightElement);
       
    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 JSSVGFEPointLightElementTableValues[5] =
       
    45 {
       
    46     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEPointLightElementX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    47     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEPointLightElementY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    48     { "z", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEPointLightElementZ), (intptr_t)0 THUNK_GENERATOR(0) },
       
    49     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEPointLightElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    50     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    51 };
       
    52 
       
    53 #undef THUNK_GENERATOR
       
    54 static JSC_CONST_HASHTABLE HashTable JSSVGFEPointLightElementTable = { 9, 7, JSSVGFEPointLightElementTableValues, 0 };
       
    55 /* Hash table for constructor */
       
    56 #if ENABLE(JIT)
       
    57 #define THUNK_GENERATOR(generator) , generator
       
    58 #else
       
    59 #define THUNK_GENERATOR(generator)
       
    60 #endif
       
    61 
       
    62 static const HashTableValue JSSVGFEPointLightElementConstructorTableValues[1] =
       
    63 {
       
    64     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    65 };
       
    66 
       
    67 #undef THUNK_GENERATOR
       
    68 static JSC_CONST_HASHTABLE HashTable JSSVGFEPointLightElementConstructorTable = { 1, 0, JSSVGFEPointLightElementConstructorTableValues, 0 };
       
    69 class JSSVGFEPointLightElementConstructor : public DOMConstructorObject {
       
    70 public:
       
    71     JSSVGFEPointLightElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    72 
       
    73     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    74     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    75     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    76     static const JSC::ClassInfo s_info;
       
    77     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    78     {
       
    79         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    80     }
       
    81 protected:
       
    82     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    83 };
       
    84 
       
    85 const ClassInfo JSSVGFEPointLightElementConstructor::s_info = { "SVGFEPointLightElementConstructor", 0, &JSSVGFEPointLightElementConstructorTable, 0 };
       
    86 
       
    87 JSSVGFEPointLightElementConstructor::JSSVGFEPointLightElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
    88     : DOMConstructorObject(JSSVGFEPointLightElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
    89 {
       
    90     putDirect(exec->propertyNames().prototype, JSSVGFEPointLightElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
    91 }
       
    92 
       
    93 bool JSSVGFEPointLightElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
    94 {
       
    95     return getStaticValueSlot<JSSVGFEPointLightElementConstructor, DOMObject>(exec, &JSSVGFEPointLightElementConstructorTable, this, propertyName, slot);
       
    96 }
       
    97 
       
    98 bool JSSVGFEPointLightElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
    99 {
       
   100     return getStaticValueDescriptor<JSSVGFEPointLightElementConstructor, DOMObject>(exec, &JSSVGFEPointLightElementConstructorTable, this, propertyName, descriptor);
       
   101 }
       
   102 
       
   103 /* Hash table for prototype */
       
   104 #if ENABLE(JIT)
       
   105 #define THUNK_GENERATOR(generator) , generator
       
   106 #else
       
   107 #define THUNK_GENERATOR(generator)
       
   108 #endif
       
   109 
       
   110 static const HashTableValue JSSVGFEPointLightElementPrototypeTableValues[1] =
       
   111 {
       
   112     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   113 };
       
   114 
       
   115 #undef THUNK_GENERATOR
       
   116 static JSC_CONST_HASHTABLE HashTable JSSVGFEPointLightElementPrototypeTable = { 1, 0, JSSVGFEPointLightElementPrototypeTableValues, 0 };
       
   117 const ClassInfo JSSVGFEPointLightElementPrototype::s_info = { "SVGFEPointLightElementPrototype", 0, &JSSVGFEPointLightElementPrototypeTable, 0 };
       
   118 
       
   119 JSObject* JSSVGFEPointLightElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   120 {
       
   121     return getDOMPrototype<JSSVGFEPointLightElement>(exec, globalObject);
       
   122 }
       
   123 
       
   124 const ClassInfo JSSVGFEPointLightElement::s_info = { "SVGFEPointLightElement", &JSSVGElement::s_info, &JSSVGFEPointLightElementTable, 0 };
       
   125 
       
   126 JSSVGFEPointLightElement::JSSVGFEPointLightElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEPointLightElement> impl)
       
   127     : JSSVGElement(structure, globalObject, impl)
       
   128 {
       
   129 }
       
   130 
       
   131 JSObject* JSSVGFEPointLightElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   132 {
       
   133     return new (exec) JSSVGFEPointLightElementPrototype(globalObject, JSSVGFEPointLightElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject)));
       
   134 }
       
   135 
       
   136 bool JSSVGFEPointLightElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   137 {
       
   138     return getStaticValueSlot<JSSVGFEPointLightElement, Base>(exec, &JSSVGFEPointLightElementTable, this, propertyName, slot);
       
   139 }
       
   140 
       
   141 bool JSSVGFEPointLightElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   142 {
       
   143     return getStaticValueDescriptor<JSSVGFEPointLightElement, Base>(exec, &JSSVGFEPointLightElementTable, this, propertyName, descriptor);
       
   144 }
       
   145 
       
   146 JSValue jsSVGFEPointLightElementX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   147 {
       
   148     JSSVGFEPointLightElement* castedThis = static_cast<JSSVGFEPointLightElement*>(asObject(slotBase));
       
   149     UNUSED_PARAM(exec);
       
   150     SVGFEPointLightElement* imp = static_cast<SVGFEPointLightElement*>(castedThis->impl());
       
   151     RefPtr<SVGAnimatedNumber> obj = imp->xAnimated();
       
   152     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   153     return result;
       
   154 }
       
   155 
       
   156 JSValue jsSVGFEPointLightElementY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   157 {
       
   158     JSSVGFEPointLightElement* castedThis = static_cast<JSSVGFEPointLightElement*>(asObject(slotBase));
       
   159     UNUSED_PARAM(exec);
       
   160     SVGFEPointLightElement* imp = static_cast<SVGFEPointLightElement*>(castedThis->impl());
       
   161     RefPtr<SVGAnimatedNumber> obj = imp->yAnimated();
       
   162     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   163     return result;
       
   164 }
       
   165 
       
   166 JSValue jsSVGFEPointLightElementZ(ExecState* exec, JSValue slotBase, const Identifier&)
       
   167 {
       
   168     JSSVGFEPointLightElement* castedThis = static_cast<JSSVGFEPointLightElement*>(asObject(slotBase));
       
   169     UNUSED_PARAM(exec);
       
   170     SVGFEPointLightElement* imp = static_cast<SVGFEPointLightElement*>(castedThis->impl());
       
   171     RefPtr<SVGAnimatedNumber> obj = imp->zAnimated();
       
   172     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   173     return result;
       
   174 }
       
   175 
       
   176 JSValue jsSVGFEPointLightElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   177 {
       
   178     JSSVGFEPointLightElement* domObject = static_cast<JSSVGFEPointLightElement*>(asObject(slotBase));
       
   179     return JSSVGFEPointLightElement::getConstructor(exec, domObject->globalObject());
       
   180 }
       
   181 JSValue JSSVGFEPointLightElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   182 {
       
   183     return getDOMConstructor<JSSVGFEPointLightElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   184 }
       
   185 
       
   186 
       
   187 }
       
   188 
       
   189 #endif // ENABLE(SVG) && ENABLE(FILTERS)