Changeset 79329 in webkit


Ignore:
Timestamp:
Feb 22, 2011 9:39:35 AM (13 years ago)
Author:
Martin Robinson
Message:

2011-02-02 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] DRT needs an implementation of LayoutTestController.setSelectTrailingWhitespace
https://bugs.webkit.org/show_bug.cgi?id=53603

  • platform/gtk/Skipped: Unskip passing tests.

2011-02-02 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] DRT needs an implementation of LayoutTestController.setSelectTrailingWhitespace
https://bugs.webkit.org/show_bug.cgi?id=53603

Add setSelectTrailingWhitespaceEnabled and selectTrailingWhitespaceEnabled which allow
setting and querying the selectTrailingWhitespaceEnabled setting. EditorClient just
listens to this value during DRT runs. Perhaps later we can expose this to the public
API.

  • WebCoreSupport/DumpRenderTreeSupportGtk.cpp: (DumpRenderTreeSupportGtk::setSelectTrailingWhitespaceEnabled): Added (DumpRenderTreeSupportGtk::selectTrailingWhitespaceEnabled): Added
  • WebCoreSupport/DumpRenderTreeSupportGtk.h:
  • WebCoreSupport/EditorClientGtk.cpp: (WebKit::EditorClient::isSelectTrailingWhitespaceEnabled): Ask DRTSupportGtk for the appropriate return value.

2011-02-02 Martin Robinson <mrobinson@igalia.com>

Reviewed by Xan Lopez.

[GTK] DRT needs an implementation of LayoutTestController.setSelectTrailingWhitespace
https://bugs.webkit.org/show_bug.cgi?id=53603

Add support for LayoutTestController.setSelectTrailingWhitespace by calling through
to DumpRenderTreeSupportGtk for this functionality.

  • DumpRenderTree/gtk/DumpRenderTree.cpp: (resetDefaultsToConsistentValues): Always call LayoutTestController.setSelectTrailingWhitespace to false when reseting values between tests.
  • DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: (LayoutTestController::setSelectTrailingWhitespaceEnabled): Call LayoutTestController.setSelectTrailingWhitespace with the appropriate value.
Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r79328 r79329  
     12011-02-02  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] DRT needs an implementation of LayoutTestController.setSelectTrailingWhitespace
     6        https://bugs.webkit.org/show_bug.cgi?id=53603
     7
     8        * platform/gtk/Skipped: Unskip passing tests.
     9
    1102011-02-22  Adam Roben  <aroben@apple.com>
    211
  • trunk/LayoutTests/platform/gtk/Skipped

    r79308 r79329  
    11421142editing/pasteboard/smart-drag-drop.html
    11431143editing/selection/drag-start-event-client-x-y.html
    1144 editing/selection/doubleclick-beside-cr-span.html
    11451144
    11461145# Fails because multiple clicks in a row in the same place
     
    13151314http/tests/security/local-user-CSS-from-remote.html
    13161315
    1317 # Need an implementation of setSelectTrailingWhitespace
    1318 # https://bugs.webkit.org/show_bug.cgi?id=53603
    1319 editing/selection/doubleclick-whitespace.html
    1320 
    13211316# Need an implementation of PlainTextController
    13221317# https://bugs.webkit.org/show_bug.cgi?id=53605
  • trunk/Source/WebKit/gtk/ChangeLog

    r79215 r79329  
     12011-02-02  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] DRT needs an implementation of LayoutTestController.setSelectTrailingWhitespace
     6        https://bugs.webkit.org/show_bug.cgi?id=53603
     7
     8        Add setSelectTrailingWhitespaceEnabled and selectTrailingWhitespaceEnabled which allow
     9        setting and querying the selectTrailingWhitespaceEnabled setting. EditorClient just
     10        listens to this value during DRT runs. Perhaps later we can expose this to the public
     11        API.
     12
     13        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
     14        (DumpRenderTreeSupportGtk::setSelectTrailingWhitespaceEnabled): Added
     15        (DumpRenderTreeSupportGtk::selectTrailingWhitespaceEnabled): Added
     16        * WebCoreSupport/DumpRenderTreeSupportGtk.h:
     17        * WebCoreSupport/EditorClientGtk.cpp:
     18        (WebKit::EditorClient::isSelectTrailingWhitespaceEnabled): Ask DRTSupportGtk
     19        for the appropriate return value.
     20
    1212011-02-21  Alejandro G. Castro  <alex@igalia.com>
    222
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp

    r78620 r79329  
    7070bool DumpRenderTreeSupportGtk::s_drtRun = false;
    7171bool DumpRenderTreeSupportGtk::s_linksIncludedInTabChain = true;
     72bool DumpRenderTreeSupportGtk::s_selectTrailingWhitespaceEnabled = false;
    7273
    7374DumpRenderTreeSupportGtk::DumpRenderTreeSupportGtk()
     
    101102{
    102103    WebKit::setIconDatabaseEnabled(enabled);
     104}
     105
     106void DumpRenderTreeSupportGtk::setSelectTrailingWhitespaceEnabled(bool enabled)
     107{
     108    s_selectTrailingWhitespaceEnabled = enabled;
     109}
     110
     111bool DumpRenderTreeSupportGtk::selectTrailingWhitespaceEnabled()
     112{
     113    return s_selectTrailingWhitespaceEnabled;
    103114}
    104115
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h

    r78620 r79329  
    5555    static bool linksIncludedInFocusChain();
    5656    static void setIconDatabaseEnabled(bool);
     57    static void setSelectTrailingWhitespaceEnabled(bool);
     58    static bool selectTrailingWhitespaceEnabled();
     59
    5760    static JSValueRef nodesFromRect(JSContextRef context, JSValueRef value, int x, int y, unsigned top, unsigned right, unsigned bottom, unsigned left, bool ignoreClipping);
    5861    static void dumpConfigurationForViewport(WebKitWebView* webView, gint availableWidth, gint availableHeight);
     
    106109    static bool s_drtRun;
    107110    static bool s_linksIncludedInTabChain;
     111    static bool s_selectTrailingWhitespaceEnabled;
    108112};
    109113
  • trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp

    r79130 r79329  
    2626
    2727#include "DataObjectGtk.h"
     28#include "DumpRenderTreeSupportGtk.h"
    2829#include "EditCommand.h"
    2930#include "Editor.h"
     
    572573bool EditorClient::isSelectTrailingWhitespaceEnabled()
    573574{
    574     notImplemented();
    575     return false;
     575    if (!DumpRenderTreeSupportGtk::dumpRenderTreeModeEnabled())
     576        return false;
     577    return DumpRenderTreeSupportGtk::selectTrailingWhitespaceEnabled();
    576578}
    577579
  • trunk/Tools/ChangeLog

    r79327 r79329  
     12011-02-02  Martin Robinson  <mrobinson@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] DRT needs an implementation of LayoutTestController.setSelectTrailingWhitespace
     6        https://bugs.webkit.org/show_bug.cgi?id=53603
     7
     8        Add support for LayoutTestController.setSelectTrailingWhitespace by calling through
     9        to DumpRenderTreeSupportGtk for this functionality.
     10
     11        * DumpRenderTree/gtk/DumpRenderTree.cpp:
     12        (resetDefaultsToConsistentValues): Always call LayoutTestController.setSelectTrailingWhitespace to
     13        false when reseting values between tests.
     14        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
     15        (LayoutTestController::setSelectTrailingWhitespaceEnabled): Call LayoutTestController.setSelectTrailingWhitespace
     16        with the appropriate value.
     17
    1182011-02-22  Adam Roben  <aroben@apple.com>
    219
  • trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp

    r78718 r79329  
    455455    DumpRenderTreeSupportGtk::setLinksIncludedInFocusChain(true);
    456456    DumpRenderTreeSupportGtk::setIconDatabaseEnabled(false);
     457    DumpRenderTreeSupportGtk::setSelectTrailingWhitespaceEnabled(false);
    457458
    458459    if (axController)
  • trunk/Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp

    r78620 r79329  
    509509void LayoutTestController::setSelectTrailingWhitespaceEnabled(bool flag)
    510510{
    511     // FIXME: implement
     511    DumpRenderTreeSupportGtk::setSelectTrailingWhitespaceEnabled(flag);
    512512}
    513513
Note: See TracChangeset for help on using the changeset viewer.