зеркало из https://github.com/mozilla/gecko-dev.git
Bug 397620 - Validate boolean arguments. r+sr+a=roc
This commit is contained in:
Родитель
58c9b8e0cb
Коммит
409f04a6d1
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче