Skip to content
  • tonikitoo@webkit.org's avatar
    Needs a "LinuxEditingBehavior", perhaps with a better name · 525d4c70
    tonikitoo@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=36627
    
    Reviewed by Ojan Vafai.
    Patch by Antonio Gomes <agomes@rim.com>
    
    WebCore:
    
    Added EditingUnixBehavior editing type aim to cover the cases when
    neither Mac or Windows behaviors are appropriated.
    
    It was decided to name it Unix not Linux.
    
    No new tests. The current editing tests that involve platform specific
    bahaviors are coded so that they go through all editing behavior
    types possible. There will be a follow up bug where all of them will
    be updated to include the new editing behavior ("unix").
    
    * editing/EditingBehaviorTypes.h:
    * page/Settings.cpp:
    (WebCore::editingBehaviorTypeForPlatform):
    (WebCore::Settings::Settings):
    
    WebKit/chromium:
    
    Added the corresponding Chromium setting to WebCore's EditingUnixBehavior: EditingBehaviorUnix.
    
    * public/WebSettings.h:
    * src/AssertMatchingEnums.cpp:
    
    WebKit/gtk:
    
    Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WEBKIT_EDITING_BEHAVIOR_UNIX.
    
    * webkit/webkitwebsettings.cpp:
    (webkit_web_settings_class_init):
    * webkit/webkitwebsettings.h:
    
    WebKit/mac:
    
    Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WebKitEditingUnixBehavior.
    
    * WebView/WebFrame.mm:
    (core):
    * WebView/WebPreferencesPrivate.h:
    
    WebKit/qt:
    
    Adding support to Qt's DRTSupport class to test the newly introduced Unix editing behavior.
    
    * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
    (DumpRenderTreeSupportQt::setEditingBehavior):
    
    WebKit/win:
    
    Added the corresponding GTK+ setting to WebCore's EditingUnixBehavior: WebKitEditingUnixBehavior.
    
    * Interfaces/IWebPreferences.idl:
    
    WebKitTools:
    
    Adding support to Mac's, GTK+'s, Windows' and Chromium's LayoutTestController class to test the newly introduced Unix editing behavior.
    
    * DumpRenderTree/chromium/LayoutTestController.cpp:
    (LayoutTestController::setEditingBehavior):
    * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
    (LayoutTestController::setEditingBehavior):
    * DumpRenderTree/mac/LayoutTestControllerMac.mm:
    (LayoutTestController::setEditingBehavior):
    * DumpRenderTree/win/LayoutTestControllerWin.cpp:
    (LayoutTestController::setEditingBehavior):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    525d4c70