зеркало из https://github.com/mozilla/gecko-dev.git
Bug 472782. Avoid infinite recursion when textPath points to a non-path. r+sr=roc
This commit is contained in:
Родитель
13f1371d97
Коммит
d7f5510579
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче