Bug 413975 - GetCtx returning null does not mean we are an outer SVG. r=jwatt

This commit is contained in:
Robert Longson 2009-10-07 14:54:00 +01:00
Родитель 3290608b6a
Коммит b854e17f6e
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -1133,8 +1133,8 @@ nsSVGSVGElement::GetLength(PRUint8 aCtxType)
w = viewbox.width;
h = viewbox.height;
} else {
nsSVGSVGElement *ctx = GetCtx();
if (ctx) {
if (nsSVGUtils::IsInnerSVG(this)) {
nsSVGSVGElement *ctx = GetCtx();
w = mLengthAttributes[WIDTH].GetAnimValue(ctx);
h = mLengthAttributes[HEIGHT].GetAnimValue(ctx);
} else {