mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
5712f86d90
commit
7e754654f1
@ -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
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user