2007-08-25 Mitz Pettel <mitz@webkit.org>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Aug 2007 12:21:02 +0000 (12:21 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Aug 2007 12:21:02 +0000 (12:21 +0000)
commit75bf571e1ac4574091b99b1b2a424fef338948a1
tree3e04efd19c49c916cdafd30a12410ac4ed8a250a
parentcda5ea17c3dfacacecdd296d1b407366ea34626d
2007-08-25  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Justin.

        - fix http://bugs.webkit.org/show_bug.cgi?id=14792
          <rdar://problem/5367763> REGRESSION: Copy inserts carriage return in middle of selection

        Test: editing/pasteboard/newlines-around-floating-or-positioned.html

        * editing/TextIterator.cpp:
        (WebCore::shouldEmitNewlinesBeforeAndAfterNode): Do not emit newlines around
        floating or positioned blocks. This behavior seems to match WinIE's.

2007-08-25  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Justin.

        - test and updated results for http://bugs.webkit.org/show_bug.cgi?id=14792
          <rdar://problem/5367763> REGRESSION: Copy inserts carriage return in middle of selection

        * editing/pasteboard/newlines-around-floating-or-positioned-expected.txt: Added.
        * editing/pasteboard/newlines-around-floating-or-positioned.html: Added.
        * fast/events/capture-on-target-expected.txt:
        * fast/events/mouseclick-target-and-positioning-expected.txt:
        * fast/events/mouseover-mouseout-expected.txt:
        * fast/events/mouseover-mouseout2-expected.txt:
        * fast/events/window-events-bubble-expected.txt:
        * fast/events/window-events-bubble2-expected.txt:
        * fast/events/window-events-capture-expected.txt:
        * fast/forms/input-appearance-elementFromPoint-expected.txt:
        * fast/forms/onselect-textarea-expected.txt:
        * fast/forms/onselect-textfield-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/newlines-around-floating-or-positioned-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/newlines-around-floating-or-positioned.html [new file with mode: 0644]
LayoutTests/fast/events/capture-on-target-expected.txt
LayoutTests/fast/events/mouseclick-target-and-positioning-expected.txt
LayoutTests/fast/events/mouseover-mouseout-expected.txt
LayoutTests/fast/events/mouseover-mouseout2-expected.txt
LayoutTests/fast/events/window-events-bubble-expected.txt
LayoutTests/fast/events/window-events-bubble2-expected.txt
LayoutTests/fast/events/window-events-capture-expected.txt
LayoutTests/fast/forms/input-appearance-elementFromPoint-expected.txt
LayoutTests/fast/forms/onselect-textarea-expected.txt
LayoutTests/fast/forms/onselect-textfield-expected.txt
WebCore/ChangeLog
WebCore/editing/TextIterator.cpp