2011-06-13 Tim Horton <timothy_horton@apple.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jun 2011 17:59:28 +0000 (17:59 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jun 2011 17:59:28 +0000 (17:59 +0000)
commit2a0368a78b74add92e86c25686c156ce0072364f
treeb7b6abfc190707230c464c5ac5fb654d430ff26a
parentbda3e8eed07f82aa27a7e67e34db23526f9f90f8
2011-06-13  Tim Horton  <timothy_horton@apple.com>

        Reviewed by Simon Fraser.

        REGRESSION(87152): Crash on page with svg fonts
        https://bugs.webkit.org/show_bug.cgi?id=61556

        We can't assume that the parent of a SVG-font-styled
        text node won't be an anonymous block.

        Test: svg/text/text-font-anonymous-parent.xhtml

        * rendering/svg/SVGTextRunRenderingContext.cpp:
        (WebCore::firstParentRendererForNonTextNode):
        (WebCore::SVGTextRunWalker::walk):
        (WebCore::floatWidthOfSubStringUsingSVGFont):
        (WebCore::SVGTextRunRenderingContext::drawTextUsingSVGFont):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@88652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/svg/text/text-font-anonymous-parent-expected.txt [new file with mode: 0644]
LayoutTests/svg/text/text-font-anonymous-parent.xhtml [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/SVGTextRunRenderingContext.cpp