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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user