Reviewed by Maciej.
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Nov 2007 09:45:09 +0000 (09:45 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 25 Nov 2007 09:45:09 +0000 (09:45 +0000)
commit1856e237be8dee43d1b54fc1c3a69307028ca2fa
tree4f70d1d2e320ccac251731f0eecee25892c541d0
parent0a722d5f8870c905444326f5931c4552b53d31d7
    Reviewed by Maciej.

        http://bugs.webkit.org/show_bug.cgi?id=15919
        XSLTProcessor.transformToFragment creates an extra not defined TEXT_NODE at the end

        Test: fast/xsl/extra-lf-at-end.html

        * xml/XSLTProcessor.cpp:
        (WebCore::writeToVector): Changed to use Vector to avoid slow String::apend().
        (WebCore::saveResultToString): Remove trailing line feed if present.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28014 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xsl/extra-lf-at-end-expected.txt [new file with mode: 0644]
LayoutTests/fast/xsl/extra-lf-at-end.html [new file with mode: 0644]
LayoutTests/fast/xsl/xslt-processor-expected.txt
LayoutTests/platform/mac/fast/xsl/xslt-enc-cyr-expected.txt
LayoutTests/platform/mac/fast/xsl/xslt-enc-expected.txt
LayoutTests/platform/mac/fast/xsl/xslt-enc16-expected.txt
LayoutTests/platform/mac/fast/xsl/xslt-enc16to16-expected.txt
LayoutTests/platform/mac/fast/xsl/xslt-text-expected.txt
WebCore/ChangeLog
WebCore/xml/XSLTProcessor.cpp