2011-04-16 Abhishek Arya <inferno@chromium.org>
authorinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Apr 2011 09:02:33 +0000 (09:02 +0000)
committerinferno@chromium.org <inferno@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 16 Apr 2011 09:02:33 +0000 (09:02 +0000)
commitca68201bc13325ccd7ea52bcd01ab68c5c7b54ad
treea74ed0316090e14c6969cabc23cf1a3ddf196c0d
parent12aa91bd813271a5e4ad74002610ec78b80ca53e
2011-04-16  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Nikolas Zimmermann.

        Tests that we do not crash when adding a list item block child
        as a before child to svg text.
        https://bugs.webkit.org/show_bug.cgi?id=58678

        * svg/text/text-block-child-crash-expected.txt: Added.
        * svg/text/text-block-child-crash.xhtml: Added.
2011-04-16  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Nikolas Zimmermann.

        Only allow inline child for SVG text since we cannot
        handle block childs.
        https://bugs.webkit.org/show_bug.cgi?id=58678

        Test: svg/text/text-block-child-crash.xhtml

        * rendering/svg/RenderSVGText.cpp:
        (WebCore::RenderSVGText::isChildAllowed):
        * rendering/svg/RenderSVGText.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@84085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/text/text-block-child-crash-expected.txt [new file with mode: 0644]
LayoutTests/svg/text/text-block-child-crash.xhtml [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/RenderSVGText.cpp
Source/WebCore/rendering/svg/RenderSVGText.h