RESOLVED FIXED 107324
Asserts when textPath is used with no path
https://bugs.webkit.org/show_bug.cgi?id=107324
Summary Asserts when textPath is used with no path
Stephen Chenney
Reported 2013-01-18 13:58:30 PST
We assert in SVGTextLayoutEngine when the textPath element has no path associated with it: ASSERTION FAILED: ok ../../third_party/WebKit/Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp(562) : void WebCore::SVGTextLayoutEngine::layoutTextOnLineOrPath(WebCore::SVGInlineTextBox *, WebCore::RenderSVGInlineText *, const WebCore::RenderStyle *) Turns out that we totally fail to check for this case, which normally isn't a problem (this is not a security issue) because the text path just returns 0,0 or something for any point on the path when the path doesn't exist. Fix imminent.
Attachments
Patch (3.58 KB, patch)
2013-01-18 14:42 PST, Stephen Chenney
eric: review+
Stephen Chenney
Comment 1 2013-01-18 14:42:00 PST
Eric Seidel (no email)
Comment 2 2013-01-18 14:48:36 PST
Comment on attachment 183550 [details] Patch So long as this early return leaves the rendering tree in an expected state, then this seems fine.
Stephen Chenney
Comment 3 2013-01-22 08:54:21 PST
Note You need to log in before you can comment on or make changes to this bug.