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