• mjs's avatar
    Reviewed by John. · 823a7d62
    mjs authored
            - 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: svn://svn.chromium.org/blink/trunk@18944 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    823a7d62
ChangeLog 313 KB