clean up some form control stuff (use common helpers and superclasses
for shared functionality where possible). r=jkeiser, sr=jst git-svn-id: svn://10.0.0.236/trunk@126548 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -485,20 +485,7 @@ nsFileControlFrame::GetSkipSides() const
|
||||
NS_IMETHODIMP
|
||||
nsFileControlFrame::GetName(nsAString* aResult)
|
||||
{
|
||||
nsresult result = NS_FORM_NOTOK;
|
||||
|
||||
nsCOMPtr<nsIHTMLContent> formControl(do_QueryInterface(mContent));
|
||||
|
||||
if (formControl) {
|
||||
nsHTMLValue value;
|
||||
result = formControl->GetHTMLAttribute(nsHTMLAtoms::name, value);
|
||||
if (NS_CONTENT_ATTR_HAS_VALUE == result) {
|
||||
if (eHTMLUnit_String == value.GetUnit()) {
|
||||
value.GetStringValue(*aResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
return nsFormControlHelper::GetName(mContent, aResult);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user