diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSHTMLDocument.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSHTMLDocument.cpp | 177 |
1 files changed, 99 insertions, 78 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSHTMLDocument.cpp b/src/3rdparty/webkit/WebCore/generated/JSHTMLDocument.cpp index e45c9ec..9f62dc2 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSHTMLDocument.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSHTMLDocument.cpp @@ -43,22 +43,22 @@ ASSERT_CLASS_FITS_IN_CELL(JSHTMLDocument); static const HashTableValue JSHTMLDocumentTableValues[17] = { - { "embeds", DontDelete|ReadOnly, (intptr_t)jsHTMLDocumentEmbeds, (intptr_t)0 }, - { "plugins", DontDelete|ReadOnly, (intptr_t)jsHTMLDocumentPlugins, (intptr_t)0 }, - { "scripts", DontDelete|ReadOnly, (intptr_t)jsHTMLDocumentScripts, (intptr_t)0 }, - { "all", 0, (intptr_t)jsHTMLDocumentAll, (intptr_t)setJSHTMLDocumentAll }, - { "width", DontDelete|ReadOnly, (intptr_t)jsHTMLDocumentWidth, (intptr_t)0 }, - { "height", DontDelete|ReadOnly, (intptr_t)jsHTMLDocumentHeight, (intptr_t)0 }, - { "dir", DontDelete, (intptr_t)jsHTMLDocumentDir, (intptr_t)setJSHTMLDocumentDir }, - { "designMode", DontDelete, (intptr_t)jsHTMLDocumentDesignMode, (intptr_t)setJSHTMLDocumentDesignMode }, - { "compatMode", DontDelete|ReadOnly, (intptr_t)jsHTMLDocumentCompatMode, (intptr_t)0 }, - { "activeElement", DontDelete|ReadOnly, (intptr_t)jsHTMLDocumentActiveElement, (intptr_t)0 }, - { "bgColor", DontDelete, (intptr_t)jsHTMLDocumentBgColor, (intptr_t)setJSHTMLDocumentBgColor }, - { "fgColor", DontDelete, (intptr_t)jsHTMLDocumentFgColor, (intptr_t)setJSHTMLDocumentFgColor }, - { "alinkColor", DontDelete, (intptr_t)jsHTMLDocumentAlinkColor, (intptr_t)setJSHTMLDocumentAlinkColor }, - { "linkColor", DontDelete, (intptr_t)jsHTMLDocumentLinkColor, (intptr_t)setJSHTMLDocumentLinkColor }, - { "vlinkColor", DontDelete, (intptr_t)jsHTMLDocumentVlinkColor, (intptr_t)setJSHTMLDocumentVlinkColor }, - { "constructor", DontEnum|ReadOnly, (intptr_t)jsHTMLDocumentConstructor, (intptr_t)0 }, + { "embeds", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentEmbeds), (intptr_t)0 }, + { "plugins", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentPlugins), (intptr_t)0 }, + { "scripts", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentScripts), (intptr_t)0 }, + { "all", 0, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentAll), (intptr_t)setJSHTMLDocumentAll }, + { "width", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentWidth), (intptr_t)0 }, + { "height", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentHeight), (intptr_t)0 }, + { "dir", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentDir), (intptr_t)setJSHTMLDocumentDir }, + { "designMode", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentDesignMode), (intptr_t)setJSHTMLDocumentDesignMode }, + { "compatMode", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentCompatMode), (intptr_t)0 }, + { "activeElement", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentActiveElement), (intptr_t)0 }, + { "bgColor", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentBgColor), (intptr_t)setJSHTMLDocumentBgColor }, + { "fgColor", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentFgColor), (intptr_t)setJSHTMLDocumentFgColor }, + { "alinkColor", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentAlinkColor), (intptr_t)setJSHTMLDocumentAlinkColor }, + { "linkColor", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentLinkColor), (intptr_t)setJSHTMLDocumentLinkColor }, + { "vlinkColor", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentVlinkColor), (intptr_t)setJSHTMLDocumentVlinkColor }, + { "constructor", DontEnum|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLDocumentConstructor), (intptr_t)0 }, { 0, 0, 0, 0 } }; @@ -97,7 +97,7 @@ public: static PassRefPtr<Structure> createStructure(JSValue proto) { - return Structure::create(proto, TypeInfo(ObjectType, StructureFlags)); + return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount); } protected: @@ -120,14 +120,14 @@ bool JSHTMLDocumentConstructor::getOwnPropertyDescriptor(ExecState* exec, const static const HashTableValue JSHTMLDocumentPrototypeTableValues[9] = { - { "open", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionOpen, (intptr_t)0 }, - { "close", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionClose, (intptr_t)0 }, - { "write", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionWrite, (intptr_t)1 }, - { "writeln", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionWriteln, (intptr_t)1 }, - { "clear", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionClear, (intptr_t)0 }, - { "captureEvents", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionCaptureEvents, (intptr_t)0 }, - { "releaseEvents", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionReleaseEvents, (intptr_t)0 }, - { "hasFocus", DontDelete|Function, (intptr_t)jsHTMLDocumentPrototypeFunctionHasFocus, (intptr_t)0 }, + { "open", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionOpen), (intptr_t)0 }, + { "close", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionClose), (intptr_t)0 }, + { "write", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionWrite), (intptr_t)1 }, + { "writeln", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionWriteln), (intptr_t)1 }, + { "clear", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionClear), (intptr_t)0 }, + { "captureEvents", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionCaptureEvents), (intptr_t)0 }, + { "releaseEvents", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionReleaseEvents), (intptr_t)0 }, + { "hasFocus", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLDocumentPrototypeFunctionHasFocus), (intptr_t)0 }, { 0, 0, 0, 0 } }; @@ -187,127 +187,141 @@ bool JSHTMLDocument::getOwnPropertyDescriptor(ExecState* exec, const Identifier& return getStaticValueDescriptor<JSHTMLDocument, Base>(exec, &JSHTMLDocumentTable, this, propertyName, descriptor); } -JSValue jsHTMLDocumentEmbeds(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentEmbeds(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->embeds())); + JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->embeds())); + return result; } -JSValue jsHTMLDocumentPlugins(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentPlugins(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->plugins())); + JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->plugins())); + return result; } -JSValue jsHTMLDocumentScripts(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentScripts(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->scripts())); + JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->scripts())); + return result; } -JSValue jsHTMLDocumentAll(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentAll(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); return castedThis->all(exec); } -JSValue jsHTMLDocumentWidth(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentWidth(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsNumber(exec, imp->width()); + JSValue result = jsNumber(exec, imp->width()); + return result; } -JSValue jsHTMLDocumentHeight(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentHeight(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsNumber(exec, imp->height()); + JSValue result = jsNumber(exec, imp->height()); + return result; } -JSValue jsHTMLDocumentDir(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentDir(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->dir()); + JSValue result = jsString(exec, imp->dir()); + return result; } -JSValue jsHTMLDocumentDesignMode(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentDesignMode(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->designMode()); + JSValue result = jsString(exec, imp->designMode()); + return result; } -JSValue jsHTMLDocumentCompatMode(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentCompatMode(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->compatMode()); + JSValue result = jsString(exec, imp->compatMode()); + return result; } -JSValue jsHTMLDocumentActiveElement(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentActiveElement(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->activeElement())); + JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->activeElement())); + return result; } -JSValue jsHTMLDocumentBgColor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentBgColor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->bgColor()); + JSValue result = jsString(exec, imp->bgColor()); + return result; } -JSValue jsHTMLDocumentFgColor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentFgColor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->fgColor()); + JSValue result = jsString(exec, imp->fgColor()); + return result; } -JSValue jsHTMLDocumentAlinkColor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentAlinkColor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->alinkColor()); + JSValue result = jsString(exec, imp->alinkColor()); + return result; } -JSValue jsHTMLDocumentLinkColor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentLinkColor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->linkColor()); + JSValue result = jsString(exec, imp->linkColor()); + return result; } -JSValue jsHTMLDocumentVlinkColor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentVlinkColor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* castedThis = static_cast<JSHTMLDocument*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLDocument* imp = static_cast<HTMLDocument*>(castedThis->impl()); - return jsString(exec, imp->vlinkColor()); + JSValue result = jsString(exec, imp->vlinkColor()); + return result; } -JSValue jsHTMLDocumentConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLDocumentConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLDocument* domObject = static_cast<JSHTMLDocument*>(asObject(slot.slotBase())); + JSHTMLDocument* domObject = static_cast<JSHTMLDocument*>(asObject(slotBase)); return JSHTMLDocument::getConstructor(exec, domObject->globalObject()); } void JSHTMLDocument::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) @@ -322,43 +336,50 @@ void setJSHTMLDocumentAll(ExecState* exec, JSObject* thisObject, JSValue value) void setJSHTMLDocumentDir(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLDocument* imp = static_cast<HTMLDocument*>(static_cast<JSHTMLDocument*>(thisObject)->impl()); + JSHTMLDocument* castedThisObj = static_cast<JSHTMLDocument*>(thisObject); + HTMLDocument* imp = static_cast<HTMLDocument*>(castedThisObj->impl()); imp->setDir(valueToStringWithNullCheck(exec, value)); } void setJSHTMLDocumentDesignMode(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLDocument* imp = static_cast<HTMLDocument*>(static_cast<JSHTMLDocument*>(thisObject)->impl()); + JSHTMLDocument* castedThisObj = static_cast<JSHTMLDocument*>(thisObject); + HTMLDocument* imp = static_cast<HTMLDocument*>(castedThisObj->impl()); imp->setDesignMode(valueToStringWithNullCheck(exec, value)); } void setJSHTMLDocumentBgColor(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLDocument* imp = static_cast<HTMLDocument*>(static_cast<JSHTMLDocument*>(thisObject)->impl()); + JSHTMLDocument* castedThisObj = static_cast<JSHTMLDocument*>(thisObject); + HTMLDocument* imp = static_cast<HTMLDocument*>(castedThisObj->impl()); imp->setBgColor(valueToStringWithNullCheck(exec, value)); } void setJSHTMLDocumentFgColor(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLDocument* imp = static_cast<HTMLDocument*>(static_cast<JSHTMLDocument*>(thisObject)->impl()); + JSHTMLDocument* castedThisObj = static_cast<JSHTMLDocument*>(thisObject); + HTMLDocument* imp = static_cast<HTMLDocument*>(castedThisObj->impl()); imp->setFgColor(valueToStringWithNullCheck(exec, value)); } void setJSHTMLDocumentAlinkColor(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLDocument* imp = static_cast<HTMLDocument*>(static_cast<JSHTMLDocument*>(thisObject)->impl()); + JSHTMLDocument* castedThisObj = static_cast<JSHTMLDocument*>(thisObject); + HTMLDocument* imp = static_cast<HTMLDocument*>(castedThisObj->impl()); imp->setAlinkColor(valueToStringWithNullCheck(exec, value)); } void setJSHTMLDocumentLinkColor(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLDocument* imp = static_cast<HTMLDocument*>(static_cast<JSHTMLDocument*>(thisObject)->impl()); + JSHTMLDocument* castedThisObj = static_cast<JSHTMLDocument*>(thisObject); + HTMLDocument* imp = static_cast<HTMLDocument*>(castedThisObj->impl()); imp->setLinkColor(valueToStringWithNullCheck(exec, value)); } void setJSHTMLDocumentVlinkColor(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLDocument* imp = static_cast<HTMLDocument*>(static_cast<JSHTMLDocument*>(thisObject)->impl()); + JSHTMLDocument* castedThisObj = static_cast<JSHTMLDocument*>(thisObject); + HTMLDocument* imp = static_cast<HTMLDocument*>(castedThisObj->impl()); imp->setVlinkColor(valueToStringWithNullCheck(exec, value)); } |