Bug 569463 - Stop coverity complaining about GetParsedAttr call in RebuildPathAndVerticesFromMpathElem. r=jwatt

This commit is contained in:
Robert Longson 2010-06-09 20:13:03 +01:00
Родитель 15c4be5cb1
Коммит 74a71da6f7
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -253,9 +253,9 @@ SVGMotionSMILAnimationFunction::
// Use the path that's the target of our chosen <mpath> child.
nsSVGPathElement* pathElem = aMpathElem->GetReferencedPath();
if (pathElem) {
if (pathElem->HasAttr(kNameSpaceID_None, nsGkAtoms::d)) {
const nsAString& pathSpec =
pathElem->GetParsedAttr(nsGkAtoms::d)->GetStringValue();
const nsAttrValue* value = pathElem->GetParsedAttr(nsGkAtoms::d);
if (value) {
const nsAString& pathSpec = value->GetStringValue();
nsresult rv = SetPathVerticesFromPathString(pathSpec);
if (NS_SUCCEEDED(rv)) {
mPath = pathElem->GetFlattenedPath(