WebCore/generated/JSSVGFEDisplacementMapElement.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 "JSSVGFEDisplacementMapElement.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 "JSSVGAnimatedLength.h"
       
    34 #include "JSSVGAnimatedNumber.h"
       
    35 #include "JSSVGAnimatedString.h"
       
    36 #include "SVGFEDisplacementMapElement.h"
       
    37 #include <runtime/Error.h>
       
    38 #include <wtf/GetPtr.h>
       
    39 
       
    40 using namespace JSC;
       
    41 
       
    42 namespace WebCore {
       
    43 
       
    44 ASSERT_CLASS_FITS_IN_CELL(JSSVGFEDisplacementMapElement);
       
    45 
       
    46 /* Hash table */
       
    47 #if ENABLE(JIT)
       
    48 #define THUNK_GENERATOR(generator) , generator
       
    49 #else
       
    50 #define THUNK_GENERATOR(generator)
       
    51 #endif
       
    52 
       
    53 static const HashTableValue JSSVGFEDisplacementMapElementTableValues[14] =
       
    54 {
       
    55     { "in1", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementIn1), (intptr_t)0 THUNK_GENERATOR(0) },
       
    56     { "in2", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementIn2), (intptr_t)0 THUNK_GENERATOR(0) },
       
    57     { "scale", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementScale), (intptr_t)0 THUNK_GENERATOR(0) },
       
    58     { "xChannelSelector", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementXChannelSelector), (intptr_t)0 THUNK_GENERATOR(0) },
       
    59     { "yChannelSelector", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementYChannelSelector), (intptr_t)0 THUNK_GENERATOR(0) },
       
    60     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    61     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    62     { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementWidth), (intptr_t)0 THUNK_GENERATOR(0) },
       
    63     { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementHeight), (intptr_t)0 THUNK_GENERATOR(0) },
       
    64     { "result", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementResult), (intptr_t)0 THUNK_GENERATOR(0) },
       
    65     { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementClassName), (intptr_t)0 THUNK_GENERATOR(0) },
       
    66     { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementStyle), (intptr_t)0 THUNK_GENERATOR(0) },
       
    67     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    68     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    69 };
       
    70 
       
    71 #undef THUNK_GENERATOR
       
    72 static JSC_CONST_HASHTABLE HashTable JSSVGFEDisplacementMapElementTable = { 36, 31, JSSVGFEDisplacementMapElementTableValues, 0 };
       
    73 /* Hash table for constructor */
       
    74 #if ENABLE(JIT)
       
    75 #define THUNK_GENERATOR(generator) , generator
       
    76 #else
       
    77 #define THUNK_GENERATOR(generator)
       
    78 #endif
       
    79 
       
    80 static const HashTableValue JSSVGFEDisplacementMapElementConstructorTableValues[6] =
       
    81 {
       
    82     { "SVG_CHANNEL_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) },
       
    83     { "SVG_CHANNEL_R", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_R), (intptr_t)0 THUNK_GENERATOR(0) },
       
    84     { "SVG_CHANNEL_G", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_G), (intptr_t)0 THUNK_GENERATOR(0) },
       
    85     { "SVG_CHANNEL_B", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_B), (intptr_t)0 THUNK_GENERATOR(0) },
       
    86     { "SVG_CHANNEL_A", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_A), (intptr_t)0 THUNK_GENERATOR(0) },
       
    87     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    88 };
       
    89 
       
    90 #undef THUNK_GENERATOR
       
    91 static JSC_CONST_HASHTABLE HashTable JSSVGFEDisplacementMapElementConstructorTable = { 16, 15, JSSVGFEDisplacementMapElementConstructorTableValues, 0 };
       
    92 class JSSVGFEDisplacementMapElementConstructor : public DOMConstructorObject {
       
    93 public:
       
    94     JSSVGFEDisplacementMapElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    95 
       
    96     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    97     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    98     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    99     static const JSC::ClassInfo s_info;
       
   100     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
   101     {
       
   102         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
   103     }
       
   104 protected:
       
   105     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
   106 };
       
   107 
       
   108 const ClassInfo JSSVGFEDisplacementMapElementConstructor::s_info = { "SVGFEDisplacementMapElementConstructor", 0, &JSSVGFEDisplacementMapElementConstructorTable, 0 };
       
   109 
       
   110 JSSVGFEDisplacementMapElementConstructor::JSSVGFEDisplacementMapElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   111     : DOMConstructorObject(JSSVGFEDisplacementMapElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   112 {
       
   113     putDirect(exec->propertyNames().prototype, JSSVGFEDisplacementMapElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   114 }
       
   115 
       
   116 bool JSSVGFEDisplacementMapElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   117 {
       
   118     return getStaticValueSlot<JSSVGFEDisplacementMapElementConstructor, DOMObject>(exec, &JSSVGFEDisplacementMapElementConstructorTable, this, propertyName, slot);
       
   119 }
       
   120 
       
   121 bool JSSVGFEDisplacementMapElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   122 {
       
   123     return getStaticValueDescriptor<JSSVGFEDisplacementMapElementConstructor, DOMObject>(exec, &JSSVGFEDisplacementMapElementConstructorTable, this, propertyName, descriptor);
       
   124 }
       
   125 
       
   126 /* Hash table for prototype */
       
   127 #if ENABLE(JIT)
       
   128 #define THUNK_GENERATOR(generator) , generator
       
   129 #else
       
   130 #define THUNK_GENERATOR(generator)
       
   131 #endif
       
   132 
       
   133 static const HashTableValue JSSVGFEDisplacementMapElementPrototypeTableValues[7] =
       
   134 {
       
   135     { "SVG_CHANNEL_UNKNOWN", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_UNKNOWN), (intptr_t)0 THUNK_GENERATOR(0) },
       
   136     { "SVG_CHANNEL_R", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_R), (intptr_t)0 THUNK_GENERATOR(0) },
       
   137     { "SVG_CHANNEL_G", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_G), (intptr_t)0 THUNK_GENERATOR(0) },
       
   138     { "SVG_CHANNEL_B", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_B), (intptr_t)0 THUNK_GENERATOR(0) },
       
   139     { "SVG_CHANNEL_A", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGFEDisplacementMapElementSVG_CHANNEL_A), (intptr_t)0 THUNK_GENERATOR(0) },
       
   140     { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGFEDisplacementMapElementPrototypeFunctionGetPresentationAttribute), (intptr_t)1 THUNK_GENERATOR(0) },
       
   141     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   142 };
       
   143 
       
   144 #undef THUNK_GENERATOR
       
   145 static JSC_CONST_HASHTABLE HashTable JSSVGFEDisplacementMapElementPrototypeTable = { 16, 15, JSSVGFEDisplacementMapElementPrototypeTableValues, 0 };
       
   146 const ClassInfo JSSVGFEDisplacementMapElementPrototype::s_info = { "SVGFEDisplacementMapElementPrototype", 0, &JSSVGFEDisplacementMapElementPrototypeTable, 0 };
       
   147 
       
   148 JSObject* JSSVGFEDisplacementMapElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   149 {
       
   150     return getDOMPrototype<JSSVGFEDisplacementMapElement>(exec, globalObject);
       
   151 }
       
   152 
       
   153 bool JSSVGFEDisplacementMapElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   154 {
       
   155     return getStaticPropertySlot<JSSVGFEDisplacementMapElementPrototype, JSObject>(exec, &JSSVGFEDisplacementMapElementPrototypeTable, this, propertyName, slot);
       
   156 }
       
   157 
       
   158 bool JSSVGFEDisplacementMapElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   159 {
       
   160     return getStaticPropertyDescriptor<JSSVGFEDisplacementMapElementPrototype, JSObject>(exec, &JSSVGFEDisplacementMapElementPrototypeTable, this, propertyName, descriptor);
       
   161 }
       
   162 
       
   163 const ClassInfo JSSVGFEDisplacementMapElement::s_info = { "SVGFEDisplacementMapElement", &JSSVGElement::s_info, &JSSVGFEDisplacementMapElementTable, 0 };
       
   164 
       
   165 JSSVGFEDisplacementMapElement::JSSVGFEDisplacementMapElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGFEDisplacementMapElement> impl)
       
   166     : JSSVGElement(structure, globalObject, impl)
       
   167 {
       
   168 }
       
   169 
       
   170 JSObject* JSSVGFEDisplacementMapElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   171 {
       
   172     return new (exec) JSSVGFEDisplacementMapElementPrototype(globalObject, JSSVGFEDisplacementMapElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject)));
       
   173 }
       
   174 
       
   175 bool JSSVGFEDisplacementMapElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   176 {
       
   177     return getStaticValueSlot<JSSVGFEDisplacementMapElement, Base>(exec, &JSSVGFEDisplacementMapElementTable, this, propertyName, slot);
       
   178 }
       
   179 
       
   180 bool JSSVGFEDisplacementMapElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   181 {
       
   182     return getStaticValueDescriptor<JSSVGFEDisplacementMapElement, Base>(exec, &JSSVGFEDisplacementMapElementTable, this, propertyName, descriptor);
       
   183 }
       
   184 
       
   185 JSValue jsSVGFEDisplacementMapElementIn1(ExecState* exec, JSValue slotBase, const Identifier&)
       
   186 {
       
   187     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   188     UNUSED_PARAM(exec);
       
   189     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   190     RefPtr<SVGAnimatedString> obj = imp->in1Animated();
       
   191     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   192     return result;
       
   193 }
       
   194 
       
   195 JSValue jsSVGFEDisplacementMapElementIn2(ExecState* exec, JSValue slotBase, const Identifier&)
       
   196 {
       
   197     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   198     UNUSED_PARAM(exec);
       
   199     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   200     RefPtr<SVGAnimatedString> obj = imp->in2Animated();
       
   201     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   202     return result;
       
   203 }
       
   204 
       
   205 JSValue jsSVGFEDisplacementMapElementScale(ExecState* exec, JSValue slotBase, const Identifier&)
       
   206 {
       
   207     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   208     UNUSED_PARAM(exec);
       
   209     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   210     RefPtr<SVGAnimatedNumber> obj = imp->scaleAnimated();
       
   211     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   212     return result;
       
   213 }
       
   214 
       
   215 JSValue jsSVGFEDisplacementMapElementXChannelSelector(ExecState* exec, JSValue slotBase, const Identifier&)
       
   216 {
       
   217     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   218     UNUSED_PARAM(exec);
       
   219     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   220     RefPtr<SVGAnimatedEnumeration> obj = imp->xChannelSelectorAnimated();
       
   221     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   222     return result;
       
   223 }
       
   224 
       
   225 JSValue jsSVGFEDisplacementMapElementYChannelSelector(ExecState* exec, JSValue slotBase, const Identifier&)
       
   226 {
       
   227     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   228     UNUSED_PARAM(exec);
       
   229     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   230     RefPtr<SVGAnimatedEnumeration> obj = imp->yChannelSelectorAnimated();
       
   231     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   232     return result;
       
   233 }
       
   234 
       
   235 JSValue jsSVGFEDisplacementMapElementX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   236 {
       
   237     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   238     UNUSED_PARAM(exec);
       
   239     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   240     RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
       
   241     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   242     return result;
       
   243 }
       
   244 
       
   245 JSValue jsSVGFEDisplacementMapElementY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   246 {
       
   247     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   248     UNUSED_PARAM(exec);
       
   249     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   250     RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
       
   251     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   252     return result;
       
   253 }
       
   254 
       
   255 JSValue jsSVGFEDisplacementMapElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
       
   256 {
       
   257     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   258     UNUSED_PARAM(exec);
       
   259     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   260     RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
       
   261     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   262     return result;
       
   263 }
       
   264 
       
   265 JSValue jsSVGFEDisplacementMapElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
       
   266 {
       
   267     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   268     UNUSED_PARAM(exec);
       
   269     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   270     RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
       
   271     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   272     return result;
       
   273 }
       
   274 
       
   275 JSValue jsSVGFEDisplacementMapElementResult(ExecState* exec, JSValue slotBase, const Identifier&)
       
   276 {
       
   277     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   278     UNUSED_PARAM(exec);
       
   279     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   280     RefPtr<SVGAnimatedString> obj = imp->resultAnimated();
       
   281     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   282     return result;
       
   283 }
       
   284 
       
   285 JSValue jsSVGFEDisplacementMapElementClassName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   286 {
       
   287     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   288     UNUSED_PARAM(exec);
       
   289     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   290     RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
       
   291     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   292     return result;
       
   293 }
       
   294 
       
   295 JSValue jsSVGFEDisplacementMapElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
       
   296 {
       
   297     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   298     UNUSED_PARAM(exec);
       
   299     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   300     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
       
   301     return result;
       
   302 }
       
   303 
       
   304 JSValue jsSVGFEDisplacementMapElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   305 {
       
   306     JSSVGFEDisplacementMapElement* domObject = static_cast<JSSVGFEDisplacementMapElement*>(asObject(slotBase));
       
   307     return JSSVGFEDisplacementMapElement::getConstructor(exec, domObject->globalObject());
       
   308 }
       
   309 JSValue JSSVGFEDisplacementMapElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   310 {
       
   311     return getDOMConstructor<JSSVGFEDisplacementMapElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   312 }
       
   313 
       
   314 EncodedJSValue JSC_HOST_CALL jsSVGFEDisplacementMapElementPrototypeFunctionGetPresentationAttribute(ExecState* exec)
       
   315 {
       
   316     JSValue thisValue = exec->hostThisValue();
       
   317     if (!thisValue.inherits(&JSSVGFEDisplacementMapElement::s_info))
       
   318         return throwVMTypeError(exec);
       
   319     JSSVGFEDisplacementMapElement* castedThis = static_cast<JSSVGFEDisplacementMapElement*>(asObject(thisValue));
       
   320     SVGFEDisplacementMapElement* imp = static_cast<SVGFEDisplacementMapElement*>(castedThis->impl());
       
   321     const String& name = ustringToString(exec->argument(0).toString(exec));
       
   322 
       
   323 
       
   324     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
       
   325     return JSValue::encode(result);
       
   326 }
       
   327 
       
   328 // Constant getters
       
   329 
       
   330 JSValue jsSVGFEDisplacementMapElementSVG_CHANNEL_UNKNOWN(ExecState* exec, JSValue, const Identifier&)
       
   331 {
       
   332     return jsNumber(exec, static_cast<int>(0));
       
   333 }
       
   334 
       
   335 JSValue jsSVGFEDisplacementMapElementSVG_CHANNEL_R(ExecState* exec, JSValue, const Identifier&)
       
   336 {
       
   337     return jsNumber(exec, static_cast<int>(1));
       
   338 }
       
   339 
       
   340 JSValue jsSVGFEDisplacementMapElementSVG_CHANNEL_G(ExecState* exec, JSValue, const Identifier&)
       
   341 {
       
   342     return jsNumber(exec, static_cast<int>(2));
       
   343 }
       
   344 
       
   345 JSValue jsSVGFEDisplacementMapElementSVG_CHANNEL_B(ExecState* exec, JSValue, const Identifier&)
       
   346 {
       
   347     return jsNumber(exec, static_cast<int>(3));
       
   348 }
       
   349 
       
   350 JSValue jsSVGFEDisplacementMapElementSVG_CHANNEL_A(ExecState* exec, JSValue, const Identifier&)
       
   351 {
       
   352     return jsNumber(exec, static_cast<int>(4));
       
   353 }
       
   354 
       
   355 
       
   356 }
       
   357 
       
   358 #endif // ENABLE(SVG) && ENABLE(FILTERS)