diff options
Diffstat (limited to 'src/3rdparty/webkit/WebCore/generated/JSHTMLTextAreaElement.cpp')
-rw-r--r-- | src/3rdparty/webkit/WebCore/generated/JSHTMLTextAreaElement.cpp | 247 |
1 files changed, 145 insertions, 102 deletions
diff --git a/src/3rdparty/webkit/WebCore/generated/JSHTMLTextAreaElement.cpp b/src/3rdparty/webkit/WebCore/generated/JSHTMLTextAreaElement.cpp index fdd60b4908..acf2ad7dde 100644 --- a/src/3rdparty/webkit/WebCore/generated/JSHTMLTextAreaElement.cpp +++ b/src/3rdparty/webkit/WebCore/generated/JSHTMLTextAreaElement.cpp @@ -41,36 +41,37 @@ ASSERT_CLASS_FITS_IN_CELL(JSHTMLTextAreaElement); /* Hash table */ -static const HashTableValue JSHTMLTextAreaElementTableValues[21] = -{ - { "defaultValue", DontDelete, (intptr_t)jsHTMLTextAreaElementDefaultValue, (intptr_t)setJSHTMLTextAreaElementDefaultValue }, - { "form", DontDelete|ReadOnly, (intptr_t)jsHTMLTextAreaElementForm, (intptr_t)0 }, - { "validity", DontDelete|ReadOnly, (intptr_t)jsHTMLTextAreaElementValidity, (intptr_t)0 }, - { "accessKey", DontDelete, (intptr_t)jsHTMLTextAreaElementAccessKey, (intptr_t)setJSHTMLTextAreaElementAccessKey }, - { "cols", DontDelete, (intptr_t)jsHTMLTextAreaElementCols, (intptr_t)setJSHTMLTextAreaElementCols }, - { "disabled", DontDelete, (intptr_t)jsHTMLTextAreaElementDisabled, (intptr_t)setJSHTMLTextAreaElementDisabled }, - { "autofocus", DontDelete, (intptr_t)jsHTMLTextAreaElementAutofocus, (intptr_t)setJSHTMLTextAreaElementAutofocus }, - { "maxLength", DontDelete, (intptr_t)jsHTMLTextAreaElementMaxLength, (intptr_t)setJSHTMLTextAreaElementMaxLength }, - { "name", DontDelete, (intptr_t)jsHTMLTextAreaElementName, (intptr_t)setJSHTMLTextAreaElementName }, - { "placeholder", DontDelete, (intptr_t)jsHTMLTextAreaElementPlaceholder, (intptr_t)setJSHTMLTextAreaElementPlaceholder }, - { "readOnly", DontDelete, (intptr_t)jsHTMLTextAreaElementReadOnly, (intptr_t)setJSHTMLTextAreaElementReadOnly }, - { "required", DontDelete, (intptr_t)jsHTMLTextAreaElementRequired, (intptr_t)setJSHTMLTextAreaElementRequired }, - { "rows", DontDelete, (intptr_t)jsHTMLTextAreaElementRows, (intptr_t)setJSHTMLTextAreaElementRows }, - { "type", DontDelete|ReadOnly, (intptr_t)jsHTMLTextAreaElementType, (intptr_t)0 }, - { "value", DontDelete, (intptr_t)jsHTMLTextAreaElementValue, (intptr_t)setJSHTMLTextAreaElementValue }, - { "textLength", DontDelete|ReadOnly, (intptr_t)jsHTMLTextAreaElementTextLength, (intptr_t)0 }, - { "willValidate", DontDelete|ReadOnly, (intptr_t)jsHTMLTextAreaElementWillValidate, (intptr_t)0 }, - { "selectionStart", DontDelete, (intptr_t)jsHTMLTextAreaElementSelectionStart, (intptr_t)setJSHTMLTextAreaElementSelectionStart }, - { "selectionEnd", DontDelete, (intptr_t)jsHTMLTextAreaElementSelectionEnd, (intptr_t)setJSHTMLTextAreaElementSelectionEnd }, - { "constructor", DontEnum|ReadOnly, (intptr_t)jsHTMLTextAreaElementConstructor, (intptr_t)0 }, +static const HashTableValue JSHTMLTextAreaElementTableValues[22] = +{ + { "defaultValue", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementDefaultValue), (intptr_t)setJSHTMLTextAreaElementDefaultValue }, + { "form", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementForm), (intptr_t)0 }, + { "validity", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementValidity), (intptr_t)0 }, + { "accessKey", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementAccessKey), (intptr_t)setJSHTMLTextAreaElementAccessKey }, + { "cols", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementCols), (intptr_t)setJSHTMLTextAreaElementCols }, + { "disabled", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementDisabled), (intptr_t)setJSHTMLTextAreaElementDisabled }, + { "autofocus", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementAutofocus), (intptr_t)setJSHTMLTextAreaElementAutofocus }, + { "maxLength", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementMaxLength), (intptr_t)setJSHTMLTextAreaElementMaxLength }, + { "name", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementName), (intptr_t)setJSHTMLTextAreaElementName }, + { "placeholder", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementPlaceholder), (intptr_t)setJSHTMLTextAreaElementPlaceholder }, + { "readOnly", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementReadOnly), (intptr_t)setJSHTMLTextAreaElementReadOnly }, + { "required", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementRequired), (intptr_t)setJSHTMLTextAreaElementRequired }, + { "rows", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementRows), (intptr_t)setJSHTMLTextAreaElementRows }, + { "type", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementType), (intptr_t)0 }, + { "value", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementValue), (intptr_t)setJSHTMLTextAreaElementValue }, + { "textLength", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementTextLength), (intptr_t)0 }, + { "willValidate", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementWillValidate), (intptr_t)0 }, + { "validationMessage", DontDelete|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementValidationMessage), (intptr_t)0 }, + { "selectionStart", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementSelectionStart), (intptr_t)setJSHTMLTextAreaElementSelectionStart }, + { "selectionEnd", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementSelectionEnd), (intptr_t)setJSHTMLTextAreaElementSelectionEnd }, + { "constructor", DontEnum|ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLTextAreaElementConstructor), (intptr_t)0 }, { 0, 0, 0, 0 } }; static JSC_CONST_HASHTABLE HashTable JSHTMLTextAreaElementTable = #if ENABLE(PERFECT_HASH_SIZE) - { 255, JSHTMLTextAreaElementTableValues, 0 }; + { 4095, JSHTMLTextAreaElementTableValues, 0 }; #else - { 67, 63, JSHTMLTextAreaElementTableValues, 0 }; + { 68, 63, JSHTMLTextAreaElementTableValues, 0 }; #endif /* Hash table for constructor */ @@ -101,7 +102,7 @@ public: static PassRefPtr<Structure> createStructure(JSValue proto) { - return Structure::create(proto, TypeInfo(ObjectType, StructureFlags)); + return Structure::create(proto, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount); } protected: @@ -124,10 +125,10 @@ bool JSHTMLTextAreaElementConstructor::getOwnPropertyDescriptor(ExecState* exec, static const HashTableValue JSHTMLTextAreaElementPrototypeTableValues[5] = { - { "select", DontDelete|Function, (intptr_t)jsHTMLTextAreaElementPrototypeFunctionSelect, (intptr_t)0 }, - { "checkValidity", DontDelete|Function, (intptr_t)jsHTMLTextAreaElementPrototypeFunctionCheckValidity, (intptr_t)0 }, - { "setCustomValidity", DontDelete|Function, (intptr_t)jsHTMLTextAreaElementPrototypeFunctionSetCustomValidity, (intptr_t)1 }, - { "setSelectionRange", DontDelete|Function, (intptr_t)jsHTMLTextAreaElementPrototypeFunctionSetSelectionRange, (intptr_t)2 }, + { "select", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLTextAreaElementPrototypeFunctionSelect), (intptr_t)0 }, + { "checkValidity", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLTextAreaElementPrototypeFunctionCheckValidity), (intptr_t)0 }, + { "setCustomValidity", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLTextAreaElementPrototypeFunctionSetCustomValidity), (intptr_t)1 }, + { "setSelectionRange", DontDelete|Function, (intptr_t)static_cast<NativeFunction>(jsHTMLTextAreaElementPrototypeFunctionSetSelectionRange), (intptr_t)2 }, { 0, 0, 0, 0 } }; @@ -177,161 +178,189 @@ bool JSHTMLTextAreaElement::getOwnPropertyDescriptor(ExecState* exec, const Iden return getStaticValueDescriptor<JSHTMLTextAreaElement, Base>(exec, &JSHTMLTextAreaElementTable, this, propertyName, descriptor); } -JSValue jsHTMLTextAreaElementDefaultValue(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementDefaultValue(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsString(exec, imp->defaultValue()); + JSValue result = jsString(exec, imp->defaultValue()); + return result; } -JSValue jsHTMLTextAreaElementForm(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementForm(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->form())); + JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->form())); + return result; } -JSValue jsHTMLTextAreaElementValidity(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementValidity(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->validity())); + JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->validity())); + return result; } -JSValue jsHTMLTextAreaElementAccessKey(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementAccessKey(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsString(exec, imp->accessKey()); + JSValue result = jsString(exec, imp->accessKey()); + return result; } -JSValue jsHTMLTextAreaElementCols(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementCols(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsNumber(exec, imp->cols()); + JSValue result = jsNumber(exec, imp->cols()); + return result; } -JSValue jsHTMLTextAreaElementDisabled(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementDisabled(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsBoolean(imp->disabled()); + JSValue result = jsBoolean(imp->disabled()); + return result; } -JSValue jsHTMLTextAreaElementAutofocus(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementAutofocus(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsBoolean(imp->autofocus()); + JSValue result = jsBoolean(imp->autofocus()); + return result; } -JSValue jsHTMLTextAreaElementMaxLength(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementMaxLength(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsNumber(exec, imp->maxLength()); + JSValue result = jsNumber(exec, imp->maxLength()); + return result; } -JSValue jsHTMLTextAreaElementName(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementName(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsString(exec, imp->name()); + JSValue result = jsString(exec, imp->name()); + return result; } -JSValue jsHTMLTextAreaElementPlaceholder(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementPlaceholder(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsString(exec, imp->getAttribute(HTMLNames::placeholderAttr)); + JSValue result = jsString(exec, imp->getAttribute(HTMLNames::placeholderAttr)); + return result; } -JSValue jsHTMLTextAreaElementReadOnly(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementReadOnly(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsBoolean(imp->readOnly()); + JSValue result = jsBoolean(imp->readOnly()); + return result; } -JSValue jsHTMLTextAreaElementRequired(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementRequired(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsBoolean(imp->required()); + JSValue result = jsBoolean(imp->required()); + return result; } -JSValue jsHTMLTextAreaElementRows(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementRows(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsNumber(exec, imp->rows()); + JSValue result = jsNumber(exec, imp->rows()); + return result; } -JSValue jsHTMLTextAreaElementType(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementType(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsString(exec, imp->type()); + JSValue result = jsString(exec, imp->type()); + return result; } -JSValue jsHTMLTextAreaElementValue(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementValue(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsString(exec, imp->value()); + JSValue result = jsString(exec, imp->value()); + return result; } -JSValue jsHTMLTextAreaElementTextLength(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementTextLength(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsNumber(exec, imp->textLength()); + JSValue result = jsNumber(exec, imp->textLength()); + return result; } -JSValue jsHTMLTextAreaElementWillValidate(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementWillValidate(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsBoolean(imp->willValidate()); + JSValue result = jsBoolean(imp->willValidate()); + return result; } -JSValue jsHTMLTextAreaElementSelectionStart(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementValidationMessage(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsNumber(exec, imp->selectionStart()); + JSValue result = jsString(exec, imp->validationMessage()); + return result; } -JSValue jsHTMLTextAreaElementSelectionEnd(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementSelectionStart(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); UNUSED_PARAM(exec); HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); - return jsNumber(exec, imp->selectionEnd()); + JSValue result = jsNumber(exec, imp->selectionStart()); + return result; } -JSValue jsHTMLTextAreaElementConstructor(ExecState* exec, const Identifier&, const PropertySlot& slot) +JSValue jsHTMLTextAreaElementSelectionEnd(ExecState* exec, JSValue slotBase, const Identifier&) { - JSHTMLTextAreaElement* domObject = static_cast<JSHTMLTextAreaElement*>(asObject(slot.slotBase())); + JSHTMLTextAreaElement* castedThis = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); + UNUSED_PARAM(exec); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThis->impl()); + JSValue result = jsNumber(exec, imp->selectionEnd()); + return result; +} + +JSValue jsHTMLTextAreaElementConstructor(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSHTMLTextAreaElement* domObject = static_cast<JSHTMLTextAreaElement*>(asObject(slotBase)); return JSHTMLTextAreaElement::getConstructor(exec, domObject->globalObject()); } void JSHTMLTextAreaElement::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) @@ -341,37 +370,43 @@ void JSHTMLTextAreaElement::put(ExecState* exec, const Identifier& propertyName, void setJSHTMLTextAreaElementDefaultValue(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setDefaultValue(valueToStringWithNullCheck(exec, value)); } void setJSHTMLTextAreaElementAccessKey(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setAccessKey(valueToStringWithNullCheck(exec, value)); } void setJSHTMLTextAreaElementCols(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setCols(value.toInt32(exec)); } void setJSHTMLTextAreaElementDisabled(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setDisabled(value.toBoolean(exec)); } void setJSHTMLTextAreaElementAutofocus(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setAutofocus(value.toBoolean(exec)); } void setJSHTMLTextAreaElementMaxLength(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); ExceptionCode ec = 0; imp->setMaxLength(value.toInt32(exec), ec); setDOMException(exec, ec); @@ -379,49 +414,57 @@ void setJSHTMLTextAreaElementMaxLength(ExecState* exec, JSObject* thisObject, JS void setJSHTMLTextAreaElementName(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setName(valueToStringWithNullCheck(exec, value)); } void setJSHTMLTextAreaElementPlaceholder(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setAttribute(HTMLNames::placeholderAttr, valueToStringWithNullCheck(exec, value)); } void setJSHTMLTextAreaElementReadOnly(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setReadOnly(value.toBoolean(exec)); } void setJSHTMLTextAreaElementRequired(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setRequired(value.toBoolean(exec)); } void setJSHTMLTextAreaElementRows(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setRows(value.toInt32(exec)); } void setJSHTMLTextAreaElementValue(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setValue(valueToStringWithNullCheck(exec, value)); } void setJSHTMLTextAreaElementSelectionStart(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setSelectionStart(value.toInt32(exec)); } void setJSHTMLTextAreaElementSelectionEnd(ExecState* exec, JSObject* thisObject, JSValue value) { - HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(static_cast<JSHTMLTextAreaElement*>(thisObject)->impl()); + JSHTMLTextAreaElement* castedThisObj = static_cast<JSHTMLTextAreaElement*>(thisObject); + HTMLTextAreaElement* imp = static_cast<HTMLTextAreaElement*>(castedThisObj->impl()); imp->setSelectionEnd(value.toInt32(exec)); } |