Changeset 80553 in webkit


Ignore:
Timestamp:
Mar 8, 2011 1:54:26 AM (13 years ago)
Author:
Carlos Garcia Campos
Message:

2011-03-08 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[GTK] Add layoutTestController.setValueForUser() after r80412
https://bugs.webkit.org/show_bug.cgi?id=55862

  • platform/gtk/Skipped: Unskip test fast/forms/onchange-setvalueforuser.html that passes now.

2011-03-08 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[GTK] Add layoutTestController.setValueForUser() after r80412
https://bugs.webkit.org/show_bug.cgi?id=55862

Add setValueForUser method to DumpRenderTreeSupportGTK.

  • WebCoreSupport/DumpRenderTreeSupportGtk.cpp: (DumpRenderTreeSupportGtk::setValueForUser):
  • WebCoreSupport/DumpRenderTreeSupportGtk.h:

2011-03-08 Carlos Garcia Campos <cgarcia@igalia.com>

Reviewed by Martin Robinson.

[GTK] Add layoutTestController.setValueForUser() after r80412
https://bugs.webkit.org/show_bug.cgi?id=55862

  • DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: (LayoutTestController::setValueForUser): Implement setValueForUser()
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r80550 r80553  
     12011-03-08  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Add layoutTestController.setValueForUser() after r80412
     6        https://bugs.webkit.org/show_bug.cgi?id=55862
     7
     8        * platform/gtk/Skipped: Unskip test
     9        fast/forms/onchange-setvalueforuser.html that passes now.
     10
    1112011-03-08  Noel Gordon  <noel.gordon@gmail.com>
    212
  • trunk/LayoutTests/platform/gtk/Skipped

    r80546 r80553  
    13091309fast/canvas/rgba-parsing.html
    13101310
    1311 # Missing layoutTestController.setValueForUser
    1312 # https://bugs.webkit.org/show_bug.cgi?id=55862
    1313 fast/forms/onchange-setvalueforuser.html
    1314 
    13151311# DataTransferItems is not yet implemented.
    13161312editing/pasteboard/data-transfer-items.html
  • trunk/Source/WebKit/gtk/ChangeLog

    r80475 r80553  
     12011-03-08  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Add layoutTestController.setValueForUser() after r80412
     6        https://bugs.webkit.org/show_bug.cgi?id=55862
     7
     8        Add setValueForUser method to DumpRenderTreeSupportGTK.
     9
     10        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
     11        (DumpRenderTreeSupportGtk::setValueForUser):
     12        * WebCoreSupport/DumpRenderTreeSupportGtk.h:
     13
    1142011-03-07  Sam Weinig  <sam@webkit.org>
    215
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp

    r80077 r80553  
    3535#include "GCController.h"
    3636#include "GraphicsContext.h"
     37#include "InputElement.h"
    3738#include "JSDOMWindow.h"
    3839#include "JSDocument.h"
     
    670671    core(webView)->settings()->setMinDOMTimerInterval(interval);
    671672}
     673
     674void DumpRenderTreeSupportGtk::setValueForUser(JSContextRef context, JSValueRef nodeObject, JSStringRef value)
     675{
     676    JSC::ExecState* exec = toJS(context);
     677    Element* element = toElement(toJS(exec, nodeObject));
     678    if (!element)
     679        return;
     680    InputElement* inputElement = toInputElement(element);
     681    if (!inputElement)
     682        return;
     683
     684    size_t bufferSize = JSStringGetMaximumUTF8CStringSize(value);
     685    GOwnPtr<gchar> valueBuffer(static_cast<gchar*>(g_malloc(bufferSize)));
     686    JSStringGetUTF8CString(value, valueBuffer.get(), bufferSize);
     687    inputElement->setValueForUser(String::fromUTF8(valueBuffer.get()));
     688}
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h

    r79793 r80553  
    8686    static AtkObject* getRootAccessibleElement(WebKitWebFrame*);
    8787    static void layoutFrame(WebKitWebFrame*);
     88    static void setValueForUser(JSContextRef, JSValueRef, JSStringRef);
    8889
    8990    // WebKitWebView
  • trunk/Tools/ChangeLog

    r80549 r80553  
     12011-03-08  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Add layoutTestController.setValueForUser() after r80412
     6        https://bugs.webkit.org/show_bug.cgi?id=55862
     7
     8        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
     9        (LayoutTestController::setValueForUser): Implement setValueForUser()
     10
    1112011-03-08  Patrick Gansterer  <paroga@webkit.org>
    212
  • trunk/Tools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp

    r80412 r80553  
    333333}
    334334
    335 void LayoutTestController::setValueForUser(JSContextRef context, JSValueRef element, JSStringRef value)
    336 {
    337     // FIXME: implement
     335void LayoutTestController::setValueForUser(JSContextRef context, JSValueRef nodeObject, JSStringRef value)
     336{
     337    DumpRenderTreeSupportGtk::setValueForUser(context, nodeObject, value);
    338338}
    339339
Note: See TracChangeset for help on using the changeset viewer.