2008-11-24 Glenn Wilson <gwilson@chromium.org>
authordarin@chromium.org <darin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Nov 2008 00:18:48 +0000 (00:18 +0000)
committerdarin@chromium.org <darin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Nov 2008 00:18:48 +0000 (00:18 +0000)
commit8d27acd31da8f1e4fe2c8ce7657e766b08c72c7b
treef0c2ac138fb555ca521115f4690035d409e705e7
parent47d2e66fbfcf902abb28a24c0a27f50340690ca1
2008-11-24  Glenn Wilson  <gwilson@chromium.org>

        Reviewed by Alexey Proskuryakov.

        http://bugs.webkit.org/show_bug.cgi?id=15643

        Added support for clients that wish to disable smart insert/delete
        and enable the "trailing whitespace selection" work-around.

        Tests: editing/selection/doubleclick-whitespace.html

        * editing/Editor.cpp:
        (WebCore::Editor::selectTrailingWhitespaceEnabled):
        * editing/Editor.h:
        * editing/Selection.cpp:
        (WebCore::Selection::includeTrailingWhitespace):
        * editing/Selection.h:
        * loader/EmptyClients.h:
        (WebCore::EmptyEditorClient::selectTrailingWhitespaceEnabled):
        * page/EditorClient.h:
        * page/EventHandler.cpp:
        (WebCore::EventHandler::selectClosestWordFromMouseEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@38735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
27 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/selection/doubleclick-whitespace-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/doubleclick-whitespace.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/Editor.cpp
WebCore/editing/Editor.h
WebCore/editing/Selection.cpp
WebCore/editing/Selection.h
WebCore/loader/EmptyClients.h
WebCore/page/EditorClient.h
WebCore/page/EventHandler.cpp
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebEditorClient.h
WebKit/mac/WebCoreSupport/WebEditorClient.mm
WebKit/mac/WebView/WebView.mm
WebKit/mac/WebView/WebViewPrivate.h
WebKit/win/ChangeLog
WebKit/win/Interfaces/IWebView.idl
WebKit/win/WebCoreSupport/WebEditorClient.cpp
WebKit/win/WebCoreSupport/WebEditorClient.h
WebKit/win/WebView.cpp
WebKit/win/WebView.h
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/LayoutTestController.cpp
WebKitTools/DumpRenderTree/LayoutTestController.h
WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm
WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp