WebCore:
authorgdennis <gdennis@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Nov 2006 12:04:50 +0000 (12:04 +0000)
committergdennis <gdennis@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Nov 2006 12:04:50 +0000 (12:04 +0000)
commitc533364fb899f93f583f189d87b7f2648a092735
tree2329a64d97b8c2715c429f26564796bf61bca5fc
parent53f25f624bed4386054e286df88f6506f3dba018
WebCore:

        Reviewed by mitz.

        REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
        http://bugs.webkit.org/show_bug.cgi?id=11570

        * rendering/RenderStyle.h:
        (WebCore::RenderStyle::isSpace): Added.
        * rendering/RenderText.cpp:
        (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths,
        treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'

LayoutTests:

        Reviewed by mitz.

        REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
        http://bugs.webkit.org/show_bug.cgi?id=11570

        * fast/text/whitespace/nbsp-mode-and-linewraps-expected.checksum: Added.
        * fast/text/whitespace/nbsp-mode-and-linewraps-expected.png: Added.
        * fast/text/whitespace/nbsp-mode-and-linewraps-expected.txt: Added.
        * fast/text/whitespace/nbsp-mode-and-linewraps.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/whitespace/nbsp-mode-and-linewraps-expected.checksum [new file with mode: 0644]
LayoutTests/fast/text/whitespace/nbsp-mode-and-linewraps-expected.png [new file with mode: 0644]
LayoutTests/fast/text/whitespace/nbsp-mode-and-linewraps-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/whitespace/nbsp-mode-and-linewraps.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderStyle.h
WebCore/rendering/RenderText.cpp