зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1166544 - Use ReplaceElementAt instead of Clear and InsertElementAt in SVGMotionSMILType::Add. r=dholbert
This commit is contained in:
Родитель
166420ff0b
Коммит
6e8a563ffc
|
@ -307,8 +307,7 @@ SVGMotionSMILType::Add(nsSMILValue& aDest, const nsSMILValue& aValueToAdd,
|
|||
|
||||
// Replace destination's current value -- a point-on-a-path -- with the
|
||||
// translation that results from our addition.
|
||||
dstArr.Clear();
|
||||
dstArr.AppendElement(MotionSegment(newX, newY, rotateAngle));
|
||||
dstArr.ReplaceElementAt(0, MotionSegment(newX, newY, rotateAngle));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче