WebCore:
authorjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2008 21:51:13 +0000 (21:51 +0000)
committerjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Jan 2008 21:51:13 +0000 (21:51 +0000)
commitb98feefea40d69e180bd308d1f14a4aeffdfc22e
treea70d4b1767fe75b7a9b1bf29707b62cb16e41d0a
parent8fed0ed185047dda7b7181c42088af0ed7ea036c
WebCore:

        Reviewed by Alice Liu.

        <rdar://problem/5658727> Undo/redo for pasted or typed text in yahoo mail becomes disabled after one round of being selected

        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::updateFromElement): If value == text() and
        m_innerText is empty, then value and text() are "". In that case both DOM
        mutations are no-ops and there is no reason to clear the Undo stack.

LayoutTests:

        Reviewed by Alice Liu.

        <rdar://problem/5658727> Undo/redo for pasted or typed text in yahoo mail becomes disabled after one round of being selected

        * editing/undo/5658727-expected.txt: Added.
        * editing/undo/5658727.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/undo/5658727-expected.txt [new file with mode: 0644]
LayoutTests/editing/undo/5658727.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderTextControl.cpp