Bug 397620 - Validate boolean arguments. r+sr+a=roc

This commit is contained in:
longsonr@gmail.com 2007-10-01 01:39:23 -07:00
Родитель 58c9b8e0cb
Коммит 409f04a6d1
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -74,10 +74,12 @@ nsSVGBoolean::GetBaseValueString(nsAString & aValueAsString)
}
void
nsSVGBoolean::SetBaseValue(int aValue,
nsSVGBoolean::SetBaseValue(PRBool aValue,
nsSVGElement *aSVGElement,
PRBool aDoSetAttr)
{
NS_PRECONDITION(aValue == PR_TRUE || aValue == PR_FALSE, "Boolean out of range");
mAnimVal = mBaseVal = aValue;
aSVGElement->DidChangeBoolean(mAttrEnum, aDoSetAttr);
}