From 591855d6341ea6bbb8de28a824019267ce701abb Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Tue, 16 May 2000 01:03:07 +0000 Subject: [PATCH] not in build. form submission works --- layout/html/forms/src/nsGfxTextControlFrame2.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/layout/html/forms/src/nsGfxTextControlFrame2.cpp b/layout/html/forms/src/nsGfxTextControlFrame2.cpp index 183a179ac0b..a7a3f195250 100644 --- a/layout/html/forms/src/nsGfxTextControlFrame2.cpp +++ b/layout/html/forms/src/nsGfxTextControlFrame2.cpp @@ -1323,7 +1323,20 @@ PRInt32 nsGfxTextControlFrame2::GetMaxNumValues(){return 1;}/**/ PRBool nsGfxTextControlFrame2::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValues, nsString* aValues, nsString* aNames) { - return PR_FALSE; + if (!aValues || !aNames) { return PR_FALSE; } + + nsAutoString name; + nsresult result = GetName(&name); + if ((aMaxNumValues <= 0) || (NS_CONTENT_ATTR_NOT_THERE == result)) { + return PR_FALSE; + } + + aNames[0] = name; + aNumValues = 1; + + GetText(&(aValues[0]), PR_FALSE); + // XXX: error checking + return PR_TRUE; } nscoord