nsHTMLInputElement::GetValue(nsString& aValue)
nsHTMLInputElement::GetValue(nsAWritableString& aValue)
nsHTMLInputElement::GetValue(nsString& aValue){  PRInt32 type;  GetType(&type);  if (NS_FORM_INPUT_TEXT == type || NS_FORM_INPUT_PASSWORD == type || NS_FORM_INPUT_FILE == type) {    nsIFormControlFrame* formControlFrame = nsnull;    if (NS_SUCCEEDED(nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame))) {      if (nsnull != formControlFrame) {        formControlFrame->GetProperty(nsHTMLAtoms::value, aValue);      }    }    else {      // Retrieve the presentation state instead.      nsCOMPtr<nsIPresState> presState;      nsGenericHTMLElement::GetPrimaryPresState(this, nsIStatefulFrame::eTextType, getter_AddRefs(presState));      // Obtain the value property from the presentation state.      if (presState) {        nsAutoString value;        presState->GetStateProperty(NS_ConvertASCIItoUCS2("value"), aValue);      }    }          return NS_OK;  }  // Treat value == defaultValue for other input elements  return mInner.GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::value, aValue); }