Skip to content
  • hbono@chromium.org's avatar
    [Refactoring] Move platform-specific code in Editor::respondToChangedSelection to the WebKit layer · 3b71ba04
    hbono@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=86591
    
    Reviewed by Ryosuke Niwa.
    
    This change adds a TextCheckerClient::shouldEraseMarkersAfterChangeSelection
    function to remove platform-specific code from Editor::respondToChangedSelection
    function.
    
    No new tests, no change in behavior.
    
    Source/WebCore:
    
    * editing/Editor.cpp:
    (WebCore::Editor::respondToChangedSelection):
    * loader/EmptyClients.h:
    (WebCore::EmptyTextCheckerClient::shouldEraseMarkersAfterChangeSelection):
    * platform/text/TextCheckerClient.h:
    (TextCheckerClient):
    
    Source/WebKit/blackberry:
    
    * WebCoreSupport/EditorClientBlackBerry.cpp:
    (WebCore::EditorClientBlackBerry::shouldEraseMarkersAfterChangeSelection):
    (WebCore):
    * WebCoreSupport/EditorClientBlackBerry.h:
    (EditorClientBlackBerry):
    
    Source/WebKit/chromium:
    
    * src/EditorClientImpl.cpp:
    (WebKit::EditorClientImpl::shouldEraseMarkersAfterChangeSelection):
    (WebKit):
    * src/EditorClientImpl.h:
    (EditorClientImpl):
    
    Source/WebKit/efl:
    
    * WebCoreSupport/EditorClientEfl.cpp:
    (WebCore::EditorClientEfl::shouldEraseMarkersAfterChangeSelection):
    (WebCore):
    * WebCoreSupport/EditorClientEfl.h:
    (EditorClientEfl):
    
    Source/WebKit/gtk:
    
    * WebCoreSupport/TextCheckerClientGtk.cpp:
    (WebKit::TextCheckerClientGtk::shouldEraseMarkersAfterChangeSelection):
    (WebKit):
    * WebCoreSupport/TextCheckerClientGtk.h:
    (TextCheckerClientGtk):
    
    Source/WebKit/mac:
    
    * WebCoreSupport/WebEditorClient.h:
    * WebCoreSupport/WebEditorClient.mm:
    (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
    
    Source/WebKit/qt:
    
    * WebCoreSupport/TextCheckerClientQt.cpp:
    (WebCore::TextCheckerClientQt::shouldEraseMarkersAfterChangeSelection):
    (WebCore):
    * WebCoreSupport/TextCheckerClientQt.h:
    (TextCheckerClientQt):
    
    Source/WebKit/win:
    
    * WebCoreSupport/WebEditorClient.cpp:
    (WebEditorClient::shouldEraseMarkersAfterChangeSelection):
    * WebCoreSupport/WebEditorClient.h:
    (WebEditorClient):
    
    Source/WebKit/wince:
    
    * WebCoreSupport/EditorClientWinCE.cpp:
    (WebKit::EditorClientWinCE::shouldEraseMarkersAfterChangeSelection):
    (WebKit):
    * WebCoreSupport/EditorClientWinCE.h:
    (EditorClientWinCE):
    
    Source/WebKit/wx:
    
    * WebKitSupport/EditorClientWx.cpp:
    (WebCore::EditorClientWx::shouldEraseMarkersAfterChangeSelection):
    (WebCore):
    * WebKitSupport/EditorClientWx.h:
    (EditorClientWx):
    
    Source/WebKit2:
    
    * WebProcess/WebCoreSupport/WebEditorClient.cpp:
    (WebKit::WebEditorClient::shouldEraseMarkersAfterChangeSelection):
    (WebKit):
    * WebProcess/WebCoreSupport/WebEditorClient.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117470 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3b71ba04