WebCore/generated/JSHTMLObjectElement.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 "JSHTMLObjectElement.h"
       
    23 
       
    24 #include "Document.h"
       
    25 #include "HTMLFormElement.h"
       
    26 #include "HTMLNames.h"
       
    27 #include "HTMLObjectElement.h"
       
    28 #include "JSDOMBinding.h"
       
    29 #include "JSDocument.h"
       
    30 #include "JSHTMLFormElement.h"
       
    31 #include "JSHTMLObjectElementCustom.h"
       
    32 #include "JSSVGDocument.h"
       
    33 #include "KURL.h"
       
    34 #include "SVGDocument.h"
       
    35 #include <runtime/Error.h>
       
    36 #include <runtime/JSNumberCell.h>
       
    37 #include <runtime/JSString.h>
       
    38 #include <wtf/GetPtr.h>
       
    39 
       
    40 using namespace JSC;
       
    41 
       
    42 namespace WebCore {
       
    43 
       
    44 ASSERT_CLASS_FITS_IN_CELL(JSHTMLObjectElement);
       
    45 
       
    46 /* Hash table */
       
    47 #if ENABLE(JIT)
       
    48 #define THUNK_GENERATOR(generator) , generator
       
    49 #else
       
    50 #define THUNK_GENERATOR(generator)
       
    51 #endif
       
    52 
       
    53 static const HashTableValue JSHTMLObjectElementTableValues[21] =
       
    54 {
       
    55     { "form", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementForm), (intptr_t)0 THUNK_GENERATOR(0) },
       
    56     { "code", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementCode), (intptr_t)setJSHTMLObjectElementCode THUNK_GENERATOR(0) },
       
    57     { "align", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementAlign), (intptr_t)setJSHTMLObjectElementAlign THUNK_GENERATOR(0) },
       
    58     { "archive", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementArchive), (intptr_t)setJSHTMLObjectElementArchive THUNK_GENERATOR(0) },
       
    59     { "border", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementBorder), (intptr_t)setJSHTMLObjectElementBorder THUNK_GENERATOR(0) },
       
    60     { "codeBase", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementCodeBase), (intptr_t)setJSHTMLObjectElementCodeBase THUNK_GENERATOR(0) },
       
    61     { "codeType", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementCodeType), (intptr_t)setJSHTMLObjectElementCodeType THUNK_GENERATOR(0) },
       
    62     { "data", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementData), (intptr_t)setJSHTMLObjectElementData THUNK_GENERATOR(0) },
       
    63     { "declare", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementDeclare), (intptr_t)setJSHTMLObjectElementDeclare THUNK_GENERATOR(0) },
       
    64     { "height", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementHeight), (intptr_t)setJSHTMLObjectElementHeight THUNK_GENERATOR(0) },
       
    65     { "hspace", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementHspace), (intptr_t)setJSHTMLObjectElementHspace THUNK_GENERATOR(0) },
       
    66     { "name", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementName), (intptr_t)setJSHTMLObjectElementName THUNK_GENERATOR(0) },
       
    67     { "standby", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementStandby), (intptr_t)setJSHTMLObjectElementStandby THUNK_GENERATOR(0) },
       
    68     { "type", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementType), (intptr_t)setJSHTMLObjectElementType THUNK_GENERATOR(0) },
       
    69     { "useMap", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementUseMap), (intptr_t)setJSHTMLObjectElementUseMap THUNK_GENERATOR(0) },
       
    70     { "vspace", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementVspace), (intptr_t)setJSHTMLObjectElementVspace THUNK_GENERATOR(0) },
       
    71     { "width", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementWidth), (intptr_t)setJSHTMLObjectElementWidth THUNK_GENERATOR(0) },
       
    72     { "willValidate", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementWillValidate), (intptr_t)0 THUNK_GENERATOR(0) },
       
    73     { "contentDocument", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementContentDocument), (intptr_t)0 THUNK_GENERATOR(0) },
       
    74     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLObjectElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    75     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    76 };
       
    77 
       
    78 #undef THUNK_GENERATOR
       
    79 static JSC_CONST_HASHTABLE HashTable JSHTMLObjectElementTable = { 66, 63, JSHTMLObjectElementTableValues, 0 };
       
    80 /* Hash table for constructor */
       
    81 #if ENABLE(JIT)
       
    82 #define THUNK_GENERATOR(generator) , generator
       
    83 #else
       
    84 #define THUNK_GENERATOR(generator)
       
    85 #endif
       
    86 
       
    87 static const HashTableValue JSHTMLObjectElementConstructorTableValues[1] =
       
    88 {
       
    89     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    90 };
       
    91 
       
    92 #undef THUNK_GENERATOR
       
    93 static JSC_CONST_HASHTABLE HashTable JSHTMLObjectElementConstructorTable = { 1, 0, JSHTMLObjectElementConstructorTableValues, 0 };
       
    94 class JSHTMLObjectElementConstructor : public DOMConstructorObject {
       
    95 public:
       
    96     JSHTMLObjectElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    97 
       
    98     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    99     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
   100     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
   101     static const JSC::ClassInfo s_info;
       
   102     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
   103     {
       
   104         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
   105     }
       
   106 protected:
       
   107     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
   108 };
       
   109 
       
   110 const ClassInfo JSHTMLObjectElementConstructor::s_info = { "HTMLObjectElementConstructor", 0, &JSHTMLObjectElementConstructorTable, 0 };
       
   111 
       
   112 JSHTMLObjectElementConstructor::JSHTMLObjectElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   113     : DOMConstructorObject(JSHTMLObjectElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   114 {
       
   115     putDirect(exec->propertyNames().prototype, JSHTMLObjectElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   116 }
       
   117 
       
   118 bool JSHTMLObjectElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   119 {
       
   120     return getStaticValueSlot<JSHTMLObjectElementConstructor, DOMObject>(exec, &JSHTMLObjectElementConstructorTable, this, propertyName, slot);
       
   121 }
       
   122 
       
   123 bool JSHTMLObjectElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   124 {
       
   125     return getStaticValueDescriptor<JSHTMLObjectElementConstructor, DOMObject>(exec, &JSHTMLObjectElementConstructorTable, this, propertyName, descriptor);
       
   126 }
       
   127 
       
   128 /* Hash table for prototype */
       
   129 #if ENABLE(JIT)
       
   130 #define THUNK_GENERATOR(generator) , generator
       
   131 #else
       
   132 #define THUNK_GENERATOR(generator)
       
   133 #endif
       
   134 
       
   135 static const HashTableValue JSHTMLObjectElementPrototypeTableValues[2] =
       
   136 {
       
   137     { "getSVGDocument", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsHTMLObjectElementPrototypeFunctionGetSVGDocument), (intptr_t)0 THUNK_GENERATOR(0) },
       
   138     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   139 };
       
   140 
       
   141 #undef THUNK_GENERATOR
       
   142 static JSC_CONST_HASHTABLE HashTable JSHTMLObjectElementPrototypeTable = { 2, 1, JSHTMLObjectElementPrototypeTableValues, 0 };
       
   143 const ClassInfo JSHTMLObjectElementPrototype::s_info = { "HTMLObjectElementPrototype", 0, &JSHTMLObjectElementPrototypeTable, 0 };
       
   144 
       
   145 JSObject* JSHTMLObjectElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   146 {
       
   147     return getDOMPrototype<JSHTMLObjectElement>(exec, globalObject);
       
   148 }
       
   149 
       
   150 bool JSHTMLObjectElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   151 {
       
   152     return getStaticFunctionSlot<JSObject>(exec, &JSHTMLObjectElementPrototypeTable, this, propertyName, slot);
       
   153 }
       
   154 
       
   155 bool JSHTMLObjectElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   156 {
       
   157     return getStaticFunctionDescriptor<JSObject>(exec, &JSHTMLObjectElementPrototypeTable, this, propertyName, descriptor);
       
   158 }
       
   159 
       
   160 const ClassInfo JSHTMLObjectElement::s_info = { "HTMLObjectElement", &JSHTMLElement::s_info, &JSHTMLObjectElementTable, 0 };
       
   161 
       
   162 JSHTMLObjectElement::JSHTMLObjectElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLObjectElement> impl)
       
   163     : JSHTMLElement(structure, globalObject, impl)
       
   164 {
       
   165 }
       
   166 
       
   167 JSObject* JSHTMLObjectElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   168 {
       
   169     return new (exec) JSHTMLObjectElementPrototype(globalObject, JSHTMLObjectElementPrototype::createStructure(JSHTMLElementPrototype::self(exec, globalObject)));
       
   170 }
       
   171 
       
   172 bool JSHTMLObjectElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   173 {
       
   174     if (getOwnPropertySlotDelegate(exec, propertyName, slot))
       
   175         return true;
       
   176     return getStaticValueSlot<JSHTMLObjectElement, Base>(exec, &JSHTMLObjectElementTable, this, propertyName, slot);
       
   177 }
       
   178 
       
   179 bool JSHTMLObjectElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   180 {
       
   181     if (getOwnPropertyDescriptorDelegate(exec, propertyName, descriptor))
       
   182         return true;
       
   183     return getStaticValueDescriptor<JSHTMLObjectElement, Base>(exec, &JSHTMLObjectElementTable, this, propertyName, descriptor);
       
   184 }
       
   185 
       
   186 JSValue jsHTMLObjectElementForm(ExecState* exec, JSValue slotBase, const Identifier&)
       
   187 {
       
   188     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   189     UNUSED_PARAM(exec);
       
   190     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   191     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->form()));
       
   192     return result;
       
   193 }
       
   194 
       
   195 JSValue jsHTMLObjectElementCode(ExecState* exec, JSValue slotBase, const Identifier&)
       
   196 {
       
   197     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   198     UNUSED_PARAM(exec);
       
   199     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   200     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::codeAttr));
       
   201     return result;
       
   202 }
       
   203 
       
   204 JSValue jsHTMLObjectElementAlign(ExecState* exec, JSValue slotBase, const Identifier&)
       
   205 {
       
   206     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   207     UNUSED_PARAM(exec);
       
   208     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   209     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::alignAttr));
       
   210     return result;
       
   211 }
       
   212 
       
   213 JSValue jsHTMLObjectElementArchive(ExecState* exec, JSValue slotBase, const Identifier&)
       
   214 {
       
   215     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   216     UNUSED_PARAM(exec);
       
   217     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   218     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::archiveAttr));
       
   219     return result;
       
   220 }
       
   221 
       
   222 JSValue jsHTMLObjectElementBorder(ExecState* exec, JSValue slotBase, const Identifier&)
       
   223 {
       
   224     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   225     UNUSED_PARAM(exec);
       
   226     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   227     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::borderAttr));
       
   228     return result;
       
   229 }
       
   230 
       
   231 JSValue jsHTMLObjectElementCodeBase(ExecState* exec, JSValue slotBase, const Identifier&)
       
   232 {
       
   233     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   234     UNUSED_PARAM(exec);
       
   235     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   236     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::codebaseAttr));
       
   237     return result;
       
   238 }
       
   239 
       
   240 JSValue jsHTMLObjectElementCodeType(ExecState* exec, JSValue slotBase, const Identifier&)
       
   241 {
       
   242     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   243     UNUSED_PARAM(exec);
       
   244     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   245     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::codetypeAttr));
       
   246     return result;
       
   247 }
       
   248 
       
   249 JSValue jsHTMLObjectElementData(ExecState* exec, JSValue slotBase, const Identifier&)
       
   250 {
       
   251     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   252     UNUSED_PARAM(exec);
       
   253     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   254     JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::dataAttr));
       
   255     return result;
       
   256 }
       
   257 
       
   258 JSValue jsHTMLObjectElementDeclare(ExecState* exec, JSValue slotBase, const Identifier&)
       
   259 {
       
   260     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   261     UNUSED_PARAM(exec);
       
   262     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   263     JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::declareAttr));
       
   264     return result;
       
   265 }
       
   266 
       
   267 JSValue jsHTMLObjectElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
       
   268 {
       
   269     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   270     UNUSED_PARAM(exec);
       
   271     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   272     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::heightAttr));
       
   273     return result;
       
   274 }
       
   275 
       
   276 JSValue jsHTMLObjectElementHspace(ExecState* exec, JSValue slotBase, const Identifier&)
       
   277 {
       
   278     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   279     UNUSED_PARAM(exec);
       
   280     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   281     JSValue result = jsNumber(exec, imp->getIntegralAttribute(WebCore::HTMLNames::hspaceAttr));
       
   282     return result;
       
   283 }
       
   284 
       
   285 JSValue jsHTMLObjectElementName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   286 {
       
   287     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   288     UNUSED_PARAM(exec);
       
   289     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   290     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::nameAttr));
       
   291     return result;
       
   292 }
       
   293 
       
   294 JSValue jsHTMLObjectElementStandby(ExecState* exec, JSValue slotBase, const Identifier&)
       
   295 {
       
   296     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   297     UNUSED_PARAM(exec);
       
   298     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   299     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::standbyAttr));
       
   300     return result;
       
   301 }
       
   302 
       
   303 JSValue jsHTMLObjectElementType(ExecState* exec, JSValue slotBase, const Identifier&)
       
   304 {
       
   305     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   306     UNUSED_PARAM(exec);
       
   307     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   308     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::typeAttr));
       
   309     return result;
       
   310 }
       
   311 
       
   312 JSValue jsHTMLObjectElementUseMap(ExecState* exec, JSValue slotBase, const Identifier&)
       
   313 {
       
   314     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   315     UNUSED_PARAM(exec);
       
   316     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   317     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::usemapAttr));
       
   318     return result;
       
   319 }
       
   320 
       
   321 JSValue jsHTMLObjectElementVspace(ExecState* exec, JSValue slotBase, const Identifier&)
       
   322 {
       
   323     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   324     UNUSED_PARAM(exec);
       
   325     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   326     JSValue result = jsNumber(exec, imp->getIntegralAttribute(WebCore::HTMLNames::vspaceAttr));
       
   327     return result;
       
   328 }
       
   329 
       
   330 JSValue jsHTMLObjectElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
       
   331 {
       
   332     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   333     UNUSED_PARAM(exec);
       
   334     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   335     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::widthAttr));
       
   336     return result;
       
   337 }
       
   338 
       
   339 JSValue jsHTMLObjectElementWillValidate(ExecState* exec, JSValue slotBase, const Identifier&)
       
   340 {
       
   341     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   342     UNUSED_PARAM(exec);
       
   343     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   344     JSValue result = jsBoolean(imp->willValidate());
       
   345     return result;
       
   346 }
       
   347 
       
   348 JSValue jsHTMLObjectElementContentDocument(ExecState* exec, JSValue slotBase, const Identifier&)
       
   349 {
       
   350     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   351     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   352     return checkNodeSecurity(exec, imp->contentDocument()) ? toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentDocument())) : jsUndefined();
       
   353 }
       
   354 
       
   355 JSValue jsHTMLObjectElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   356 {
       
   357     JSHTMLObjectElement* domObject = static_cast<JSHTMLObjectElement*>(asObject(slotBase));
       
   358     return JSHTMLObjectElement::getConstructor(exec, domObject->globalObject());
       
   359 }
       
   360 void JSHTMLObjectElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   361 {
       
   362     if (putDelegate(exec, propertyName, value, slot))
       
   363         return;
       
   364     lookupPut<JSHTMLObjectElement, Base>(exec, propertyName, value, &JSHTMLObjectElementTable, this, slot);
       
   365 }
       
   366 
       
   367 void setJSHTMLObjectElementCode(ExecState* exec, JSObject* thisObject, JSValue value)
       
   368 {
       
   369     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   370     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   371     imp->setAttribute(WebCore::HTMLNames::codeAttr, valueToStringWithNullCheck(exec, value));
       
   372 }
       
   373 
       
   374 void setJSHTMLObjectElementAlign(ExecState* exec, JSObject* thisObject, JSValue value)
       
   375 {
       
   376     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   377     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   378     imp->setAttribute(WebCore::HTMLNames::alignAttr, valueToStringWithNullCheck(exec, value));
       
   379 }
       
   380 
       
   381 void setJSHTMLObjectElementArchive(ExecState* exec, JSObject* thisObject, JSValue value)
       
   382 {
       
   383     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   384     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   385     imp->setAttribute(WebCore::HTMLNames::archiveAttr, valueToStringWithNullCheck(exec, value));
       
   386 }
       
   387 
       
   388 void setJSHTMLObjectElementBorder(ExecState* exec, JSObject* thisObject, JSValue value)
       
   389 {
       
   390     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   391     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   392     imp->setAttribute(WebCore::HTMLNames::borderAttr, valueToStringWithNullCheck(exec, value));
       
   393 }
       
   394 
       
   395 void setJSHTMLObjectElementCodeBase(ExecState* exec, JSObject* thisObject, JSValue value)
       
   396 {
       
   397     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   398     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   399     imp->setAttribute(WebCore::HTMLNames::codebaseAttr, valueToStringWithNullCheck(exec, value));
       
   400 }
       
   401 
       
   402 void setJSHTMLObjectElementCodeType(ExecState* exec, JSObject* thisObject, JSValue value)
       
   403 {
       
   404     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   405     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   406     imp->setAttribute(WebCore::HTMLNames::codetypeAttr, valueToStringWithNullCheck(exec, value));
       
   407 }
       
   408 
       
   409 void setJSHTMLObjectElementData(ExecState* exec, JSObject* thisObject, JSValue value)
       
   410 {
       
   411     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   412     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   413     imp->setAttribute(WebCore::HTMLNames::dataAttr, valueToStringWithNullCheck(exec, value));
       
   414 }
       
   415 
       
   416 void setJSHTMLObjectElementDeclare(ExecState* exec, JSObject* thisObject, JSValue value)
       
   417 {
       
   418     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   419     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   420     imp->setBooleanAttribute(WebCore::HTMLNames::declareAttr, value.toBoolean(exec));
       
   421 }
       
   422 
       
   423 void setJSHTMLObjectElementHeight(ExecState* exec, JSObject* thisObject, JSValue value)
       
   424 {
       
   425     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   426     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   427     imp->setAttribute(WebCore::HTMLNames::heightAttr, valueToStringWithNullCheck(exec, value));
       
   428 }
       
   429 
       
   430 void setJSHTMLObjectElementHspace(ExecState* exec, JSObject* thisObject, JSValue value)
       
   431 {
       
   432     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   433     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   434     imp->setIntegralAttribute(WebCore::HTMLNames::hspaceAttr, value.toInt32(exec));
       
   435 }
       
   436 
       
   437 void setJSHTMLObjectElementName(ExecState* exec, JSObject* thisObject, JSValue value)
       
   438 {
       
   439     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   440     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   441     imp->setAttribute(WebCore::HTMLNames::nameAttr, valueToStringWithNullCheck(exec, value));
       
   442 }
       
   443 
       
   444 void setJSHTMLObjectElementStandby(ExecState* exec, JSObject* thisObject, JSValue value)
       
   445 {
       
   446     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   447     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   448     imp->setAttribute(WebCore::HTMLNames::standbyAttr, valueToStringWithNullCheck(exec, value));
       
   449 }
       
   450 
       
   451 void setJSHTMLObjectElementType(ExecState* exec, JSObject* thisObject, JSValue value)
       
   452 {
       
   453     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   454     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   455     imp->setAttribute(WebCore::HTMLNames::typeAttr, valueToStringWithNullCheck(exec, value));
       
   456 }
       
   457 
       
   458 void setJSHTMLObjectElementUseMap(ExecState* exec, JSObject* thisObject, JSValue value)
       
   459 {
       
   460     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   461     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   462     imp->setAttribute(WebCore::HTMLNames::usemapAttr, valueToStringWithNullCheck(exec, value));
       
   463 }
       
   464 
       
   465 void setJSHTMLObjectElementVspace(ExecState* exec, JSObject* thisObject, JSValue value)
       
   466 {
       
   467     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   468     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   469     imp->setIntegralAttribute(WebCore::HTMLNames::vspaceAttr, value.toInt32(exec));
       
   470 }
       
   471 
       
   472 void setJSHTMLObjectElementWidth(ExecState* exec, JSObject* thisObject, JSValue value)
       
   473 {
       
   474     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(thisObject);
       
   475     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   476     imp->setAttribute(WebCore::HTMLNames::widthAttr, valueToStringWithNullCheck(exec, value));
       
   477 }
       
   478 
       
   479 JSValue JSHTMLObjectElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   480 {
       
   481     return getDOMConstructor<JSHTMLObjectElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   482 }
       
   483 
       
   484 EncodedJSValue JSC_HOST_CALL jsHTMLObjectElementPrototypeFunctionGetSVGDocument(ExecState* exec)
       
   485 {
       
   486     JSValue thisValue = exec->hostThisValue();
       
   487     if (!thisValue.inherits(&JSHTMLObjectElement::s_info))
       
   488         return throwVMTypeError(exec);
       
   489     JSHTMLObjectElement* castedThis = static_cast<JSHTMLObjectElement*>(asObject(thisValue));
       
   490     HTMLObjectElement* imp = static_cast<HTMLObjectElement*>(castedThis->impl());
       
   491     ExceptionCode ec = 0;
       
   492     if (!checkNodeSecurity(exec, imp->getSVGDocument(ec)))
       
   493         return JSValue::encode(jsUndefined());
       
   494 
       
   495 
       
   496     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getSVGDocument(ec)));
       
   497     setDOMException(exec, ec);
       
   498     return JSValue::encode(result);
       
   499 }
       
   500 
       
   501 
       
   502 }