LayoutTests:

        Reviewed by Adele.
        
        <rdar://problem/5240265> REGRESSION: Clicking a <button> clears the selection in contenteditable areas

        * editing/selection/5240265-expected.checksum: Added.
        * editing/selection/5240265-expected.png: Added.
        * editing/selection/5240265-expected.txt: Added.
        * editing/selection/5240265.html: Added.

WebCore:

        Reviewed by Adele.

        <rdar://problem/5240265> 
        REGRESSION: Clicking a <button> clears the selection in contenteditable areas

        * page/FocusController.cpp:
        (WebCore::clearSelectionIfNeeded): Don't clear the selection if
        the mouse press that caused the focus shift occurred in 
        a -webkit-user-select: ignore region.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7 files changed