Use GetValue() instead of GetAttr(nsGkAtoms::value) for getting the button

value.  And make the value determination consistent for initial and
value-changed.  Bug 326250, r=sicking, sr=roc


git-svn-id: svn://10.0.0.236/trunk@189846 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-02-13 19:42:08 +00:00
parent 7507363770
commit d8d9e12130
4 changed files with 58 additions and 59 deletions

View File

@@ -315,14 +315,6 @@ nsFormControlHelper::PaintCheckMark(nsIRenderingContext& aRenderingContext,
aRenderingContext.FillPolygon(checkedPolygon, checkpoints);
}
PRBool
nsFormControlHelper::GetValueAttr(nsIContent* aContent, nsAString* aResult)
{
NS_PRECONDITION(aResult, "Null pointer bad!");
return aContent->IsContentOfType(nsIContent::eHTML) &&
aContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::value, *aResult);
}
//----------------------------------------------------------------------------------
nsresult