2011-04-05 Nikolas Zimmermann <nzimmermann@rim.com>
authorzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Apr 2011 17:28:28 +0000 (17:28 +0000)
committerzimmermann@webkit.org <zimmermann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Apr 2011 17:28:28 +0000 (17:28 +0000)
commit0e60c3f27c6f8aecafba6cdf4eb151ec09144828
tree56e6e973e42a75eb8e5931ecb28cb054dfef73ef
parent89a59414f5492fc3e47e2f0b4e53a23ddd52f393
2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Regression: Invalid write in SVGTextLayoutEngine
        https://bugs.webkit.org/show_bug.cgi?id=57721

        * svg/text/font-size-null-assertion-expected.txt: Added.
        * svg/text/font-size-null-assertion.svg: Added.

2011-04-05  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Regression: Invalid write in SVGTextLayoutEngine
        https://bugs.webkit.org/show_bug.cgi?id=57721

        Properly stop layout if all metrics object refer to zero-width/height characters,
        which can happen for instance when using <text font-size="0">.

        Test: svg/text/font-size-null-assertion.svg

        * rendering/svg/SVGTextLayoutEngine.cpp:
        (WebCore::SVGTextLayoutEngine::currentLogicalCharacterAttributes):
        (WebCore::SVGTextLayoutEngine::currentLogicalCharacterMetrics):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/text/font-size-null-assertion-expected.txt [new file with mode: 0644]
LayoutTests/svg/text/font-size-null-assertion.svg [new file with mode: 0755]
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/SVGTextLayoutEngine.cpp