WebCore/generated/JSHTMLFrameElement.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 "JSHTMLFrameElement.h"
       
    23 
       
    24 #include "DOMWindow.h"
       
    25 #include "Document.h"
       
    26 #include "HTMLFrameElement.h"
       
    27 #include "HTMLNames.h"
       
    28 #include "JSDOMBinding.h"
       
    29 #include "JSDOMWindow.h"
       
    30 #include "JSDocument.h"
       
    31 #include "JSSVGDocument.h"
       
    32 #include "KURL.h"
       
    33 #include "SVGDocument.h"
       
    34 #include <runtime/Error.h>
       
    35 #include <runtime/JSNumberCell.h>
       
    36 #include <runtime/JSString.h>
       
    37 #include <wtf/GetPtr.h>
       
    38 
       
    39 using namespace JSC;
       
    40 
       
    41 namespace WebCore {
       
    42 
       
    43 ASSERT_CLASS_FITS_IN_CELL(JSHTMLFrameElement);
       
    44 
       
    45 /* Hash table */
       
    46 #if ENABLE(JIT)
       
    47 #define THUNK_GENERATOR(generator) , generator
       
    48 #else
       
    49 #define THUNK_GENERATOR(generator)
       
    50 #endif
       
    51 
       
    52 static const HashTableValue JSHTMLFrameElementTableValues[15] =
       
    53 {
       
    54     { "frameBorder", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementFrameBorder), (intptr_t)setJSHTMLFrameElementFrameBorder THUNK_GENERATOR(0) },
       
    55     { "longDesc", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementLongDesc), (intptr_t)setJSHTMLFrameElementLongDesc THUNK_GENERATOR(0) },
       
    56     { "marginHeight", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementMarginHeight), (intptr_t)setJSHTMLFrameElementMarginHeight THUNK_GENERATOR(0) },
       
    57     { "marginWidth", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementMarginWidth), (intptr_t)setJSHTMLFrameElementMarginWidth THUNK_GENERATOR(0) },
       
    58     { "name", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementName), (intptr_t)setJSHTMLFrameElementName THUNK_GENERATOR(0) },
       
    59     { "noResize", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementNoResize), (intptr_t)setJSHTMLFrameElementNoResize THUNK_GENERATOR(0) },
       
    60     { "scrolling", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementScrolling), (intptr_t)setJSHTMLFrameElementScrolling THUNK_GENERATOR(0) },
       
    61     { "src", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementSrc), (intptr_t)setJSHTMLFrameElementSrc THUNK_GENERATOR(0) },
       
    62     { "contentDocument", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementContentDocument), (intptr_t)0 THUNK_GENERATOR(0) },
       
    63     { "contentWindow", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementContentWindow), (intptr_t)0 THUNK_GENERATOR(0) },
       
    64     { "location", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementLocation), (intptr_t)setJSHTMLFrameElementLocation THUNK_GENERATOR(0) },
       
    65     { "width", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementWidth), (intptr_t)0 THUNK_GENERATOR(0) },
       
    66     { "height", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementHeight), (intptr_t)0 THUNK_GENERATOR(0) },
       
    67     { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLFrameElementConstructor), (intptr_t)0 THUNK_GENERATOR(0) },
       
    68     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    69 };
       
    70 
       
    71 #undef THUNK_GENERATOR
       
    72 static JSC_CONST_HASHTABLE HashTable JSHTMLFrameElementTable = { 36, 31, JSHTMLFrameElementTableValues, 0 };
       
    73 /* Hash table for constructor */
       
    74 #if ENABLE(JIT)
       
    75 #define THUNK_GENERATOR(generator) , generator
       
    76 #else
       
    77 #define THUNK_GENERATOR(generator)
       
    78 #endif
       
    79 
       
    80 static const HashTableValue JSHTMLFrameElementConstructorTableValues[1] =
       
    81 {
       
    82     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
    83 };
       
    84 
       
    85 #undef THUNK_GENERATOR
       
    86 static JSC_CONST_HASHTABLE HashTable JSHTMLFrameElementConstructorTable = { 1, 0, JSHTMLFrameElementConstructorTableValues, 0 };
       
    87 class JSHTMLFrameElementConstructor : public DOMConstructorObject {
       
    88 public:
       
    89     JSHTMLFrameElementConstructor(JSC::ExecState*, JSDOMGlobalObject*);
       
    90 
       
    91     virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
       
    92     virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
       
    93     virtual const JSC::ClassInfo* classInfo() const { return &s_info; }
       
    94     static const JSC::ClassInfo s_info;
       
    95     static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype)
       
    96     {
       
    97         return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount);
       
    98     }
       
    99 protected:
       
   100     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
       
   101 };
       
   102 
       
   103 const ClassInfo JSHTMLFrameElementConstructor::s_info = { "HTMLFrameElementConstructor", 0, &JSHTMLFrameElementConstructorTable, 0 };
       
   104 
       
   105 JSHTMLFrameElementConstructor::JSHTMLFrameElementConstructor(ExecState* exec, JSDOMGlobalObject* globalObject)
       
   106     : DOMConstructorObject(JSHTMLFrameElementConstructor::createStructure(globalObject->objectPrototype()), globalObject)
       
   107 {
       
   108     putDirect(exec->propertyNames().prototype, JSHTMLFrameElementPrototype::self(exec, globalObject), DontDelete | ReadOnly);
       
   109 }
       
   110 
       
   111 bool JSHTMLFrameElementConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   112 {
       
   113     return getStaticValueSlot<JSHTMLFrameElementConstructor, DOMObject>(exec, &JSHTMLFrameElementConstructorTable, this, propertyName, slot);
       
   114 }
       
   115 
       
   116 bool JSHTMLFrameElementConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   117 {
       
   118     return getStaticValueDescriptor<JSHTMLFrameElementConstructor, DOMObject>(exec, &JSHTMLFrameElementConstructorTable, this, propertyName, descriptor);
       
   119 }
       
   120 
       
   121 /* Hash table for prototype */
       
   122 #if ENABLE(JIT)
       
   123 #define THUNK_GENERATOR(generator) , generator
       
   124 #else
       
   125 #define THUNK_GENERATOR(generator)
       
   126 #endif
       
   127 
       
   128 static const HashTableValue JSHTMLFrameElementPrototypeTableValues[2] =
       
   129 {
       
   130     { "getSVGDocument", DontDelete | Function, (intptr_t)static_cast<NativeFunction>(jsHTMLFrameElementPrototypeFunctionGetSVGDocument), (intptr_t)0 THUNK_GENERATOR(0) },
       
   131     { 0, 0, 0, 0 THUNK_GENERATOR(0) }
       
   132 };
       
   133 
       
   134 #undef THUNK_GENERATOR
       
   135 static JSC_CONST_HASHTABLE HashTable JSHTMLFrameElementPrototypeTable = { 2, 1, JSHTMLFrameElementPrototypeTableValues, 0 };
       
   136 const ClassInfo JSHTMLFrameElementPrototype::s_info = { "HTMLFrameElementPrototype", 0, &JSHTMLFrameElementPrototypeTable, 0 };
       
   137 
       
   138 JSObject* JSHTMLFrameElementPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
       
   139 {
       
   140     return getDOMPrototype<JSHTMLFrameElement>(exec, globalObject);
       
   141 }
       
   142 
       
   143 bool JSHTMLFrameElementPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   144 {
       
   145     return getStaticFunctionSlot<JSObject>(exec, &JSHTMLFrameElementPrototypeTable, this, propertyName, slot);
       
   146 }
       
   147 
       
   148 bool JSHTMLFrameElementPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   149 {
       
   150     return getStaticFunctionDescriptor<JSObject>(exec, &JSHTMLFrameElementPrototypeTable, this, propertyName, descriptor);
       
   151 }
       
   152 
       
   153 const ClassInfo JSHTMLFrameElement::s_info = { "HTMLFrameElement", &JSHTMLElement::s_info, &JSHTMLFrameElementTable, 0 };
       
   154 
       
   155 JSHTMLFrameElement::JSHTMLFrameElement(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLFrameElement> impl)
       
   156     : JSHTMLElement(structure, globalObject, impl)
       
   157 {
       
   158 }
       
   159 
       
   160 JSObject* JSHTMLFrameElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
       
   161 {
       
   162     return new (exec) JSHTMLFrameElementPrototype(globalObject, JSHTMLFrameElementPrototype::createStructure(JSHTMLElementPrototype::self(exec, globalObject)));
       
   163 }
       
   164 
       
   165 bool JSHTMLFrameElement::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
       
   166 {
       
   167     return getStaticValueSlot<JSHTMLFrameElement, Base>(exec, &JSHTMLFrameElementTable, this, propertyName, slot);
       
   168 }
       
   169 
       
   170 bool JSHTMLFrameElement::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
       
   171 {
       
   172     return getStaticValueDescriptor<JSHTMLFrameElement, Base>(exec, &JSHTMLFrameElementTable, this, propertyName, descriptor);
       
   173 }
       
   174 
       
   175 JSValue jsHTMLFrameElementFrameBorder(ExecState* exec, JSValue slotBase, const Identifier&)
       
   176 {
       
   177     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   178     UNUSED_PARAM(exec);
       
   179     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   180     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::frameborderAttr));
       
   181     return result;
       
   182 }
       
   183 
       
   184 JSValue jsHTMLFrameElementLongDesc(ExecState* exec, JSValue slotBase, const Identifier&)
       
   185 {
       
   186     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   187     UNUSED_PARAM(exec);
       
   188     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   189     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::longdescAttr));
       
   190     return result;
       
   191 }
       
   192 
       
   193 JSValue jsHTMLFrameElementMarginHeight(ExecState* exec, JSValue slotBase, const Identifier&)
       
   194 {
       
   195     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   196     UNUSED_PARAM(exec);
       
   197     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   198     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::marginheightAttr));
       
   199     return result;
       
   200 }
       
   201 
       
   202 JSValue jsHTMLFrameElementMarginWidth(ExecState* exec, JSValue slotBase, const Identifier&)
       
   203 {
       
   204     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   205     UNUSED_PARAM(exec);
       
   206     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   207     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::marginwidthAttr));
       
   208     return result;
       
   209 }
       
   210 
       
   211 JSValue jsHTMLFrameElementName(ExecState* exec, JSValue slotBase, const Identifier&)
       
   212 {
       
   213     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   214     UNUSED_PARAM(exec);
       
   215     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   216     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::nameAttr));
       
   217     return result;
       
   218 }
       
   219 
       
   220 JSValue jsHTMLFrameElementNoResize(ExecState* exec, JSValue slotBase, const Identifier&)
       
   221 {
       
   222     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   223     UNUSED_PARAM(exec);
       
   224     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   225     JSValue result = jsBoolean(imp->hasAttribute(WebCore::HTMLNames::noresizeAttr));
       
   226     return result;
       
   227 }
       
   228 
       
   229 JSValue jsHTMLFrameElementScrolling(ExecState* exec, JSValue slotBase, const Identifier&)
       
   230 {
       
   231     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   232     UNUSED_PARAM(exec);
       
   233     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   234     JSValue result = jsString(exec, imp->getAttribute(WebCore::HTMLNames::scrollingAttr));
       
   235     return result;
       
   236 }
       
   237 
       
   238 JSValue jsHTMLFrameElementSrc(ExecState* exec, JSValue slotBase, const Identifier&)
       
   239 {
       
   240     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   241     UNUSED_PARAM(exec);
       
   242     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   243     JSValue result = jsString(exec, imp->getURLAttribute(WebCore::HTMLNames::srcAttr));
       
   244     return result;
       
   245 }
       
   246 
       
   247 JSValue jsHTMLFrameElementContentDocument(ExecState* exec, JSValue slotBase, const Identifier&)
       
   248 {
       
   249     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   250     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   251     return checkNodeSecurity(exec, imp->contentDocument()) ? toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentDocument())) : jsUndefined();
       
   252 }
       
   253 
       
   254 JSValue jsHTMLFrameElementContentWindow(ExecState* exec, JSValue slotBase, const Identifier&)
       
   255 {
       
   256     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   257     UNUSED_PARAM(exec);
       
   258     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   259     JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->contentWindow()));
       
   260     return result;
       
   261 }
       
   262 
       
   263 JSValue jsHTMLFrameElementLocation(ExecState* exec, JSValue slotBase, const Identifier&)
       
   264 {
       
   265     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   266     UNUSED_PARAM(exec);
       
   267     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   268     JSValue result = jsString(exec, imp->location());
       
   269     return result;
       
   270 }
       
   271 
       
   272 JSValue jsHTMLFrameElementWidth(ExecState* exec, JSValue slotBase, const Identifier&)
       
   273 {
       
   274     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   275     UNUSED_PARAM(exec);
       
   276     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   277     JSValue result = jsNumber(exec, imp->width());
       
   278     return result;
       
   279 }
       
   280 
       
   281 JSValue jsHTMLFrameElementHeight(ExecState* exec, JSValue slotBase, const Identifier&)
       
   282 {
       
   283     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   284     UNUSED_PARAM(exec);
       
   285     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   286     JSValue result = jsNumber(exec, imp->height());
       
   287     return result;
       
   288 }
       
   289 
       
   290 JSValue jsHTMLFrameElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
       
   291 {
       
   292     JSHTMLFrameElement* domObject = static_cast<JSHTMLFrameElement*>(asObject(slotBase));
       
   293     return JSHTMLFrameElement::getConstructor(exec, domObject->globalObject());
       
   294 }
       
   295 void JSHTMLFrameElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot)
       
   296 {
       
   297     lookupPut<JSHTMLFrameElement, Base>(exec, propertyName, value, &JSHTMLFrameElementTable, this, slot);
       
   298 }
       
   299 
       
   300 void setJSHTMLFrameElementFrameBorder(ExecState* exec, JSObject* thisObject, JSValue value)
       
   301 {
       
   302     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   303     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   304     imp->setAttribute(WebCore::HTMLNames::frameborderAttr, valueToStringWithNullCheck(exec, value));
       
   305 }
       
   306 
       
   307 void setJSHTMLFrameElementLongDesc(ExecState* exec, JSObject* thisObject, JSValue value)
       
   308 {
       
   309     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   310     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   311     imp->setAttribute(WebCore::HTMLNames::longdescAttr, valueToStringWithNullCheck(exec, value));
       
   312 }
       
   313 
       
   314 void setJSHTMLFrameElementMarginHeight(ExecState* exec, JSObject* thisObject, JSValue value)
       
   315 {
       
   316     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   317     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   318     imp->setAttribute(WebCore::HTMLNames::marginheightAttr, valueToStringWithNullCheck(exec, value));
       
   319 }
       
   320 
       
   321 void setJSHTMLFrameElementMarginWidth(ExecState* exec, JSObject* thisObject, JSValue value)
       
   322 {
       
   323     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   324     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   325     imp->setAttribute(WebCore::HTMLNames::marginwidthAttr, valueToStringWithNullCheck(exec, value));
       
   326 }
       
   327 
       
   328 void setJSHTMLFrameElementName(ExecState* exec, JSObject* thisObject, JSValue value)
       
   329 {
       
   330     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   331     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   332     imp->setAttribute(WebCore::HTMLNames::nameAttr, valueToStringWithNullCheck(exec, value));
       
   333 }
       
   334 
       
   335 void setJSHTMLFrameElementNoResize(ExecState* exec, JSObject* thisObject, JSValue value)
       
   336 {
       
   337     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   338     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   339     imp->setBooleanAttribute(WebCore::HTMLNames::noresizeAttr, value.toBoolean(exec));
       
   340 }
       
   341 
       
   342 void setJSHTMLFrameElementScrolling(ExecState* exec, JSObject* thisObject, JSValue value)
       
   343 {
       
   344     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   345     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   346     imp->setAttribute(WebCore::HTMLNames::scrollingAttr, valueToStringWithNullCheck(exec, value));
       
   347 }
       
   348 
       
   349 void setJSHTMLFrameElementSrc(ExecState* exec, JSObject* thisObject, JSValue value)
       
   350 {
       
   351     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(thisObject);
       
   352     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   353     imp->setAttribute(WebCore::HTMLNames::srcAttr, valueToStringWithNullCheck(exec, value));
       
   354 }
       
   355 
       
   356 void setJSHTMLFrameElementLocation(ExecState* exec, JSObject* thisObject, JSValue value)
       
   357 {
       
   358     static_cast<JSHTMLFrameElement*>(thisObject)->setLocation(exec, value);
       
   359 }
       
   360 
       
   361 JSValue JSHTMLFrameElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
       
   362 {
       
   363     return getDOMConstructor<JSHTMLFrameElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
       
   364 }
       
   365 
       
   366 EncodedJSValue JSC_HOST_CALL jsHTMLFrameElementPrototypeFunctionGetSVGDocument(ExecState* exec)
       
   367 {
       
   368     JSValue thisValue = exec->hostThisValue();
       
   369     if (!thisValue.inherits(&JSHTMLFrameElement::s_info))
       
   370         return throwVMTypeError(exec);
       
   371     JSHTMLFrameElement* castedThis = static_cast<JSHTMLFrameElement*>(asObject(thisValue));
       
   372     HTMLFrameElement* imp = static_cast<HTMLFrameElement*>(castedThis->impl());
       
   373     ExceptionCode ec = 0;
       
   374     if (!checkNodeSecurity(exec, imp->getSVGDocument(ec)))
       
   375         return JSValue::encode(jsUndefined());
       
   376 
       
   377 
       
   378     JSC::JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->getSVGDocument(ec)));
       
   379     setDOMException(exec, ec);
       
   380     return JSValue::encode(result);
       
   381 }
       
   382 
       
   383 
       
   384 }