2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
22 #include "JSHTMLAnchorElement.h"
24 #include "ExceptionCode.h"
25 #include "HTMLAnchorElement.h"
26 #include "HTMLNames.h"
27 #include "JSDOMBinding.h"
29 #include <runtime/Error.h>
30 #include <runtime/JSString.h>
31 #include <wtf/GetPtr.h>
37 ASSERT_CLASS_FITS_IN_CELL(JSHTMLAnchorElement);
41 #define THUNK_GENERATOR(generator) , generator
43 #define THUNK_GENERATOR(generator)
46 #define INTRINSIC(intrinsic) , intrinsic
48 #define INTRINSIC(intrinsic)
51 static const HashTableValue JSHTMLAnchorElementTableValues[] =
53 { "charset", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementCharset), (intptr_t)setJSHTMLAnchorElementCharset THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
54 { "coords", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementCoords), (intptr_t)setJSHTMLAnchorElementCoords THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
55 #if ENABLE(DOWNLOAD_ATTRIBUTE)
56 { "download", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementDownload), (intptr_t)setJSHTMLAnchorElementDownload THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
58 { "href", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHref), (intptr_t)setJSHTMLAnchorElementHref THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
59 { "hreflang", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHreflang), (intptr_t)setJSHTMLAnchorElementHreflang THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
60 { "name", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementName), (intptr_t)setJSHTMLAnchorElementName THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
61 { "ping", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementPing), (intptr_t)setJSHTMLAnchorElementPing THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
62 { "rel", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementRel), (intptr_t)setJSHTMLAnchorElementRel THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
63 { "rev", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementRev), (intptr_t)setJSHTMLAnchorElementRev THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
64 { "shape", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementShape), (intptr_t)setJSHTMLAnchorElementShape THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
65 { "target", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementTarget), (intptr_t)setJSHTMLAnchorElementTarget THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
66 { "type", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementType), (intptr_t)setJSHTMLAnchorElementType THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
67 { "hash", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHash), (intptr_t)setJSHTMLAnchorElementHash THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
68 { "host", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHost), (intptr_t)setJSHTMLAnchorElementHost THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
69 { "hostname", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementHostname), (intptr_t)setJSHTMLAnchorElementHostname THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
70 { "pathname", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementPathname), (intptr_t)setJSHTMLAnchorElementPathname THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
71 { "port", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementPort), (intptr_t)setJSHTMLAnchorElementPort THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
72 { "protocol", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementProtocol), (intptr_t)setJSHTMLAnchorElementProtocol THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
73 { "search", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementSearch), (intptr_t)setJSHTMLAnchorElementSearch THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
74 { "origin", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementOrigin), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
75 { "text", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementText), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
76 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLAnchorElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
77 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
80 #undef THUNK_GENERATOR
81 static const HashTable JSHTMLAnchorElementTable = { 68, 63, JSHTMLAnchorElementTableValues, 0 };
82 /* Hash table for constructor */
84 #define THUNK_GENERATOR(generator) , generator
86 #define THUNK_GENERATOR(generator)
89 #define INTRINSIC(intrinsic) , intrinsic
91 #define INTRINSIC(intrinsic)
94 static const HashTableValue JSHTMLAnchorElementConstructorTableValues[] =
96 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
99 #undef THUNK_GENERATOR
100 static const HashTable JSHTMLAnchorElementConstructorTable = { 1, 0, JSHTMLAnchorElementConstructorTableValues, 0 };
101 const ClassInfo JSHTMLAnchorElementConstructor::s_info = { "HTMLAnchorElementConstructor", &DOMConstructorObject::s_info, &JSHTMLAnchorElementConstructorTable, 0, CREATE_METHOD_TABLE(JSHTMLAnchorElementConstructor) };
103 JSHTMLAnchorElementConstructor::JSHTMLAnchorElementConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
104 : DOMConstructorObject(structure, globalObject)
108 void JSHTMLAnchorElementConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
110 Base::finishCreation(exec->globalData());
111 ASSERT(inherits(&s_info));
112 putDirect(exec->globalData(), exec->propertyNames().prototype, JSHTMLAnchorElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
115 bool JSHTMLAnchorElementConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
117 return getStaticValueSlot<JSHTMLAnchorElementConstructor, JSDOMWrapper>(exec, &JSHTMLAnchorElementConstructorTable, static_cast<JSHTMLAnchorElementConstructor*>(cell), propertyName, slot);
120 bool JSHTMLAnchorElementConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
122 return getStaticValueDescriptor<JSHTMLAnchorElementConstructor, JSDOMWrapper>(exec, &JSHTMLAnchorElementConstructorTable, static_cast<JSHTMLAnchorElementConstructor*>(object), propertyName, descriptor);
125 /* Hash table for prototype */
127 #define THUNK_GENERATOR(generator) , generator
129 #define THUNK_GENERATOR(generator)
132 #define INTRINSIC(intrinsic) , intrinsic
134 #define INTRINSIC(intrinsic)
137 static const HashTableValue JSHTMLAnchorElementPrototypeTableValues[] =
139 { "toString", DontDelete | DontEnum | Function, (intptr_t)static_cast<NativeFunction>(jsHTMLAnchorElementPrototypeFunctionToString), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
140 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
143 #undef THUNK_GENERATOR
144 static const HashTable JSHTMLAnchorElementPrototypeTable = { 2, 1, JSHTMLAnchorElementPrototypeTableValues, 0 };
145 const ClassInfo JSHTMLAnchorElementPrototype::s_info = { "HTMLAnchorElementPrototype", &JSC::JSNonFinalObject::s_info, &JSHTMLAnchorElementPrototypeTable, 0, CREATE_METHOD_TABLE(JSHTMLAnchorElementPrototype) };
147 JSObject* JSHTMLAnchorElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
149 return getDOMPrototype<JSHTMLAnchorElement>(exec, globalObject);
152 bool JSHTMLAnchorElementPrototype::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
154 JSHTMLAnchorElementPrototype* thisObject = jsCast<JSHTMLAnchorElementPrototype*>(cell);
155 return getStaticFunctionSlot<JSObject>(exec, &JSHTMLAnchorElementPrototypeTable, thisObject, propertyName, slot);
158 bool JSHTMLAnchorElementPrototype::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
160 JSHTMLAnchorElementPrototype* thisObject = jsCast<JSHTMLAnchorElementPrototype*>(object);
161 return getStaticFunctionDescriptor<JSObject>(exec, &JSHTMLAnchorElementPrototypeTable, thisObject, propertyName, descriptor);
164 const ClassInfo JSHTMLAnchorElement::s_info = { "HTMLAnchorElement", &JSHTMLElement::s_info, &JSHTMLAnchorElementTable, 0 , CREATE_METHOD_TABLE(JSHTMLAnchorElement) };
166 JSHTMLAnchorElement::JSHTMLAnchorElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLAnchorElement> impl)
167 : JSHTMLElement(structure, globalObject, impl)
171 void JSHTMLAnchorElement::finishCreation(JSGlobalData& globalData)
173 Base::finishCreation(globalData);
174 ASSERT(inherits(&s_info));
177 JSObject* JSHTMLAnchorElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
179 return JSHTMLAnchorElementPrototype::create(exec->globalData(), globalObject, JSHTMLAnchorElementPrototype::createStructure(exec->globalData(), globalObject, JSHTMLElementPrototype::self(exec, globalObject)));
182 bool JSHTMLAnchorElement::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
184 JSHTMLAnchorElement* thisObject = jsCast<JSHTMLAnchorElement*>(cell);
185 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
186 return getStaticValueSlot<JSHTMLAnchorElement, Base>(exec, &JSHTMLAnchorElementTable, thisObject, propertyName, slot);
189 bool JSHTMLAnchorElement::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
191 JSHTMLAnchorElement* thisObject = jsCast<JSHTMLAnchorElement*>(object);
192 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
193 return getStaticValueDescriptor<JSHTMLAnchorElement, Base>(exec, &JSHTMLAnchorElementTable, thisObject, propertyName, descriptor);
196 JSValue jsHTMLAnchorElementCharset(ExecState* exec, JSValue slotBase, const Identifier&)
198 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
200 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
201 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::charsetAttr));
206 JSValue jsHTMLAnchorElementCoords(ExecState* exec, JSValue slotBase, const Identifier&)
208 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
210 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
211 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::coordsAttr));
216 #if ENABLE(DOWNLOAD_ATTRIBUTE)
217 JSValue jsHTMLAnchorElementDownload(ExecState* exec, JSValue slotBase, const Identifier&)
219 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
221 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
222 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::downloadAttr));
228 JSValue jsHTMLAnchorElementHref(ExecState* exec, JSValue slotBase, const Identifier&)
230 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
232 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
233 JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::hrefAttr));
238 JSValue jsHTMLAnchorElementHreflang(ExecState* exec, JSValue slotBase, const Identifier&)
240 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
242 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
243 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::hreflangAttr));
248 JSValue jsHTMLAnchorElementName(ExecState* exec, JSValue slotBase, const Identifier&)
250 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
252 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
253 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::nameAttr));
258 JSValue jsHTMLAnchorElementPing(ExecState* exec, JSValue slotBase, const Identifier&)
260 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
262 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
263 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::pingAttr));
268 JSValue jsHTMLAnchorElementRel(ExecState* exec, JSValue slotBase, const Identifier&)
270 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
272 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
273 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::relAttr));
278 JSValue jsHTMLAnchorElementRev(ExecState* exec, JSValue slotBase, const Identifier&)
280 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
282 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
283 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::revAttr));
288 JSValue jsHTMLAnchorElementShape(ExecState* exec, JSValue slotBase, const Identifier&)
290 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
292 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
293 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::shapeAttr));
298 JSValue jsHTMLAnchorElementTarget(ExecState* exec, JSValue slotBase, const Identifier&)
300 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
302 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
303 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::targetAttr));
308 JSValue jsHTMLAnchorElementType(ExecState* exec, JSValue slotBase, const Identifier&)
310 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
312 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
313 JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::typeAttr));
318 JSValue jsHTMLAnchorElementHash(ExecState* exec, JSValue slotBase, const Identifier&)
320 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
322 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
323 JSValue result = jsString(exec, imp->hash());
328 JSValue jsHTMLAnchorElementHost(ExecState* exec, JSValue slotBase, const Identifier&)
330 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
332 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
333 JSValue result = jsString(exec, imp->host());
338 JSValue jsHTMLAnchorElementHostname(ExecState* exec, JSValue slotBase, const Identifier&)
340 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
342 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
343 JSValue result = jsString(exec, imp->hostname());
348 JSValue jsHTMLAnchorElementPathname(ExecState* exec, JSValue slotBase, const Identifier&)
350 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
352 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
353 JSValue result = jsString(exec, imp->pathname());
358 JSValue jsHTMLAnchorElementPort(ExecState* exec, JSValue slotBase, const Identifier&)
360 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
362 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
363 JSValue result = jsString(exec, imp->port());
368 JSValue jsHTMLAnchorElementProtocol(ExecState* exec, JSValue slotBase, const Identifier&)
370 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
372 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
373 JSValue result = jsString(exec, imp->protocol());
378 JSValue jsHTMLAnchorElementSearch(ExecState* exec, JSValue slotBase, const Identifier&)
380 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
382 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
383 JSValue result = jsString(exec, imp->search());
388 JSValue jsHTMLAnchorElementOrigin(ExecState* exec, JSValue slotBase, const Identifier&)
390 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
392 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
393 JSValue result = jsString(exec, imp->origin());
398 JSValue jsHTMLAnchorElementText(ExecState* exec, JSValue slotBase, const Identifier&)
400 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
402 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
403 JSValue result = jsString(exec, imp->text());
408 JSValue jsHTMLAnchorElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
410 JSHTMLAnchorElement* domObject = static_cast<JSHTMLAnchorElement*>(asObject(slotBase));
411 return JSHTMLAnchorElement::getConstructor(exec, domObject->globalObject());
414 void JSHTMLAnchorElement::put(JSCell* cell, ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
416 JSHTMLAnchorElement* thisObject = jsCast<JSHTMLAnchorElement*>(cell);
417 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
418 lookupPut<JSHTMLAnchorElement, Base>(exec, propertyName, value, &JSHTMLAnchorElementTable, thisObject, slot);
421 void setJSHTMLAnchorElementCharset(ExecState* exec, JSObject* thisObject, JSValue value)
423 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
424 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
425 imp->setAttribute(WebCore::HTMLNames::charsetAttr, valueToStringWithNullCheck(exec, value));
429 void setJSHTMLAnchorElementCoords(ExecState* exec, JSObject* thisObject, JSValue value)
431 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
432 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
433 imp->setAttribute(WebCore::HTMLNames::coordsAttr, valueToStringWithNullCheck(exec, value));
437 #if ENABLE(DOWNLOAD_ATTRIBUTE)
438 void setJSHTMLAnchorElementDownload(ExecState* exec, JSObject* thisObject, JSValue value)
440 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
441 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
442 imp->setAttribute(WebCore::HTMLNames::downloadAttr, valueToStringWithNullCheck(exec, value));
447 void setJSHTMLAnchorElementHref(ExecState* exec, JSObject* thisObject, JSValue value)
449 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
450 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
451 imp->setAttribute(WebCore::HTMLNames::hrefAttr, valueToStringWithNullCheck(exec, value));
455 void setJSHTMLAnchorElementHreflang(ExecState* exec, JSObject* thisObject, JSValue value)
457 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
458 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
459 imp->setAttribute(WebCore::HTMLNames::hreflangAttr, valueToStringWithNullCheck(exec, value));
463 void setJSHTMLAnchorElementName(ExecState* exec, JSObject* thisObject, JSValue value)
465 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
466 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
467 imp->setAttribute(WebCore::HTMLNames::nameAttr, valueToStringWithNullCheck(exec, value));
471 void setJSHTMLAnchorElementPing(ExecState* exec, JSObject* thisObject, JSValue value)
473 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
474 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
475 imp->setAttribute(WebCore::HTMLNames::pingAttr, valueToStringWithNullCheck(exec, value));
479 void setJSHTMLAnchorElementRel(ExecState* exec, JSObject* thisObject, JSValue value)
481 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
482 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
483 imp->setAttribute(WebCore::HTMLNames::relAttr, valueToStringWithNullCheck(exec, value));
487 void setJSHTMLAnchorElementRev(ExecState* exec, JSObject* thisObject, JSValue value)
489 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
490 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
491 imp->setAttribute(WebCore::HTMLNames::revAttr, valueToStringWithNullCheck(exec, value));
495 void setJSHTMLAnchorElementShape(ExecState* exec, JSObject* thisObject, JSValue value)
497 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
498 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
499 imp->setAttribute(WebCore::HTMLNames::shapeAttr, valueToStringWithNullCheck(exec, value));
503 void setJSHTMLAnchorElementTarget(ExecState* exec, JSObject* thisObject, JSValue value)
505 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
506 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
507 imp->setAttribute(WebCore::HTMLNames::targetAttr, valueToStringWithNullCheck(exec, value));
511 void setJSHTMLAnchorElementType(ExecState* exec, JSObject* thisObject, JSValue value)
513 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
514 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
515 imp->setAttribute(WebCore::HTMLNames::typeAttr, valueToStringWithNullCheck(exec, value));
519 void setJSHTMLAnchorElementHash(ExecState* exec, JSObject* thisObject, JSValue value)
521 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
522 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
523 imp->setHash(valueToStringWithNullCheck(exec, value));
527 void setJSHTMLAnchorElementHost(ExecState* exec, JSObject* thisObject, JSValue value)
529 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
530 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
531 imp->setHost(valueToStringWithNullCheck(exec, value));
535 void setJSHTMLAnchorElementHostname(ExecState* exec, JSObject* thisObject, JSValue value)
537 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
538 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
539 imp->setHostname(valueToStringWithNullCheck(exec, value));
543 void setJSHTMLAnchorElementPathname(ExecState* exec, JSObject* thisObject, JSValue value)
545 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
546 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
547 imp->setPathname(valueToStringWithNullCheck(exec, value));
551 void setJSHTMLAnchorElementPort(ExecState* exec, JSObject* thisObject, JSValue value)
553 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
554 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
555 imp->setPort(valueToStringWithNullCheck(exec, value));
559 void setJSHTMLAnchorElementProtocol(ExecState* exec, JSObject* thisObject, JSValue value)
561 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
562 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
563 imp->setProtocol(valueToStringWithNullCheck(exec, value));
567 void setJSHTMLAnchorElementSearch(ExecState* exec, JSObject* thisObject, JSValue value)
569 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(thisObject);
570 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
571 imp->setSearch(valueToStringWithNullCheck(exec, value));
575 JSValue JSHTMLAnchorElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
577 return getDOMConstructor<JSHTMLAnchorElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
580 EncodedJSValue JSC_HOST_CALL jsHTMLAnchorElementPrototypeFunctionToString(ExecState* exec)
582 JSValue thisValue = exec->hostThisValue();
583 if (!thisValue.inherits(&JSHTMLAnchorElement::s_info))
584 return throwVMTypeError(exec);
585 JSHTMLAnchorElement* castedThis = static_cast<JSHTMLAnchorElement*>(asObject(thisValue));
586 ASSERT_GC_OBJECT_INHERITS(castedThis, &JSHTMLAnchorElement::s_info);
587 HTMLAnchorElement* imp = static_cast<HTMLAnchorElement*>(castedThis->impl());
589 JSC::JSValue result = jsString(exec, imp->toString());
590 return JSValue::encode(result);