зеркало из https://github.com/mozilla/gecko-dev.git
Ender checkins got Nisheeth's approval.
This commit is contained in:
Родитель
f89ab476a8
Коммит
6b0c41cf00
|
@ -1858,6 +1858,9 @@ lo_PrintLayoutElement(MWContext *pContext, lo_TopState* top_state,
|
|||
"FORM_TYPE_KEYGEN",
|
||||
"FORM_TYPE_READONLY",
|
||||
"FORM_TYPE_OBJECT"
|
||||
#ifdef ENDER
|
||||
,"FORM_TYPE_HTML"
|
||||
#endif /*ENDER*/
|
||||
};
|
||||
const char* formTypeName;
|
||||
int16 form_id;
|
||||
|
|
|
@ -509,7 +509,10 @@ input_getProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
|||
case FORM_TYPE_TEXTAREA: /* XXX we ASSUME common struct prefixes */
|
||||
case FORM_TYPE_FILE: /* XXX as above, also get-only without signing */
|
||||
case FORM_TYPE_PASSWORD:
|
||||
{
|
||||
#ifdef ENDER
|
||||
case FORM_TYPE_HTMLAREA :
|
||||
#endif //ENDER
|
||||
{
|
||||
lo_FormElementTextData *text;
|
||||
|
||||
text = &form_element->element_data->ele_text;
|
||||
|
@ -858,7 +861,10 @@ input_setProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
|||
case FORM_TYPE_TEXT:
|
||||
case FORM_TYPE_TEXTAREA: /* XXX we ASSUME common struct prefixes */
|
||||
case FORM_TYPE_PASSWORD:
|
||||
{
|
||||
#ifdef ENDER
|
||||
case FORM_TYPE_HTMLAREA :
|
||||
#endif //ENDER
|
||||
{
|
||||
lo_FormElementTextData *text;
|
||||
JSBool ok;
|
||||
char * fixed_string;
|
||||
|
@ -1329,7 +1335,10 @@ input_toString(JSContext *cx, JSObject *obj,
|
|||
}
|
||||
break;
|
||||
|
||||
case FORM_TYPE_TEXTAREA: /* XXX we ASSUME common struct prefixes */
|
||||
case FORM_TYPE_TEXTAREA: /* XXX we ASSUME common struct prefixes */
|
||||
#ifdef ENDER
|
||||
case FORM_TYPE_HTMLAREA :
|
||||
#endif //ENDER
|
||||
{
|
||||
lo_FormElementTextareaData *textarea;
|
||||
|
||||
|
@ -1886,6 +1895,9 @@ LM_ReflectFormElement(MWContext *context, int32 layer_id, int32 form_id,
|
|||
switch (type) {
|
||||
case FORM_TYPE_TEXT:
|
||||
case FORM_TYPE_TEXTAREA:
|
||||
#ifdef ENDER
|
||||
case FORM_TYPE_HTMLAREA:
|
||||
#endif //ENDER
|
||||
size = sizeof(JSTextInput);
|
||||
break;
|
||||
|
||||
|
@ -2452,6 +2464,9 @@ lm_InputEvent(MWContext *context, LO_Element *element, JSEvent *pEvent,
|
|||
re_input_bytes = (char *)data->ele_text.current_text;
|
||||
break;
|
||||
case FORM_TYPE_TEXTAREA:
|
||||
#ifdef ENDER
|
||||
case FORM_TYPE_HTMLAREA:
|
||||
#endif //ENDER
|
||||
re_input_bytes = (char *)data->ele_textarea.current_text;
|
||||
multiline = JS_TRUE;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче