Bug 472782. Avoid infinite recursion when textPath points to a non-path. r+sr=roc

This commit is contained in:
Robert Longson 2009-01-28 22:44:39 +13:00
Родитель 13f1371d97
Коммит d7f5510579
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -406,6 +406,10 @@ nsSVGTextFrame::UpdateGlyphPositioning(PRBool aForceGlobalTransform)
// check for startOffset on textPath
nsSVGTextPathFrame *textPath = firstFragment->FindTextPathParent();
if (textPath) {
if (!textPath->GetPathFrame()) {
// invalid text path, give up
return;
}
x = textPath->GetStartOffset();
}