WebCore/generated/JSSVGPatternElement.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)
       
    24 
       
    25 #include "JSSVGPatternElement.h"
       
    26 
       
    27 #include "CSSMutableStyleDeclaration.h"
       
    28 #include "CSSStyleDeclaration.h"
       
    29 #include "CSSValue.h"
       
    30 #include "JSCSSStyleDeclaration.h"
       
    31 #include "JSCSSValue.h"
       
    32 #include "JSSVGAnimatedBoolean.h"
       
    33 #include "JSSVGAnimatedEnumeration.h"
       
    34 #include "JSSVGAnimatedLength.h"
       
    35 #include "JSSVGAnimatedPreserveAspectRatio.h"
       
    36 #include "JSSVGAnimatedRect.h"
       
    37 #include "JSSVGAnimatedString.h"
       
    38 #include "JSSVGAnimatedTransformList.h"
       
    39 #include "JSSVGStringList.h"
       
    40 #include "KURL.h"
       
    41 #include "SVGPatternElement.h"
       
    42 #include "SVGStringList.h"
       
    43 #include <runtime/Error.h>
       
    44 #include <runtime/JSString.h>
       
    45 #include <wtf/GetPtr.h>
       
    46 
       
    47 using namespace JSC;
       
    48 
       
    49 namespace WebCore {
       
    50 
       
    51 ASSERT_CLASS_FITS_IN_CELL(JSSVGPatternElement);
       
    52 
       
    53 /* Hash table */
       
    54 #if ENABLE(JIT)
       
    55 #define THUNK_GENERATOR(generator) , generator
       
    56 #else
       
    57 #define THUNK_GENERATOR(generator)
       
    58 #endif
       
    59 
       
    60 static const HashTableValue JSSVGPatternElementTableValues[20] =
       
    61 {
       
    62     { "patternUnits", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementPatternUnits), (intptr_t)0 THUNK_GENERATOR(0) },
       
    63     { "patternContentUnits", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementPatternContentUnits), (intptr_t)0 THUNK_GENERATOR(0) },
       
    64     { "patternTransform", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementPatternTransform), (intptr_t)0 THUNK_GENERATOR(0) },
       
    65     { "x", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementX), (intptr_t)0 THUNK_GENERATOR(0) },
       
    66     { "y", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementY), (intptr_t)0 THUNK_GENERATOR(0) },
       
    67     { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementWidth), (intptr_t)0 THUNK_GENERATOR(0) },
       
    68     { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementHeight), (intptr_t)0 THUNK_GENERATOR(0) },
       
    69     { "href", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementHref), (intptr_t)0 THUNK_GENERATOR(0) },
       
    70     { "requiredFeatures", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementRequiredFeatures), (intptr_t)0 THUNK_GENERATOR(0) },
       
    71     { "requiredExtensions", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementRequiredExtensions), (intptr_t)0 THUNK_GENERATOR(0) },
       
    72     { "systemLanguage", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementSystemLanguage), (intptr_t)0 THUNK_GENERATOR(0) },
       
    73     { "xmllang", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementXmllang), (intptr_t)setJSSVGPatternElementXmllang THUNK_GENERATOR(0) },
       
    74     { "xmlspace", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementXmlspace), (intptr_t)setJSSVGPatternElementXmlspace THUNK_GENERATOR(0) },
       
    75     { "externalResourcesRequired", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementExternalResourcesRequired), (intptr_t)0 THUNK_GENERATOR(0) },
       
    76     { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementClassName), (intptr_t)0 THUNK_GENERATOR(0) },
       
    77     { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementStyle), (intptr_t)0 THUNK_GENERATOR(0) },
       
    78     { "viewBox", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementViewBox), (intptr_t)0 THUNK_GENERATOR(0) },
       
    79     { "preserveAspectRatio", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementPreserveAspectRatio), (intptr_t)0 THUNK_GENERATOR(0) },
       
    80     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGPatternElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    81     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    82 };
       
    83 
       
    84 #undef THUNK_GENERATOR
       
    85 static JSC_CONST_HASHTABLE HashTable JSSVGPatternElementTable = { 68, 63, JSSVGPatternElementTableValues, 0 };
       
    86 /* Hash table for constructor */
       
    87 #if ENABLE(JIT)
       
    88 #define THUNK_GENERATOR(generator) , generator
       
    89 #else
       
    90 #define THUNK_GENERATOR(generator)
       
    91 #endif
       
    92 
       
    93 static const HashTableValue JSSVGPatternElementConstructorTableValues[1] =
       
    94 {
       
    95     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    96 };
       
    97 
       
    98 #undef THUNK_GENERATOR
       
    99 static JSC_CONST_HASHTABLE HashTable JSSVGPatternElementConstructorTable = { 1, 0, JSSVGPatternElementConstructorTableValues, 0 };
       
   100 class JSSVGPatternElementConstructor : public DOMConstructorObject {
       
   101 public:
       
   102     JSSVGPatternElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
   103 
       
   104     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
   105     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
   106     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
   107     static const JSC::ClassInfo s_info;
       
   108     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
   109     {
       
   110         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
   111     }
       
   112 protected:
       
   113     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
   114 };
       
   115 
       
   116 const ClassInfo JSSVGPatternElementConstructor::s_info = { "SVGPatternElementConstructor", 0, &JSSVGPatternElementConstructorTable, 0 };
       
   117 
       
   118 JSSVGPatternElementConstructor::JSSVGPatternElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   119     : DOMConstructorObject(JSSVGPatternElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   120 {
       
   121     putDirect(exec->propertyNames().prototype, JSSVGPatternElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   122 }
       
   123 
       
   124 bool JSSVGPatternElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   125 {
       
   126     return getStaticValueSlot<JSSVGPatternElementConstructor, DOMObject>(exec, &JSSVGPatternElementConstructorTable, this, propertyName, slot);
       
   127 }
       
   128 
       
   129 bool JSSVGPatternElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   130 {
       
   131     return getStaticValueDescriptor<JSSVGPatternElementConstructor, DOMObject>(exec, &JSSVGPatternElementConstructorTable, this, propertyName, descriptor);
       
   132 }
       
   133 
       
   134 /* Hash table for prototype */
       
   135 #if ENABLE(JIT)
       
   136 #define THUNK_GENERATOR(generator) , generator
       
   137 #else
       
   138 #define THUNK_GENERATOR(generator)
       
   139 #endif
       
   140 
       
   141 static const HashTableValue JSSVGPatternElementPrototypeTableValues[3] =
       
   142 {
       
   143     { "hasExtension", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGPatternElementPrototypeFunctionHasExtension), (intptr_t)1 THUNK_GENERATOR(0) },
       
   144     { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGPatternElementPrototypeFunctionGetPresentationAttribute), (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 JSSVGPatternElementPrototypeTable = { 4, 3, JSSVGPatternElementPrototypeTableValues, 0 };
       
   150 const ClassInfo JSSVGPatternElementPrototype::s_info = { "SVGPatternElementPrototype", 0, &JSSVGPatternElementPrototypeTable, 0 };
       
   151 
       
   152 JSObject* JSSVGPatternElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   153 {
       
   154     return getDOMPrototype<JSSVGPatternElement>(exec, globalObject);
       
   155 }
       
   156 
       
   157 bool JSSVGPatternElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   158 {
       
   159     return getStaticFunctionSlot<JSObject>(exec, &JSSVGPatternElementPrototypeTable, this, propertyName, slot);
       
   160 }
       
   161 
       
   162 bool JSSVGPatternElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   163 {
       
   164     return getStaticFunctionDescriptor<JSObject>(exec, &JSSVGPatternElementPrototypeTable, this, propertyName, descriptor);
       
   165 }
       
   166 
       
   167 const ClassInfo JSSVGPatternElement::s_info = { "SVGPatternElement", &JSSVGElement::s_info, &JSSVGPatternElementTable, 0 };
       
   168 
       
   169 JSSVGPatternElement::JSSVGPatternElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPatternElement> impl)
       
   170     : JSSVGElement(structure, globalObject, impl)
       
   171 {
       
   172 }
       
   173 
       
   174 JSObject* JSSVGPatternElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   175 {
       
   176     return new (exec) JSSVGPatternElementPrototype(globalObject, JSSVGPatternElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject)));
       
   177 }
       
   178 
       
   179 bool JSSVGPatternElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   180 {
       
   181     return getStaticValueSlot<JSSVGPatternElement, Base>(exec, &JSSVGPatternElementTable, this, propertyName, slot);
       
   182 }
       
   183 
       
   184 bool JSSVGPatternElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   185 {
       
   186     return getStaticValueDescriptor<JSSVGPatternElement, Base>(exec, &JSSVGPatternElementTable, this, propertyName, descriptor);
       
   187 }
       
   188 
       
   189 JSValue jsSVGPatternElementPatternUnits(ExecState* exec, JSValue slotBase, const Identifier&)
       
   190 {
       
   191     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   192     UNUSED_PARAM(exec);
       
   193     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   194     RefPtr<SVGAnimatedEnumeration> obj = imp->patternUnitsAnimated();
       
   195     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   196     return result;
       
   197 }
       
   198 
       
   199 JSValue jsSVGPatternElementPatternContentUnits(ExecState* exec, JSValue slotBase, const Identifier&)
       
   200 {
       
   201     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   202     UNUSED_PARAM(exec);
       
   203     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   204     RefPtr<SVGAnimatedEnumeration> obj = imp->patternContentUnitsAnimated();
       
   205     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   206     return result;
       
   207 }
       
   208 
       
   209 JSValue jsSVGPatternElementPatternTransform(ExecState* exec, JSValue slotBase, const Identifier&)
       
   210 {
       
   211     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   212     UNUSED_PARAM(exec);
       
   213     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   214     RefPtr<SVGAnimatedTransformList> obj = imp->patternTransformAnimated();
       
   215     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   216     return result;
       
   217 }
       
   218 
       
   219 JSValue jsSVGPatternElementX(ExecState* exec, JSValue slotBase, const Identifier&)
       
   220 {
       
   221     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   222     UNUSED_PARAM(exec);
       
   223     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   224     RefPtr<SVGAnimatedLength> obj = imp->xAnimated();
       
   225     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   226     return result;
       
   227 }
       
   228 
       
   229 JSValue jsSVGPatternElementY(ExecState* exec, JSValue slotBase, const Identifier&)
       
   230 {
       
   231     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   232     UNUSED_PARAM(exec);
       
   233     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   234     RefPtr<SVGAnimatedLength> obj = imp->yAnimated();
       
   235     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   236     return result;
       
   237 }
       
   238 
       
   239 JSValue jsSVGPatternElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
       
   240 {
       
   241     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   242     UNUSED_PARAM(exec);
       
   243     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   244     RefPtr<SVGAnimatedLength> obj = imp->widthAnimated();
       
   245     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   246     return result;
       
   247 }
       
   248 
       
   249 JSValue jsSVGPatternElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
       
   250 {
       
   251     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   252     UNUSED_PARAM(exec);
       
   253     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   254     RefPtr<SVGAnimatedLength> obj = imp->heightAnimated();
       
   255     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   256     return result;
       
   257 }
       
   258 
       
   259 JSValue jsSVGPatternElementHref(ExecState* exec, JSValue slotBase, const Identifier&)
       
   260 {
       
   261     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   262     UNUSED_PARAM(exec);
       
   263     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   264     RefPtr<SVGAnimatedString> obj = imp->hrefAnimated();
       
   265     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   266     return result;
       
   267 }
       
   268 
       
   269 JSValue jsSVGPatternElementRequiredFeatures(ExecState* exec, JSValue slotBase, const Identifier&)
       
   270 {
       
   271     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   272     UNUSED_PARAM(exec);
       
   273     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   274     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredFeatures()), imp);
       
   275     return result;
       
   276 }
       
   277 
       
   278 JSValue jsSVGPatternElementRequiredExtensions(ExecState* exec, JSValue slotBase, const Identifier&)
       
   279 {
       
   280     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   281     UNUSED_PARAM(exec);
       
   282     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   283     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp);
       
   284     return result;
       
   285 }
       
   286 
       
   287 JSValue jsSVGPatternElementSystemLanguage(ExecState* exec, JSValue slotBase, const Identifier&)
       
   288 {
       
   289     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   290     UNUSED_PARAM(exec);
       
   291     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   292     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->systemLanguage()), imp);
       
   293     return result;
       
   294 }
       
   295 
       
   296 JSValue jsSVGPatternElementXmllang(ExecState* exec, JSValue slotBase, const Identifier&)
       
   297 {
       
   298     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   299     UNUSED_PARAM(exec);
       
   300     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   301     JSValue result = jsString(exec, imp->xmllang());
       
   302     return result;
       
   303 }
       
   304 
       
   305 JSValue jsSVGPatternElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&)
       
   306 {
       
   307     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   308     UNUSED_PARAM(exec);
       
   309     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   310     JSValue result = jsString(exec, imp->xmlspace());
       
   311     return result;
       
   312 }
       
   313 
       
   314 JSValue jsSVGPatternElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&)
       
   315 {
       
   316     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   317     UNUSED_PARAM(exec);
       
   318     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   319     RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
       
   320     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   321     return result;
       
   322 }
       
   323 
       
   324 JSValue jsSVGPatternElementClassName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   325 {
       
   326     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   327     UNUSED_PARAM(exec);
       
   328     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   329     RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
       
   330     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   331     return result;
       
   332 }
       
   333 
       
   334 JSValue jsSVGPatternElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
       
   335 {
       
   336     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   337     UNUSED_PARAM(exec);
       
   338     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   339     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
       
   340     return result;
       
   341 }
       
   342 
       
   343 JSValue jsSVGPatternElementViewBox(ExecState* exec, JSValue slotBase, const Identifier&)
       
   344 {
       
   345     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   346     UNUSED_PARAM(exec);
       
   347     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   348     RefPtr<SVGAnimatedRect> obj = imp->viewBoxAnimated();
       
   349     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   350     return result;
       
   351 }
       
   352 
       
   353 JSValue jsSVGPatternElementPreserveAspectRatio(ExecState* exec, JSValue slotBase, const Identifier&)
       
   354 {
       
   355     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   356     UNUSED_PARAM(exec);
       
   357     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   358     RefPtr<SVGAnimatedPreserveAspectRatio> obj = imp->preserveAspectRatioAnimated();
       
   359     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   360     return result;
       
   361 }
       
   362 
       
   363 JSValue jsSVGPatternElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   364 {
       
   365     JSSVGPatternElement* domObject = static_cast<JSSVGPatternElement*>(asObject(slotBase));
       
   366     return JSSVGPatternElement::getConstructor(exec, domObject->globalObject());
       
   367 }
       
   368 void JSSVGPatternElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   369 {
       
   370     lookupPut<JSSVGPatternElement, Base>(exec, propertyName, value, &JSSVGPatternElementTable, this, slot);
       
   371 }
       
   372 
       
   373 void setJSSVGPatternElementXmllang(ExecState* exec, JSObject* thisObject, JSValue value)
       
   374 {
       
   375     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(thisObject);
       
   376     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   377     imp->setXmllang(ustringToString(value.toString(exec)));
       
   378 }
       
   379 
       
   380 void setJSSVGPatternElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value)
       
   381 {
       
   382     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(thisObject);
       
   383     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   384     imp->setXmlspace(ustringToString(value.toString(exec)));
       
   385 }
       
   386 
       
   387 JSValue JSSVGPatternElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   388 {
       
   389     return getDOMConstructor<JSSVGPatternElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   390 }
       
   391 
       
   392 EncodedJSValue JSC_HOST_CALL jsSVGPatternElementPrototypeFunctionHasExtension(ExecState* exec)
       
   393 {
       
   394     JSValue thisValue = exec->hostThisValue();
       
   395     if (!thisValue.inherits(&JSSVGPatternElement::s_info))
       
   396         return throwVMTypeError(exec);
       
   397     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(thisValue));
       
   398     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   399     const String& extension = ustringToString(exec->argument(0).toString(exec));
       
   400 
       
   401 
       
   402     JSC::JSValue result = jsBoolean(imp->hasExtension(extension));
       
   403     return JSValue::encode(result);
       
   404 }
       
   405 
       
   406 EncodedJSValue JSC_HOST_CALL jsSVGPatternElementPrototypeFunctionGetPresentationAttribute(ExecState* exec)
       
   407 {
       
   408     JSValue thisValue = exec->hostThisValue();
       
   409     if (!thisValue.inherits(&JSSVGPatternElement::s_info))
       
   410         return throwVMTypeError(exec);
       
   411     JSSVGPatternElement* castedThis = static_cast<JSSVGPatternElement*>(asObject(thisValue));
       
   412     SVGPatternElement* imp = static_cast<SVGPatternElement*>(castedThis->impl());
       
   413     const String& name = ustringToString(exec->argument(0).toString(exec));
       
   414 
       
   415 
       
   416     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
       
   417     return JSValue::encode(result);
       
   418 }
       
   419 
       
   420 
       
   421 }
       
   422 
       
   423 #endif // ENABLE(SVG)