LayoutTests:
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Mar 2007 23:57:56 +0000 (23:57 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Mar 2007 23:57:56 +0000 (23:57 +0000)
commitb793b1e676954909f9760beb41cf16a1a978a2c0
tree75d1a28a6486aa8adcbd9b7d1bfacfd111e53da7
parentb8bcde30287e80c46e16c04323f80013448d28ed
LayoutTests:

        Reviewed by Alexey

        Test that this works correctly with composed characters
        http://bugs.webkit.org/show_bug.cgi?id=12833
        REGRESSION: Selecting text in 6.6MB txt file is sluggish as of the Feb 19th nightly
        <rdar://problem/5028159>

        * fast/text/large-text-composed-char-expected.checksum: Added.
        * fast/text/large-text-composed-char-expected.png: Added.
        * fast/text/large-text-composed-char-expected.txt: Added.
        * fast/text/large-text-composed-char.html: Added.

WebCore:

        Reviewed by Alexey.

        Fix http://bugs.webkit.org/show_bug.cgi?id=12833
        REGRESSION: Selecting text in 6.6MB txt file is sluggish as of the Feb 19th nightly
        <rdar://problem/5028159>

        Divide large text blocks (>64kB) over multiple text nodes. This limits linebox searches to
        a manageable subset.

        * dom/Text.cpp:
        (WebCore::Text::createWithLengthLimit):
        * dom/Text.h:
        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::parseToken):
        * loader/TextDocument.cpp:
        (WebCore::TextTokenizer::write):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20127 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/large-text-composed-char-expected.checksum [new file with mode: 0644]
LayoutTests/fast/text/large-text-composed-char-expected.png [new file with mode: 0644]
LayoutTests/fast/text/large-text-composed-char-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/large-text-composed-char.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Text.cpp
WebCore/dom/Text.h
WebCore/html/HTMLParser.cpp
WebCore/loader/TextDocument.cpp