LayoutTests:
authorddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2006 04:42:01 +0000 (04:42 +0000)
committerddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 14 Jul 2006 04:42:01 +0000 (04:42 +0000)
commit49c67f50dc7a419bd1940443f167777aa4b8056a
treefaeb8636be73c3f921014b5fa12b8c6fb9ce8726
parent423c5dfc18ced8a3c397bbe8afb8c2b8bc8868cb
LayoutTests:

        Reviewed by Hyatt.  Patch by Mitz.

        - test and updated results for http://bugzilla.opendarwin.org/show_bug.cgi?id=9670
          REGRESSION: RTL white-space:pre-wrap text is offset to the right

        * editing/deleting/delete-to-select-table-expected.txt:
        * editing/execCommand/boldSelection-expected.txt:
        * editing/execCommand/italicizeByCharacter-expected.txt:
        * editing/execCommand/modifyForeColorByCharacter-expected.txt:
        * editing/execCommand/print-expected.txt:
        * editing/execCommand/selectAll-expected.txt:
        * editing/execCommand/strikethroughSelection-expected.txt:
        * editing/inserting/insert-div-027-expected.txt:
        * editing/selection/after-line-wrap-expected.txt:
        * editing/selection/mixed-editability-1-expected.txt:
        * editing/selection/select-all-001-expected.txt:
        * editing/selection/select-all-002-expected.txt:
        * editing/selection/select-all-003-expected.txt:
        * fast/clip/outline-overflowClip-expected.txt:
        * fast/text/international/rtl-white-space-pre-wrap-expected.checksum: Added.
        * fast/text/international/rtl-white-space-pre-wrap-expected.png: Added.
        * fast/text/international/rtl-white-space-pre-wrap-expected.txt: Added.
        * fast/text/international/rtl-white-space-pre-wrap.html: Added.
        * fast/text/whitespace/pre-wrap-overflow-selection-expected.txt:
        * fast/text/whitespace/pre-wrap-spaces-after-newline-expected.txt:

WebCore:

        Reviewed by Hyatt.  Patch by Mitz.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9670
          REGRESSION: RTL white-space:pre-wrap text is offset to the right

        Test: fast/text/international/rtl-white-space-pre-wrap.html

        * rendering/RenderText.cpp:
        (WebCore::RenderText::caretRect): Fixed LTR case and added the RTL case
        of clipping the caret position to the text box when the caret is after
        the trailing space of an autowrapped line.
        * rendering/bidi.cpp:
        (WebCore::RenderBlock::computeHorizontalPositionsForLine): Changed to truncate-
        to-fit the logically last text box if it contains the trailing spaces of an
        autowrapped line.
        (WebCore::RenderBlock::bidiReorderLine): Remember the logically last text run.
        In the case of autowrapped text with white space that overflows beyond the line,
        the last text run is the one containing the overflowing white space.
        (WebCore::RenderBlock::findNextLineBreak): Split overflowing white space on a
        line that autowraps only after white space into a separate text run.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-to-select-table-expected.txt
LayoutTests/editing/execCommand/boldSelection-expected.txt
LayoutTests/editing/execCommand/italicizeByCharacter-expected.txt
LayoutTests/editing/execCommand/modifyForeColorByCharacter-expected.txt
LayoutTests/editing/execCommand/print-expected.txt
LayoutTests/editing/execCommand/selectAll-expected.txt
LayoutTests/editing/execCommand/strikethroughSelection-expected.txt
LayoutTests/editing/inserting/insert-div-027-expected.txt
LayoutTests/editing/selection/after-line-wrap-expected.txt
LayoutTests/editing/selection/mixed-editability-1-expected.txt
LayoutTests/editing/selection/select-all-001-expected.txt
LayoutTests/editing/selection/select-all-002-expected.txt
LayoutTests/editing/selection/select-all-003-expected.txt
LayoutTests/fast/clip/outline-overflowClip-expected.txt
LayoutTests/fast/text/international/rtl-white-space-pre-wrap-expected.checksum [new file with mode: 0644]
LayoutTests/fast/text/international/rtl-white-space-pre-wrap-expected.png [new file with mode: 0644]
LayoutTests/fast/text/international/rtl-white-space-pre-wrap-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/international/rtl-white-space-pre-wrap.html [new file with mode: 0644]
LayoutTests/fast/text/whitespace/pre-wrap-overflow-selection-expected.txt
LayoutTests/fast/text/whitespace/pre-wrap-spaces-after-newline-expected.txt
WebCore/ChangeLog
WebCore/rendering/RenderText.cpp
WebCore/rendering/bidi.cpp