WebCore/generated/JSSVGAElement.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 "JSSVGAElement.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 "JSSVGAnimatedString.h"
       
    34 #include "JSSVGAnimatedTransformList.h"
       
    35 #include "JSSVGElement.h"
       
    36 #include "JSSVGMatrix.h"
       
    37 #include "JSSVGRect.h"
       
    38 #include "JSSVGStringList.h"
       
    39 #include "KURL.h"
       
    40 #include "SVGAElement.h"
       
    41 #include "SVGElement.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(JSSVGAElement);
       
    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 JSSVGAElementTableValues[15] =
       
    61 {
       
    62     { "target", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementTarget), (intptr_t)0 THUNK_GENERATOR(0) },
       
    63     { "href", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementHref), (intptr_t)0 THUNK_GENERATOR(0) },
       
    64     { "requiredFeatures", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementRequiredFeatures), (intptr_t)0 THUNK_GENERATOR(0) },
       
    65     { "requiredExtensions", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementRequiredExtensions), (intptr_t)0 THUNK_GENERATOR(0) },
       
    66     { "systemLanguage", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementSystemLanguage), (intptr_t)0 THUNK_GENERATOR(0) },
       
    67     { "xmllang", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementXmllang), (intptr_t)setJSSVGAElementXmllang THUNK_GENERATOR(0) },
       
    68     { "xmlspace", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementXmlspace), (intptr_t)setJSSVGAElementXmlspace THUNK_GENERATOR(0) },
       
    69     { "externalResourcesRequired", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementExternalResourcesRequired), (intptr_t)0 THUNK_GENERATOR(0) },
       
    70     { "className", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementClassName), (intptr_t)0 THUNK_GENERATOR(0) },
       
    71     { "style", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementStyle), (intptr_t)0 THUNK_GENERATOR(0) },
       
    72     { "transform", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementTransform), (intptr_t)0 THUNK_GENERATOR(0) },
       
    73     { "nearestViewportElement", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementNearestViewportElement), (intptr_t)0 THUNK_GENERATOR(0) },
       
    74     { "farthestViewportElement", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementFarthestViewportElement), (intptr_t)0 THUNK_GENERATOR(0) },
       
    75     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsSVGAElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    76     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    77 };
       
    78 
       
    79 #undef THUNK_GENERATOR
       
    80 static JSC_CONST_HASHTABLE HashTable JSSVGAElementTable = { 34, 31, JSSVGAElementTableValues, 0 };
       
    81 /* Hash table for constructor */
       
    82 #if ENABLE(JIT)
       
    83 #define THUNK_GENERATOR(generator) , generator
       
    84 #else
       
    85 #define THUNK_GENERATOR(generator)
       
    86 #endif
       
    87 
       
    88 static const HashTableValue JSSVGAElementConstructorTableValues[1] =
       
    89 {
       
    90     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    91 };
       
    92 
       
    93 #undef THUNK_GENERATOR
       
    94 static JSC_CONST_HASHTABLE HashTable JSSVGAElementConstructorTable = { 1, 0, JSSVGAElementConstructorTableValues, 0 };
       
    95 class JSSVGAElementConstructor : public DOMConstructorObject {
       
    96 public:
       
    97     JSSVGAElementConstructor(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 JSSVGAElementConstructor::s_info = { "SVGAElementConstructor", 0, &JSSVGAElementConstructorTable, 0 };
       
   112 
       
   113 JSSVGAElementConstructor::JSSVGAElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   114     : DOMConstructorObject(JSSVGAElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   115 {
       
   116     putDirect(exec->propertyNames().prototype, JSSVGAElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   117 }
       
   118 
       
   119 bool JSSVGAElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   120 {
       
   121     return getStaticValueSlot<JSSVGAElementConstructor, DOMObject>(exec, &JSSVGAElementConstructorTable, this, propertyName, slot);
       
   122 }
       
   123 
       
   124 bool JSSVGAElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   125 {
       
   126     return getStaticValueDescriptor<JSSVGAElementConstructor, DOMObject>(exec, &JSSVGAElementConstructorTable, 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 JSSVGAElementPrototypeTableValues[7] =
       
   137 {
       
   138     { "hasExtension", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGAElementPrototypeFunctionHasExtension), (intptr_t)1 THUNK_GENERATOR(0) },
       
   139     { "getPresentationAttribute", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGAElementPrototypeFunctionGetPresentationAttribute), (intptr_t)1 THUNK_GENERATOR(0) },
       
   140     { "getBBox", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGAElementPrototypeFunctionGetBBox), (intptr_t)0 THUNK_GENERATOR(0) },
       
   141     { "getCTM", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGAElementPrototypeFunctionGetCTM), (intptr_t)0 THUNK_GENERATOR(0) },
       
   142     { "getScreenCTM", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGAElementPrototypeFunctionGetScreenCTM), (intptr_t)0 THUNK_GENERATOR(0) },
       
   143     { "getTransformToElement", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsSVGAElementPrototypeFunctionGetTransformToElement), (intptr_t)1 THUNK_GENERATOR(0) },
       
   144     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   145 };
       
   146 
       
   147 #undef THUNK_GENERATOR
       
   148 static JSC_CONST_HASHTABLE HashTable JSSVGAElementPrototypeTable = { 17, 15, JSSVGAElementPrototypeTableValues, 0 };
       
   149 const ClassInfo JSSVGAElementPrototype::s_info = { "SVGAElementPrototype", 0, &JSSVGAElementPrototypeTable, 0 };
       
   150 
       
   151 JSObject* JSSVGAElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   152 {
       
   153     return getDOMPrototype<JSSVGAElement>(exec, globalObject);
       
   154 }
       
   155 
       
   156 bool JSSVGAElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   157 {
       
   158     return getStaticFunctionSlot<JSObject>(exec, &JSSVGAElementPrototypeTable, this, propertyName, slot);
       
   159 }
       
   160 
       
   161 bool JSSVGAElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   162 {
       
   163     return getStaticFunctionDescriptor<JSObject>(exec, &JSSVGAElementPrototypeTable, this, propertyName, descriptor);
       
   164 }
       
   165 
       
   166 const ClassInfo JSSVGAElement::s_info = { "SVGAElement", &JSSVGElement::s_info, &JSSVGAElementTable, 0 };
       
   167 
       
   168 JSSVGAElement::JSSVGAElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGAElement> impl)
       
   169     : JSSVGElement(structure, globalObject, impl)
       
   170 {
       
   171 }
       
   172 
       
   173 JSObject* JSSVGAElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   174 {
       
   175     return new (exec) JSSVGAElementPrototype(globalObject, JSSVGAElementPrototype::createStructure(JSSVGElementPrototype::self(exec, globalObject)));
       
   176 }
       
   177 
       
   178 bool JSSVGAElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   179 {
       
   180     return getStaticValueSlot<JSSVGAElement, Base>(exec, &JSSVGAElementTable, this, propertyName, slot);
       
   181 }
       
   182 
       
   183 bool JSSVGAElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   184 {
       
   185     return getStaticValueDescriptor<JSSVGAElement, Base>(exec, &JSSVGAElementTable, this, propertyName, descriptor);
       
   186 }
       
   187 
       
   188 JSValue jsSVGAElementTarget(ExecState* exec, JSValue slotBase, const Identifier&)
       
   189 {
       
   190     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   191     UNUSED_PARAM(exec);
       
   192     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   193     RefPtr<SVGAnimatedString> obj = imp->targetAnimated();
       
   194     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   195     return result;
       
   196 }
       
   197 
       
   198 JSValue jsSVGAElementHref(ExecState* exec, JSValue slotBase, const Identifier&)
       
   199 {
       
   200     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   201     UNUSED_PARAM(exec);
       
   202     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   203     RefPtr<SVGAnimatedString> obj = imp->hrefAnimated();
       
   204     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   205     return result;
       
   206 }
       
   207 
       
   208 JSValue jsSVGAElementRequiredFeatures(ExecState* exec, JSValue slotBase, const Identifier&)
       
   209 {
       
   210     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   211     UNUSED_PARAM(exec);
       
   212     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   213     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredFeatures()), imp);
       
   214     return result;
       
   215 }
       
   216 
       
   217 JSValue jsSVGAElementRequiredExtensions(ExecState* exec, JSValue slotBase, const Identifier&)
       
   218 {
       
   219     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   220     UNUSED_PARAM(exec);
       
   221     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   222     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->requiredExtensions()), imp);
       
   223     return result;
       
   224 }
       
   225 
       
   226 JSValue jsSVGAElementSystemLanguage(ExecState* exec, JSValue slotBase, const Identifier&)
       
   227 {
       
   228     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   229     UNUSED_PARAM(exec);
       
   230     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   231     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->systemLanguage()), imp);
       
   232     return result;
       
   233 }
       
   234 
       
   235 JSValue jsSVGAElementXmllang(ExecState* exec, JSValue slotBase, const Identifier&)
       
   236 {
       
   237     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   238     UNUSED_PARAM(exec);
       
   239     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   240     JSValue result = jsString(exec, imp->xmllang());
       
   241     return result;
       
   242 }
       
   243 
       
   244 JSValue jsSVGAElementXmlspace(ExecState* exec, JSValue slotBase, const Identifier&)
       
   245 {
       
   246     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   247     UNUSED_PARAM(exec);
       
   248     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   249     JSValue result = jsString(exec, imp->xmlspace());
       
   250     return result;
       
   251 }
       
   252 
       
   253 JSValue jsSVGAElementExternalResourcesRequired(ExecState* exec, JSValue slotBase, const Identifier&)
       
   254 {
       
   255     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   256     UNUSED_PARAM(exec);
       
   257     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   258     RefPtr<SVGAnimatedBoolean> obj = imp->externalResourcesRequiredAnimated();
       
   259     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   260     return result;
       
   261 }
       
   262 
       
   263 JSValue jsSVGAElementClassName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   264 {
       
   265     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   266     UNUSED_PARAM(exec);
       
   267     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   268     RefPtr<SVGAnimatedString> obj = imp->classNameAnimated();
       
   269     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   270     return result;
       
   271 }
       
   272 
       
   273 JSValue jsSVGAElementStyle(ExecState* exec, JSValue slotBase, const Identifier&)
       
   274 {
       
   275     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   276     UNUSED_PARAM(exec);
       
   277     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   278     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->style()));
       
   279     return result;
       
   280 }
       
   281 
       
   282 JSValue jsSVGAElementTransform(ExecState* exec, JSValue slotBase, const Identifier&)
       
   283 {
       
   284     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   285     UNUSED_PARAM(exec);
       
   286     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   287     RefPtr<SVGAnimatedTransformList> obj = imp->transformAnimated();
       
   288     JSValue result =  toJS(exec, castedThis->globalObject(), obj.get(), imp);
       
   289     return result;
       
   290 }
       
   291 
       
   292 JSValue jsSVGAElementNearestViewportElement(ExecState* exec, JSValue slotBase, const Identifier&)
       
   293 {
       
   294     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   295     UNUSED_PARAM(exec);
       
   296     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   297     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->nearestViewportElement()));
       
   298     return result;
       
   299 }
       
   300 
       
   301 JSValue jsSVGAElementFarthestViewportElement(ExecState* exec, JSValue slotBase, const Identifier&)
       
   302 {
       
   303     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   304     UNUSED_PARAM(exec);
       
   305     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   306     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->farthestViewportElement()));
       
   307     return result;
       
   308 }
       
   309 
       
   310 JSValue jsSVGAElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   311 {
       
   312     JSSVGAElement* domObject = static_cast<JSSVGAElement*>(asObject(slotBase));
       
   313     return JSSVGAElement::getConstructor(exec, domObject->globalObject());
       
   314 }
       
   315 void JSSVGAElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   316 {
       
   317     lookupPut<JSSVGAElement, Base>(exec, propertyName, value, &JSSVGAElementTable, this, slot);
       
   318 }
       
   319 
       
   320 void setJSSVGAElementXmllang(ExecState* exec, JSObject* thisObject, JSValue value)
       
   321 {
       
   322     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(thisObject);
       
   323     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   324     imp->setXmllang(ustringToString(value.toString(exec)));
       
   325 }
       
   326 
       
   327 void setJSSVGAElementXmlspace(ExecState* exec, JSObject* thisObject, JSValue value)
       
   328 {
       
   329     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(thisObject);
       
   330     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   331     imp->setXmlspace(ustringToString(value.toString(exec)));
       
   332 }
       
   333 
       
   334 JSValue JSSVGAElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   335 {
       
   336     return getDOMConstructor<JSSVGAElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   337 }
       
   338 
       
   339 EncodedJSValue JSC_HOST_CALL jsSVGAElementPrototypeFunctionHasExtension(ExecState* exec)
       
   340 {
       
   341     JSValue thisValue = exec->hostThisValue();
       
   342     if (!thisValue.inherits(&JSSVGAElement::s_info))
       
   343         return throwVMTypeError(exec);
       
   344     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(thisValue));
       
   345     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   346     const String& extension = ustringToString(exec->argument(0).toString(exec));
       
   347 
       
   348 
       
   349     JSC::JSValue result = jsBoolean(imp->hasExtension(extension));
       
   350     return JSValue::encode(result);
       
   351 }
       
   352 
       
   353 EncodedJSValue JSC_HOST_CALL jsSVGAElementPrototypeFunctionGetPresentationAttribute(ExecState* exec)
       
   354 {
       
   355     JSValue thisValue = exec->hostThisValue();
       
   356     if (!thisValue.inherits(&JSSVGAElement::s_info))
       
   357         return throwVMTypeError(exec);
       
   358     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(thisValue));
       
   359     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   360     const String& name = ustringToString(exec->argument(0).toString(exec));
       
   361 
       
   362 
       
   363     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getPresentationAttribute(name)));
       
   364     return JSValue::encode(result);
       
   365 }
       
   366 
       
   367 EncodedJSValue JSC_HOST_CALL jsSVGAElementPrototypeFunctionGetBBox(ExecState* exec)
       
   368 {
       
   369     JSValue thisValue = exec->hostThisValue();
       
   370     if (!thisValue.inherits(&JSSVGAElement::s_info))
       
   371         return throwVMTypeError(exec);
       
   372     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(thisValue));
       
   373     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   374 
       
   375 
       
   376     JSC::JSValue result = toJS(exec, castedThis->globalObject(), JSSVGStaticPODTypeWrapper<FloatRect>::create(imp->getBBox()).get(), 0 /* no context on purpose */);
       
   377     return JSValue::encode(result);
       
   378 }
       
   379 
       
   380 EncodedJSValue JSC_HOST_CALL jsSVGAElementPrototypeFunctionGetCTM(ExecState* exec)
       
   381 {
       
   382     JSValue thisValue = exec->hostThisValue();
       
   383     if (!thisValue.inherits(&JSSVGAElement::s_info))
       
   384         return throwVMTypeError(exec);
       
   385     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(thisValue));
       
   386     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   387 
       
   388 
       
   389     JSC::JSValue result = toJS(exec, castedThis->globalObject(), JSSVGStaticPODTypeWrapper<AffineTransform>::create(imp->getCTM()).get(), 0 /* no context on purpose */);
       
   390     return JSValue::encode(result);
       
   391 }
       
   392 
       
   393 EncodedJSValue JSC_HOST_CALL jsSVGAElementPrototypeFunctionGetScreenCTM(ExecState* exec)
       
   394 {
       
   395     JSValue thisValue = exec->hostThisValue();
       
   396     if (!thisValue.inherits(&JSSVGAElement::s_info))
       
   397         return throwVMTypeError(exec);
       
   398     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(thisValue));
       
   399     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   400 
       
   401 
       
   402     JSC::JSValue result = toJS(exec, castedThis->globalObject(), JSSVGStaticPODTypeWrapper<AffineTransform>::create(imp->getScreenCTM()).get(), 0 /* no context on purpose */);
       
   403     return JSValue::encode(result);
       
   404 }
       
   405 
       
   406 EncodedJSValue JSC_HOST_CALL jsSVGAElementPrototypeFunctionGetTransformToElement(ExecState* exec)
       
   407 {
       
   408     JSValue thisValue = exec->hostThisValue();
       
   409     if (!thisValue.inherits(&JSSVGAElement::s_info))
       
   410         return throwVMTypeError(exec);
       
   411     JSSVGAElement* castedThis = static_cast<JSSVGAElement*>(asObject(thisValue));
       
   412     SVGAElement* imp = static_cast<SVGAElement*>(castedThis->impl());
       
   413     ExceptionCode ec = 0;
       
   414     SVGElement* element = toSVGElement(exec->argument(0));
       
   415 
       
   416 
       
   417     JSC::JSValue result = toJS(exec, castedThis->globalObject(), JSSVGStaticPODTypeWrapper<AffineTransform>::create(imp->getTransformToElement(element, ec)).get(), 0 /* no context on purpose */);
       
   418     setDOMException(exec, ec);
       
   419     return JSValue::encode(result);
       
   420 }
       
   421 
       
   422 
       
   423 }
       
   424 
       
   425 #endif // ENABLE(SVG)