Bug 398134 - Remove final argument to nsSVGBoolean::SetBaseValue as it is only ever PR_TRUE. r=tor,sr+a=roc

This commit is contained in:
longsonr@gmail.com 2007-10-02 05:23:17 -07:00
parent 5712f86d90
commit 7e754654f1
2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -55,7 +55,7 @@ public:
PRBool aDoSetAttr);
void GetBaseValueString(nsAString& aValue);
void SetBaseValue(PRBool aValue, nsSVGElement *aSVGElement, PRBool aDoSetAttr);
void SetBaseValue(PRBool aValue, nsSVGElement *aSVGElement);
PRBool GetBaseValue() const
{ return mBaseVal; }
PRBool GetAnimValue() const
@ -83,7 +83,7 @@ private:
NS_IMETHOD GetBaseVal(PRBool* aResult)
{ *aResult = mVal->GetBaseValue(); return NS_OK; }
NS_IMETHOD SetBaseVal(PRBool aValue)
{ mVal->SetBaseValue(aValue, mSVGElement, PR_TRUE); return NS_OK; }
{ mVal->SetBaseValue(aValue, mSVGElement); return NS_OK; }
NS_IMETHOD GetAnimVal(PRBool* aResult)
{ *aResult = mVal->GetAnimValue(); return NS_OK; }