WebCore/generated/JSSVGFETurbulenceElement.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 "JSSVGFETurbulenceElement.h"
       
    26 
       
    27 #include "CSSMutableStyleDeclaration.h"
       
    28 #include "CSSStyleDeclaration.h"
       
    29 #include "CSSValue.h"
       
    30 #include "JSCSSStyleDeclaration.h"
       
    31 #include "JSCSSValue.h"
       
    32 #include "JSSVGAnimatedEnumeration.h"
       
    33 #include "JSSVGAnimatedInteger.h"
       
    34 #include "JSSVGAnimatedLength.h"
       
    35 #include "JSSVGAnimatedNumber.h"
       
    36 #include "JSSVGAnimatedString.h"
       
    37 #include "SVGFETurbulenceElement.h"
       
    38 #include <runtime/Error.h>
       
    39 #include <wtf/GetPtr.h>
       
    40 
       
    41 using namespace JSC;
       
    42 
       
    43 namespace WebCore {
       
    44 
       
    45 ASSERT_CLASS_FITS_IN_CELL(JSSVGFETurbulenceElement);
       
    46 
       
    47 /* Hash table */
       
    48 #if ENABLE(JIT)
       
    49 #define THUNK_GENERATOR(generator) , generator
       
    50 #else
       
    51 #define THUNK_GENERATOR(generator)
       
    52 #endif
       
    53 
       
    54 static const HashTableValue JSSVGFETurbulenceElementTableValues[15] =
       
    55 {
       
    56     { "baseFrequencyX", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementBaseFrequencyX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    57     { "baseFrequencyY", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementBaseFrequencyY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    58     { "numOctaves", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementNumOctaves), (intptr_t)0 THUNK_GENERATOR(0) },
       
    59     { "seed", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSeed), (intptr_t)0 THUNK_GENERATOR(0) },
       
    60     { "stitchTiles", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementStitchTiles), (intptr_t)0 THUNK_GENERATOR(0) },
       
    61     { "type", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementType), (intptr_t)0 THUNK_GENERATOR(0) },
       
    62     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    63     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    64     { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementWidth), (intptr_t)0 THUNK_GENERATOR(0) },
       
    65     { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementHeight), (intptr_t)0 THUNK_GENERATOR(0) },
       
    66     { "result", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementResult), (intptr_t)0 THUNK_GENERATOR(0) },
       
    67     { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementClassName), (intptr_t)0 THUNK_GENERATOR(0) },
       
    68     { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementStyle), (intptr_t)0 THUNK_GENERATOR(0) },
       
    69     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    70     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    71 };
       
    72 
       
    73 #undef THUNK_GENERATOR
       
    74 static JSC_CONST_HASHTABLE HashTable JSSVGFETurbulenceElementTable = { 35, 31, JSSVGFETurbulenceElementTableValues, 0 };
       
    75 /* Hash table for constructor */
       
    76 #if ENABLE(JIT)
       
    77 #define THUNK_GENERATOR(generator) , generator
       
    78 #else
       
    79 #define THUNK_GENERATOR(generator)
       
    80 #endif
       
    81 
       
    82 static const HashTableValue JSSVGFETurbulenceElementConstructorTableValues[7] =
       
    83 {
       
    84     { "SVG_TURBULENCE_TYPE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) },
       
    85     { "SVG_TURBULENCE_TYPE_FRACTALNOISE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_FRACTALNOISE), (intptr_t)0 THUNK_GENERATOR(0) },
       
    86     { "SVG_TURBULENCE_TYPE_TURBULENCE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_TURBULENCE), (intptr_t)0 THUNK_GENERATOR(0) },
       
    87     { "SVG_STITCHTYPE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_STITCHTYPE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) },
       
    88     { "SVG_STITCHTYPE_STITCH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_STITCHTYPE_STITCH), (intptr_t)0 THUNK_GENERATOR(0) },
       
    89     { "SVG_STITCHTYPE_NOSTITCH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_STITCHTYPE_NOSTITCH), (intptr_t)0 THUNK_GENERATOR(0) },
       
    90     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    91 };
       
    92 
       
    93 #undef THUNK_GENERATOR
       
    94 static JSC_CONST_HASHTABLE HashTable JSSVGFETurbulenceElementConstructorTable = { 18, 15, JSSVGFETurbulenceElementConstructorTableValues, 0 };
       
    95 class JSSVGFETurbulenceElementConstructor : public DOMConstructorObject {
       
    96 public:
       
    97     JSSVGFETurbulenceElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    98 
       
    99     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
   100     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
   101     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
   102     static const JSC::ClassInfo s_info;
       
   103     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
   104     {
       
   105         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
   106     }
       
   107 protected:
       
   108     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
   109 };
       
   110 
       
   111 const ClassInfo JSSVGFETurbulenceElementConstructor::s_info = { "SVGFETurbulenceElementConstructor", 0, &JSSVGFETurbulenceElementConstructorTable, 0 };
       
   112 
       
   113 JSSVGFETurbulenceElementConstructor::JSSVGFETurbulenceElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   114     : DOMConstructorObject(JSSVGFETurbulenceElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   115 {
       
   116     putDirect(exec->propertyNames().prototype, JSSVGFETurbulenceElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   117 }
       
   118 
       
   119 bool JSSVGFETurbulenceElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   120 {
       
   121     return getStaticValueSlot<JSSVGFETurbulenceElementConstructor, DOMObject>(exec, &JSSVGFETurbulenceElementConstructorTable, this, propertyName, slot);
       
   122 }
       
   123 
       
   124 bool JSSVGFETurbulenceElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   125 {
       
   126     return getStaticValueDescriptor<JSSVGFETurbulenceElementConstructor, DOMObject>(exec, &JSSVGFETurbulenceElementConstructorTable, this, propertyName, descriptor);
       
   127 }
       
   128 
       
   129 /* Hash table for prototype */
       
   130 #if ENABLE(JIT)
       
   131 #define THUNK_GENERATOR(generator) , generator
       
   132 #else
       
   133 #define THUNK_GENERATOR(generator)
       
   134 #endif
       
   135 
       
   136 static const HashTableValue JSSVGFETurbulenceElementPrototypeTableValues[8] =
       
   137 {
       
   138     { "SVG_TURBULENCE_TYPE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) },
       
   139     { "SVG_TURBULENCE_TYPE_FRACTALNOISE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_FRACTALNOISE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   140     { "SVG_TURBULENCE_TYPE_TURBULENCE", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_TURBULENCE), (intptr_t)0 THUNK_GENERATOR(0) },
       
   141     { "SVG_STITCHTYPE_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_STITCHTYPE_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) },
       
   142     { "SVG_STITCHTYPE_STITCH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_STITCHTYPE_STITCH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   143     { "SVG_STITCHTYPE_NOSTITCH", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFETurbulenceElementSVG_STITCHTYPE_NOSTITCH), (intptr_t)0 THUNK_GENERATOR(0) },
       
   144     { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGFETurbulenceElementPrototypeFunctionGetPresentationAttribute), (intptr_t)1 THUNK_GENERATOR(0) },
       
   145     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   146 };
       
   147 
       
   148 #undef THUNK_GENERATOR
       
   149 static JSC_CONST_HASHTABLE HashTable JSSVGFETurbulenceElementPrototypeTable = { 18, 15, JSSVGFETurbulenceElementPrototypeTableValues, 0 };
       
   150 const ClassInfo JSSVGFETurbulenceElementPrototype::s_info = { "SVGFETurbulenceElementPrototype", 0, &JSSVGFETurbulenceElementPrototypeTable, 0 };
       
   151 
       
   152 JSObject* JSSVGFETurbulenceElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   153 {
       
   154     return getDOMPrototype<JSSVGFETurbulenceElement>(exec, globalObject);
       
   155 }
       
   156 
       
   157 bool JSSVGFETurbulenceElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   158 {
       
   159     return getStaticPropertySlot<JSSVGFETurbulenceElementPrototype, JSObject>(exec, &JSSVGFETurbulenceElementPrototypeTable, this, propertyName, slot);
       
   160 }
       
   161 
       
   162 bool JSSVGFETurbulenceElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   163 {
       
   164     return getStaticPropertyDescriptor<JSSVGFETurbulenceElementPrototype, JSObject>(exec, &JSSVGFETurbulenceElementPrototypeTable, this, propertyName, descriptor);
       
   165 }
       
   166 
       
   167 const ClassInfo JSSVGFETurbulenceElement::s_info = { "SVGFETurbulenceElement", &JSSVGElement::s_info, &JSSVGFETurbulenceElementTable, 0 };
       
   168 
       
   169 JSSVGFETurbulenceElement::JSSVGFETurbulenceElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFETurbulenceElement> impl)
       
   170     : JSSVGElement(structure, globalObject, impl)
       
   171 {
       
   172 }
       
   173 
       
   174 JSObject* JSSVGFETurbulenceElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   175 {
       
   176     return new (exec) JSSVGFETurbulenceElementPrototype(globalObject, JSSVGFETurbulenceElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject)));
       
   177 }
       
   178 
       
   179 bool JSSVGFETurbulenceElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   180 {
       
   181     return getStaticValueSlot<JSSVGFETurbulenceElement, Base>(exec, &JSSVGFETurbulenceElementTable, this, propertyName, slot);
       
   182 }
       
   183 
       
   184 bool JSSVGFETurbulenceElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   185 {
       
   186     return getStaticValueDescriptor<JSSVGFETurbulenceElement, Base>(exec, &JSSVGFETurbulenceElementTable, this, propertyName, descriptor);
       
   187 }
       
   188 
       
   189 JSValue jsSVGFETurbulenceElementBaseFrequencyX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   190 {
       
   191     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   192     UNUSED_PARAM(exec);
       
   193     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   194     RefPtr<SVGAnimatedNumber> obj = imp->baseFrequencyXAnimated();
       
   195     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   196     return result;
       
   197 }
       
   198 
       
   199 JSValue jsSVGFETurbulenceElementBaseFrequencyY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   200 {
       
   201     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   202     UNUSED_PARAM(exec);
       
   203     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   204     RefPtr<SVGAnimatedNumber> obj = imp->baseFrequencyYAnimated();
       
   205     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   206     return result;
       
   207 }
       
   208 
       
   209 JSValue jsSVGFETurbulenceElementNumOctaves(ExecState* exec, JSValue slotBase, const Identifier&)
       
   210 {
       
   211     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   212     UNUSED_PARAM(exec);
       
   213     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   214     RefPtr<SVGAnimatedInteger> obj = imp->numOctavesAnimated();
       
   215     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   216     return result;
       
   217 }
       
   218 
       
   219 JSValue jsSVGFETurbulenceElementSeed(ExecState* exec, JSValue slotBase, const Identifier&)
       
   220 {
       
   221     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   222     UNUSED_PARAM(exec);
       
   223     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   224     RefPtr<SVGAnimatedNumber> obj = imp->seedAnimated();
       
   225     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   226     return result;
       
   227 }
       
   228 
       
   229 JSValue jsSVGFETurbulenceElementStitchTiles(ExecState* exec, JSValue slotBase, const Identifier&)
       
   230 {
       
   231     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   232     UNUSED_PARAM(exec);
       
   233     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   234     RefPtr<SVGAnimatedEnumeration> obj = imp->stitchTilesAnimated();
       
   235     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   236     return result;
       
   237 }
       
   238 
       
   239 JSValue jsSVGFETurbulenceElementType(ExecState* exec, JSValue slotBase, const Identifier&)
       
   240 {
       
   241     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   242     UNUSED_PARAM(exec);
       
   243     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   244     RefPtr<SVGAnimatedEnumeration> obj = imp->typeAnimated();
       
   245     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   246     return result;
       
   247 }
       
   248 
       
   249 JSValue jsSVGFETurbulenceElementX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   250 {
       
   251     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   252     UNUSED_PARAM(exec);
       
   253     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   254     RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
       
   255     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   256     return result;
       
   257 }
       
   258 
       
   259 JSValue jsSVGFETurbulenceElementY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   260 {
       
   261     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   262     UNUSED_PARAM(exec);
       
   263     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   264     RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
       
   265     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   266     return result;
       
   267 }
       
   268 
       
   269 JSValue jsSVGFETurbulenceElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
       
   270 {
       
   271     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   272     UNUSED_PARAM(exec);
       
   273     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   274     RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
       
   275     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   276     return result;
       
   277 }
       
   278 
       
   279 JSValue jsSVGFETurbulenceElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
       
   280 {
       
   281     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   282     UNUSED_PARAM(exec);
       
   283     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   284     RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
       
   285     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   286     return result;
       
   287 }
       
   288 
       
   289 JSValue jsSVGFETurbulenceElementResult(ExecState* exec, JSValue slotBase, const Identifier&)
       
   290 {
       
   291     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   292     UNUSED_PARAM(exec);
       
   293     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   294     RefPtr<SVGAnimatedString> obj = imp->resultAnimated();
       
   295     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   296     return result;
       
   297 }
       
   298 
       
   299 JSValue jsSVGFETurbulenceElementClassName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   300 {
       
   301     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   302     UNUSED_PARAM(exec);
       
   303     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   304     RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
       
   305     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   306     return result;
       
   307 }
       
   308 
       
   309 JSValue jsSVGFETurbulenceElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
       
   310 {
       
   311     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   312     UNUSED_PARAM(exec);
       
   313     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   314     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
       
   315     return result;
       
   316 }
       
   317 
       
   318 JSValue jsSVGFETurbulenceElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   319 {
       
   320     JSSVGFETurbulenceElement* domObject = static_cast<JSSVGFETurbulenceElement*>(asObject(slotBase));
       
   321     return JSSVGFETurbulenceElement::getConstructor(exec, domObject->globalObject());
       
   322 }
       
   323 JSValue JSSVGFETurbulenceElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   324 {
       
   325     return getDOMConstructor<JSSVGFETurbulenceElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   326 }
       
   327 
       
   328 EncodedJSValue JSC_HOST_CALL jsSVGFETurbulenceElementPrototypeFunctionGetPresentationAttribute(ExecState* exec)
       
   329 {
       
   330     JSValue thisValue = exec->hostThisValue();
       
   331     if (!thisValue.inherits(&JSSVGFETurbulenceElement::s_info))
       
   332         return throwVMTypeError(exec);
       
   333     JSSVGFETurbulenceElement* castedThis = static_cast<JSSVGFETurbulenceElement*>(asObject(thisValue));
       
   334     SVGFETurbulenceElement* imp = static_cast<SVGFETurbulenceElement*>(castedThis->impl());
       
   335     const String& name = ustringToString(exec->argument(0).toString(exec));
       
   336 
       
   337 
       
   338     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
       
   339     return JSValue::encode(result);
       
   340 }
       
   341 
       
   342 // Constant getters
       
   343 
       
   344 JSValue jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_UNKNOWN(ExecState* exec, JSValue, const Identifier&)
       
   345 {
       
   346     return jsNumber(exec, static_cast<int>(0));
       
   347 }
       
   348 
       
   349 JSValue jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_FRACTALNOISE(ExecState* exec, JSValue, const Identifier&)
       
   350 {
       
   351     return jsNumber(exec, static_cast<int>(1));
       
   352 }
       
   353 
       
   354 JSValue jsSVGFETurbulenceElementSVG_TURBULENCE_TYPE_TURBULENCE(ExecState* exec, JSValue, const Identifier&)
       
   355 {
       
   356     return jsNumber(exec, static_cast<int>(2));
       
   357 }
       
   358 
       
   359 JSValue jsSVGFETurbulenceElementSVG_STITCHTYPE_UNKNOWN(ExecState* exec, JSValue, const Identifier&)
       
   360 {
       
   361     return jsNumber(exec, static_cast<int>(0));
       
   362 }
       
   363 
       
   364 JSValue jsSVGFETurbulenceElementSVG_STITCHTYPE_STITCH(ExecState* exec, JSValue, const Identifier&)
       
   365 {
       
   366     return jsNumber(exec, static_cast<int>(1));
       
   367 }
       
   368 
       
   369 JSValue jsSVGFETurbulenceElementSVG_STITCHTYPE_NOSTITCH(ExecState* exec, JSValue, const Identifier&)
       
   370 {
       
   371     return jsNumber(exec, static_cast<int>(2));
       
   372 }
       
   373 
       
   374 
       
   375 }
       
   376 
       
   377 #endif // ENABLE(SVG) && ENABLE(FILTERS)