Reviewed by John.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Jan 2007 19:13:14 +0000 (19:13 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Jan 2007 19:13:14 +0000 (19:13 +0000)
commit486cd6e6f18044347f6082cded2230cad0255d3b
treed42c948fad95b31739a0ccc935320f05b2a61dcf
parent8fecc96228f671b28f77f5f62b0345d7af271f21
    Reviewed by John.

        - fixed <rdar://problem/4887416> REGRESSION (SearchField): Assertion failure in HTMLInputElement::setValueFromRenderer when editing via drag and drop (11846)
        http://bugs.webkit.org/show_bug.cgi?id=11846

        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplaceSelectionCommand::doApply): Don't insert extra paragraph separators to avoid
        nesting blocks in plaintext mode, since that's not an issue under normal circumstances.
        * html/HTMLInputElement.h:
        * manual-tests/drag-move-in-search-field.html: Added.
        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::subtreeHasChanged): constrain the value; we'd
        rather truncate it than end up with an illegal value here.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/editing/ReplaceSelectionCommand.cpp
WebCore/html/HTMLInputElement.h
WebCore/manual-tests/drag-move-in-search-field.html [new file with mode: 0644]
WebCore/rendering/RenderTextControl.cpp