WebCore/generated/JSHTMLAnchorElement.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 #include "JSHTMLAnchorElement.h"
       
    23 
       
    24 #include "HTMLAnchorElement.h"
       
    25 #include "HTMLNames.h"
       
    26 #include "KURL.h"
       
    27 #include <runtime/Error.h>
       
    28 #include <runtime/JSString.h>
       
    29 #include <wtf/GetPtr.h>
       
    30 
       
    31 using namespace JSC;
       
    32 
       
    33 namespace WebCore {
       
    34 
       
    35 ASSERT_CLASS_FITS_IN_CELL(JSHTMLAnchorElement);
       
    36 
       
    37 /* Hash table */
       
    38 #if ENABLE(JIT)
       
    39 #define THUNK_GENERATOR(generator) , generator
       
    40 #else
       
    41 #define THUNK_GENERATOR(generator)
       
    42 #endif
       
    43 
       
    44 static const HashTableValue JSHTMLAnchorElementTableValues[21] =
       
    45 {
       
    46     { "accessKey", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementAccessKey), (intptr_t)setJSHTMLAnchorElementAccessKey THUNK_GENERATOR(0) },
       
    47     { "charset", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementCharset), (intptr_t)setJSHTMLAnchorElementCharset THUNK_GENERATOR(0) },
       
    48     { "coords", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementCoords), (intptr_t)setJSHTMLAnchorElementCoords THUNK_GENERATOR(0) },
       
    49     { "href", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHref), (intptr_t)setJSHTMLAnchorElementHref THUNK_GENERATOR(0) },
       
    50     { "hreflang", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHreflang), (intptr_t)setJSHTMLAnchorElementHreflang THUNK_GENERATOR(0) },
       
    51     { "name", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementName), (intptr_t)setJSHTMLAnchorElementName THUNK_GENERATOR(0) },
       
    52     { "rel", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementRel), (intptr_t)setJSHTMLAnchorElementRel THUNK_GENERATOR(0) },
       
    53     { "rev", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementRev), (intptr_t)setJSHTMLAnchorElementRev THUNK_GENERATOR(0) },
       
    54     { "shape", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementShape), (intptr_t)setJSHTMLAnchorElementShape THUNK_GENERATOR(0) },
       
    55     { "target", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementTarget), (intptr_t)setJSHTMLAnchorElementTarget THUNK_GENERATOR(0) },
       
    56     { "type", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementType), (intptr_t)setJSHTMLAnchorElementType THUNK_GENERATOR(0) },
       
    57     { "hash", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHash), (intptr_t)setJSHTMLAnchorElementHash THUNK_GENERATOR(0) },
       
    58     { "host", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHost), (intptr_t)setJSHTMLAnchorElementHost THUNK_GENERATOR(0) },
       
    59     { "hostname", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHostname), (intptr_t)setJSHTMLAnchorElementHostname THUNK_GENERATOR(0) },
       
    60     { "pathname", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementPathname), (intptr_t)setJSHTMLAnchorElementPathname THUNK_GENERATOR(0) },
       
    61     { "port", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementPort), (intptr_t)setJSHTMLAnchorElementPort THUNK_GENERATOR(0) },
       
    62     { "protocol", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementProtocol), (intptr_t)setJSHTMLAnchorElementProtocol THUNK_GENERATOR(0) },
       
    63     { "search", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementSearch), (intptr_t)setJSHTMLAnchorElementSearch THUNK_GENERATOR(0) },
       
    64     { "text", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementText), (intptr_t)0 THUNK_GENERATOR(0) },
       
    65     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    66     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    67 };
       
    68 
       
    69 #undef THUNK_GENERATOR
       
    70 static JSC_CONST_HASHTABLE HashTable JSHTMLAnchorElementTable = { 67, 63, JSHTMLAnchorElementTableValues, 0 };
       
    71 /* Hash table for constructor */
       
    72 #if ENABLE(JIT)
       
    73 #define THUNK_GENERATOR(generator) , generator
       
    74 #else
       
    75 #define THUNK_GENERATOR(generator)
       
    76 #endif
       
    77 
       
    78 static const HashTableValue JSHTMLAnchorElementConstructorTableValues[1] =
       
    79 {
       
    80     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    81 };
       
    82 
       
    83 #undef THUNK_GENERATOR
       
    84 static JSC_CONST_HASHTABLE HashTable JSHTMLAnchorElementConstructorTable = { 1, 0, JSHTMLAnchorElementConstructorTableValues, 0 };
       
    85 class JSHTMLAnchorElementConstructor : public DOMConstructorObject {
       
    86 public:
       
    87     JSHTMLAnchorElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    88 
       
    89     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    90     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    91     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    92     static const JSC::ClassInfo s_info;
       
    93     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    94     {
       
    95         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    96     }
       
    97 protected:
       
    98     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
    99 };
       
   100 
       
   101 const ClassInfo JSHTMLAnchorElementConstructor::s_info = { "HTMLAnchorElementConstructor", 0, &JSHTMLAnchorElementConstructorTable, 0 };
       
   102 
       
   103 JSHTMLAnchorElementConstructor::JSHTMLAnchorElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   104     : DOMConstructorObject(JSHTMLAnchorElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   105 {
       
   106     putDirect(exec->propertyNames().prototype, JSHTMLAnchorElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   107 }
       
   108 
       
   109 bool JSHTMLAnchorElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   110 {
       
   111     return getStaticValueSlot<JSHTMLAnchorElementConstructor, DOMObject>(exec, &JSHTMLAnchorElementConstructorTable, this, propertyName, slot);
       
   112 }
       
   113 
       
   114 bool JSHTMLAnchorElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   115 {
       
   116     return getStaticValueDescriptor<JSHTMLAnchorElementConstructor, DOMObject>(exec, &JSHTMLAnchorElementConstructorTable, this, propertyName, descriptor);
       
   117 }
       
   118 
       
   119 /* Hash table for prototype */
       
   120 #if ENABLE(JIT)
       
   121 #define THUNK_GENERATOR(generator) , generator
       
   122 #else
       
   123 #define THUNK_GENERATOR(generator)
       
   124 #endif
       
   125 
       
   126 static const HashTableValue JSHTMLAnchorElementPrototypeTableValues[2] =
       
   127 {
       
   128     { "toString", DontDelete | DontEnum | Function, (intptr_t)static_cast<NativeFunction>(jsHTMLAnchorElementPrototypeFunctionToString), (intptr_t)0 THUNK_GENERATOR(0) },
       
   129     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   130 };
       
   131 
       
   132 #undef THUNK_GENERATOR
       
   133 static JSC_CONST_HASHTABLE HashTable JSHTMLAnchorElementPrototypeTable = { 2, 1, JSHTMLAnchorElementPrototypeTableValues, 0 };
       
   134 const ClassInfo JSHTMLAnchorElementPrototype::s_info = { "HTMLAnchorElementPrototype", 0, &JSHTMLAnchorElementPrototypeTable, 0 };
       
   135 
       
   136 JSObject* JSHTMLAnchorElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   137 {
       
   138     return getDOMPrototype<JSHTMLAnchorElement>(exec, globalObject);
       
   139 }
       
   140 
       
   141 bool JSHTMLAnchorElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   142 {
       
   143     return getStaticFunctionSlot<JSObject>(exec, &JSHTMLAnchorElementPrototypeTable, this, propertyName, slot);
       
   144 }
       
   145 
       
   146 bool JSHTMLAnchorElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   147 {
       
   148     return getStaticFunctionDescriptor<JSObject>(exec, &JSHTMLAnchorElementPrototypeTable, this, propertyName, descriptor);
       
   149 }
       
   150 
       
   151 const ClassInfo JSHTMLAnchorElement::s_info = { "HTMLAnchorElement", &JSHTMLElement::s_info, &JSHTMLAnchorElementTable, 0 };
       
   152 
       
   153 JSHTMLAnchorElement::JSHTMLAnchorElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLAnchorElement> impl)
       
   154     : JSHTMLElement(structure, globalObject, impl)
       
   155 {
       
   156 }
       
   157 
       
   158 JSObject* JSHTMLAnchorElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   159 {
       
   160     return new (exec) JSHTMLAnchorElementPrototype(globalObject, JSHTMLAnchorElementPrototype::createStructure(JSHTMLElementPrototype::self(exec, globalObject)));
       
   161 }
       
   162 
       
   163 bool JSHTMLAnchorElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   164 {
       
   165     return getStaticValueSlot<JSHTMLAnchorElement, Base>(exec, &JSHTMLAnchorElementTable, this, propertyName, slot);
       
   166 }
       
   167 
       
   168 bool JSHTMLAnchorElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   169 {
       
   170     return getStaticValueDescriptor<JSHTMLAnchorElement, Base>(exec, &JSHTMLAnchorElementTable, this, propertyName, descriptor);
       
   171 }
       
   172 
       
   173 JSValue jsHTMLAnchorElementAccessKey(ExecState* exec, JSValue slotBase, const Identifier&)
       
   174 {
       
   175     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   176     UNUSED_PARAM(exec);
       
   177     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   178     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::accesskeyAttr));
       
   179     return result;
       
   180 }
       
   181 
       
   182 JSValue jsHTMLAnchorElementCharset(ExecState* exec, JSValue slotBase, const Identifier&)
       
   183 {
       
   184     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   185     UNUSED_PARAM(exec);
       
   186     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   187     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::charsetAttr));
       
   188     return result;
       
   189 }
       
   190 
       
   191 JSValue jsHTMLAnchorElementCoords(ExecState* exec, JSValue slotBase, const Identifier&)
       
   192 {
       
   193     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   194     UNUSED_PARAM(exec);
       
   195     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   196     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::coordsAttr));
       
   197     return result;
       
   198 }
       
   199 
       
   200 JSValue jsHTMLAnchorElementHref(ExecState* exec, JSValue slotBase, const Identifier&)
       
   201 {
       
   202     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   203     UNUSED_PARAM(exec);
       
   204     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   205     JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::hrefAttr));
       
   206     return result;
       
   207 }
       
   208 
       
   209 JSValue jsHTMLAnchorElementHreflang(ExecState* exec, JSValue slotBase, const Identifier&)
       
   210 {
       
   211     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   212     UNUSED_PARAM(exec);
       
   213     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   214     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::hreflangAttr));
       
   215     return result;
       
   216 }
       
   217 
       
   218 JSValue jsHTMLAnchorElementName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   219 {
       
   220     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   221     UNUSED_PARAM(exec);
       
   222     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   223     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::nameAttr));
       
   224     return result;
       
   225 }
       
   226 
       
   227 JSValue jsHTMLAnchorElementRel(ExecState* exec, JSValue slotBase, const Identifier&)
       
   228 {
       
   229     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   230     UNUSED_PARAM(exec);
       
   231     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   232     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::relAttr));
       
   233     return result;
       
   234 }
       
   235 
       
   236 JSValue jsHTMLAnchorElementRev(ExecState* exec, JSValue slotBase, const Identifier&)
       
   237 {
       
   238     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   239     UNUSED_PARAM(exec);
       
   240     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   241     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::revAttr));
       
   242     return result;
       
   243 }
       
   244 
       
   245 JSValue jsHTMLAnchorElementShape(ExecState* exec, JSValue slotBase, const Identifier&)
       
   246 {
       
   247     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   248     UNUSED_PARAM(exec);
       
   249     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   250     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::shapeAttr));
       
   251     return result;
       
   252 }
       
   253 
       
   254 JSValue jsHTMLAnchorElementTarget(ExecState* exec, JSValue slotBase, const Identifier&)
       
   255 {
       
   256     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   257     UNUSED_PARAM(exec);
       
   258     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   259     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::targetAttr));
       
   260     return result;
       
   261 }
       
   262 
       
   263 JSValue jsHTMLAnchorElementType(ExecState* exec, JSValue slotBase, const Identifier&)
       
   264 {
       
   265     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   266     UNUSED_PARAM(exec);
       
   267     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   268     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::typeAttr));
       
   269     return result;
       
   270 }
       
   271 
       
   272 JSValue jsHTMLAnchorElementHash(ExecState* exec, JSValue slotBase, const Identifier&)
       
   273 {
       
   274     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   275     UNUSED_PARAM(exec);
       
   276     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   277     JSValue result = jsString(exec, imp->hash());
       
   278     return result;
       
   279 }
       
   280 
       
   281 JSValue jsHTMLAnchorElementHost(ExecState* exec, JSValue slotBase, const Identifier&)
       
   282 {
       
   283     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   284     UNUSED_PARAM(exec);
       
   285     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   286     JSValue result = jsString(exec, imp->host());
       
   287     return result;
       
   288 }
       
   289 
       
   290 JSValue jsHTMLAnchorElementHostname(ExecState* exec, JSValue slotBase, const Identifier&)
       
   291 {
       
   292     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   293     UNUSED_PARAM(exec);
       
   294     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   295     JSValue result = jsString(exec, imp->hostname());
       
   296     return result;
       
   297 }
       
   298 
       
   299 JSValue jsHTMLAnchorElementPathname(ExecState* exec, JSValue slotBase, const Identifier&)
       
   300 {
       
   301     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   302     UNUSED_PARAM(exec);
       
   303     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   304     JSValue result = jsString(exec, imp->pathname());
       
   305     return result;
       
   306 }
       
   307 
       
   308 JSValue jsHTMLAnchorElementPort(ExecState* exec, JSValue slotBase, const Identifier&)
       
   309 {
       
   310     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   311     UNUSED_PARAM(exec);
       
   312     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   313     JSValue result = jsString(exec, imp->port());
       
   314     return result;
       
   315 }
       
   316 
       
   317 JSValue jsHTMLAnchorElementProtocol(ExecState* exec, JSValue slotBase, const Identifier&)
       
   318 {
       
   319     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   320     UNUSED_PARAM(exec);
       
   321     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   322     JSValue result = jsString(exec, imp->protocol());
       
   323     return result;
       
   324 }
       
   325 
       
   326 JSValue jsHTMLAnchorElementSearch(ExecState* exec, JSValue slotBase, const Identifier&)
       
   327 {
       
   328     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   329     UNUSED_PARAM(exec);
       
   330     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   331     JSValue result = jsString(exec, imp->search());
       
   332     return result;
       
   333 }
       
   334 
       
   335 JSValue jsHTMLAnchorElementText(ExecState* exec, JSValue slotBase, const Identifier&)
       
   336 {
       
   337     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   338     UNUSED_PARAM(exec);
       
   339     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   340     JSValue result = jsString(exec, imp->text());
       
   341     return result;
       
   342 }
       
   343 
       
   344 JSValue jsHTMLAnchorElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   345 {
       
   346     JSHTMLAnchorElement* domObject = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
       
   347     return JSHTMLAnchorElement::getConstructor(exec, domObject->globalObject());
       
   348 }
       
   349 void JSHTMLAnchorElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   350 {
       
   351     lookupPut<JSHTMLAnchorElement, Base>(exec, propertyName, value, &JSHTMLAnchorElementTable, this, slot);
       
   352 }
       
   353 
       
   354 void setJSHTMLAnchorElementAccessKey(ExecState* exec, JSObject* thisObject, JSValue value)
       
   355 {
       
   356     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   357     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   358     imp->setAttribute(WebCore::HTMLNames::accesskeyAttr, valueToStringWithNullCheck(exec, value));
       
   359 }
       
   360 
       
   361 void setJSHTMLAnchorElementCharset(ExecState* exec, JSObject* thisObject, JSValue value)
       
   362 {
       
   363     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   364     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   365     imp->setAttribute(WebCore::HTMLNames::charsetAttr, valueToStringWithNullCheck(exec, value));
       
   366 }
       
   367 
       
   368 void setJSHTMLAnchorElementCoords(ExecState* exec, JSObject* thisObject, JSValue value)
       
   369 {
       
   370     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   371     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   372     imp->setAttribute(WebCore::HTMLNames::coordsAttr, valueToStringWithNullCheck(exec, value));
       
   373 }
       
   374 
       
   375 void setJSHTMLAnchorElementHref(ExecState* exec, JSObject* thisObject, JSValue value)
       
   376 {
       
   377     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   378     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   379     imp->setAttribute(WebCore::HTMLNames::hrefAttr, valueToStringWithNullCheck(exec, value));
       
   380 }
       
   381 
       
   382 void setJSHTMLAnchorElementHreflang(ExecState* exec, JSObject* thisObject, JSValue value)
       
   383 {
       
   384     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   385     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   386     imp->setAttribute(WebCore::HTMLNames::hreflangAttr, valueToStringWithNullCheck(exec, value));
       
   387 }
       
   388 
       
   389 void setJSHTMLAnchorElementName(ExecState* exec, JSObject* thisObject, JSValue value)
       
   390 {
       
   391     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   392     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   393     imp->setAttribute(WebCore::HTMLNames::nameAttr, valueToStringWithNullCheck(exec, value));
       
   394 }
       
   395 
       
   396 void setJSHTMLAnchorElementRel(ExecState* exec, JSObject* thisObject, JSValue value)
       
   397 {
       
   398     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   399     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   400     imp->setAttribute(WebCore::HTMLNames::relAttr, valueToStringWithNullCheck(exec, value));
       
   401 }
       
   402 
       
   403 void setJSHTMLAnchorElementRev(ExecState* exec, JSObject* thisObject, JSValue value)
       
   404 {
       
   405     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   406     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   407     imp->setAttribute(WebCore::HTMLNames::revAttr, valueToStringWithNullCheck(exec, value));
       
   408 }
       
   409 
       
   410 void setJSHTMLAnchorElementShape(ExecState* exec, JSObject* thisObject, JSValue value)
       
   411 {
       
   412     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   413     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   414     imp->setAttribute(WebCore::HTMLNames::shapeAttr, valueToStringWithNullCheck(exec, value));
       
   415 }
       
   416 
       
   417 void setJSHTMLAnchorElementTarget(ExecState* exec, JSObject* thisObject, JSValue value)
       
   418 {
       
   419     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   420     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   421     imp->setAttribute(WebCore::HTMLNames::targetAttr, valueToStringWithNullCheck(exec, value));
       
   422 }
       
   423 
       
   424 void setJSHTMLAnchorElementType(ExecState* exec, JSObject* thisObject, JSValue value)
       
   425 {
       
   426     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   427     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   428     imp->setAttribute(WebCore::HTMLNames::typeAttr, valueToStringWithNullCheck(exec, value));
       
   429 }
       
   430 
       
   431 void setJSHTMLAnchorElementHash(ExecState* exec, JSObject* thisObject, JSValue value)
       
   432 {
       
   433     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   434     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   435     imp->setHash(valueToStringWithNullCheck(exec, value));
       
   436 }
       
   437 
       
   438 void setJSHTMLAnchorElementHost(ExecState* exec, JSObject* thisObject, JSValue value)
       
   439 {
       
   440     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   441     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   442     imp->setHost(valueToStringWithNullCheck(exec, value));
       
   443 }
       
   444 
       
   445 void setJSHTMLAnchorElementHostname(ExecState* exec, JSObject* thisObject, JSValue value)
       
   446 {
       
   447     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   448     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   449     imp->setHostname(valueToStringWithNullCheck(exec, value));
       
   450 }
       
   451 
       
   452 void setJSHTMLAnchorElementPathname(ExecState* exec, JSObject* thisObject, JSValue value)
       
   453 {
       
   454     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   455     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   456     imp->setPathname(valueToStringWithNullCheck(exec, value));
       
   457 }
       
   458 
       
   459 void setJSHTMLAnchorElementPort(ExecState* exec, JSObject* thisObject, JSValue value)
       
   460 {
       
   461     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   462     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   463     imp->setPort(valueToStringWithNullCheck(exec, value));
       
   464 }
       
   465 
       
   466 void setJSHTMLAnchorElementProtocol(ExecState* exec, JSObject* thisObject, JSValue value)
       
   467 {
       
   468     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   469     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   470     imp->setProtocol(valueToStringWithNullCheck(exec, value));
       
   471 }
       
   472 
       
   473 void setJSHTMLAnchorElementSearch(ExecState* exec, JSObject* thisObject, JSValue value)
       
   474 {
       
   475     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
       
   476     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   477     imp->setSearch(valueToStringWithNullCheck(exec, value));
       
   478 }
       
   479 
       
   480 JSValue JSHTMLAnchorElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   481 {
       
   482     return getDOMConstructor<JSHTMLAnchorElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   483 }
       
   484 
       
   485 EncodedJSValue JSC_HOST_CALL jsHTMLAnchorElementPrototypeFunctionToString(ExecState* exec)
       
   486 {
       
   487     JSValue thisValue = exec->hostThisValue();
       
   488     if (!thisValue.inherits(&JSHTMLAnchorElement::s_info))
       
   489         return throwVMTypeError(exec);
       
   490     JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(thisValue));
       
   491     HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
       
   492 
       
   493 
       
   494     JSC::JSValue result = jsString(exec, imp->toString());
       
   495     return JSValue::encode(result);
       
   496 }
       
   497 
       
   498 
       
   499 }