JavaScriptCore:
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Jul 2006 17:32:15 +0000 (17:32 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Jul 2006 17:32:15 +0000 (17:32 +0000)
commit21438860e82d7b718bae32d7d9ab5257eeb572c8
treef37c898d9b27624a7c837c1432726515b6ed1817
parent7f026fd97c36b60968e49dd3df25cc518fe74e3e
JavaScriptCore:

2006-07-19  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        <rdar://problem/4620655> REGRESSION(10.4.7-10.5): preview button for a blogger.com post doesn't work

        * kjs/nodes2string.cpp:
        (StringNode::streamTo):
        Return the escaped string.

        (RegExpNode::streamTo):
        Use the correct syntax.

        * kjs/function.cpp:
        (KJS::escapeStringForPrettyPrinting):
        * kjs/function.h:
        Add escape function which escapes a string for pretty-printing so it can be parsed again.

        * wtf/unicode/icu/UnicodeIcu.h:
        (WTF::Unicode::isPrintableChar):
        New function.

LayoutTests:

2006-07-19  Anders Carlsson  <acarlsson@apple.com>

        Reviewed by Darin.

        <rdar://problem/4620655> REGRESSION(10.4.7-10.5): preview button for a blogger.com post doesn't work

        * fast/js/pretty-print-expected.txt: Added.
        * fast/js/pretty-print.html: Added.
        * fast/js/resources/pretty-print.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/function.cpp
JavaScriptCore/kjs/function.h
JavaScriptCore/kjs/nodes2string.cpp
JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h
LayoutTests/ChangeLog
LayoutTests/fast/js/pretty-print-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/pretty-print.html [new file with mode: 0644]
LayoutTests/fast/js/resources/pretty-print.js [new file with mode: 0644]