Changeset 56316 in webkit


Ignore:
Timestamp:
Mar 21, 2010, 12:09:40 PM (15 years ago)
Author:
Martin Robinson
Message:

2010-03-20 Martin Robinson <Martin Robinson>

Reviewed by Xan Lopez

[GTK] eventSender.zoomPageOut() bug?
https://bugs.webkit.org/show_bug.cgi?id=30575

Unskip some tests that were failing because of the bug in DRT.

  • platform/gtk/Skipped:

2010-03-20 Martin Robinson <Martin Robinson>

Reviewed by Xan Lopez.

[GTK] eventSender.zoomPageOut() bug?
https://bugs.webkit.org/show_bug.cgi?id=30575

Make zoomPage{In/Out}Callback respect the 1.2f zoom factor that DRT should be using.

  • DumpRenderTree/gtk/EventSender.cpp: (zoomIn): Added. (zoomOut): Added. (textZoomInCallback): Use zoomIn helper function. (textZoomOutCallback): Use zoomOut helper function. (zoomPageInCallback): Use zoomIn helper function, which respects zoom factor. (zoomPageOutCallback): Use zoomOut helper function, which respects zoom factor.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r56308 r56316  
     12010-03-20  Martin Robinson  <mrobinson@webkit.org>
     2
     3        Reviewed by Xan Lopez
     4
     5        [GTK] eventSender.zoomPageOut() bug?
     6        https://bugs.webkit.org/show_bug.cgi?id=30575
     7
     8        Unskip some tests that were failing because of the bug in DRT.
     9
     10        * platform/gtk/Skipped:
     11
    1122010-03-20  Dimitri Glazkov  <dglazkov@chromium.org>
    213
  • trunk/LayoutTests/platform/gtk/Skipped

    r56209 r56316  
    12791279fast/css/invalid-percentage-property.html
    12801280fast/css/text-align.html
    1281 fast/css/zoom-body-scroll.html
    12821281fast/css/getComputedStyle/computed-style-without-renderer.html
    12831282fast/css/getComputedStyle/computed-style.html
     
    14651464
    14661465# Possible bug in eventSender.zoomPageOut() ? https://bugs.webkit.org/show_bug.cgi?id=30575
    1467 fast/events/clientXY-in-zoom-and-scroll.html
    14681466fast/dom/elementFromPoint-relative-to-viewport.html
    14691467
     
    58095807http/tests/cookies/third-party-cookie-relaxing.html
    58105808
    5811 # Needs double click support in DRT
    5812 # See https://bugs.webkit.org/show_bug.cgi?id=35862
    5813 fast/events/zoom-dblclick.html
    5814 
    58155809# For some reason crashes when run with all tests. Passes individually.
    58165810fast/forms/multiple-form-submission-protection-mouse.html
  • trunk/WebKitTools/ChangeLog

    r56313 r56316  
     12010-03-20  Martin Robinson  <mrobinson@webkit.org>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] eventSender.zoomPageOut() bug?
     6        https://bugs.webkit.org/show_bug.cgi?id=30575
     7
     8        Make zoomPage{In/Out}Callback respect the 1.2f zoom factor that DRT should be using.
     9
     10        * DumpRenderTree/gtk/EventSender.cpp:
     11        (zoomIn): Added.
     12        (zoomOut): Added.
     13        (textZoomInCallback): Use zoomIn helper function.
     14        (textZoomOutCallback): Use zoomOut helper function.
     15        (zoomPageInCallback): Use zoomIn helper function, which respects zoom factor.
     16        (zoomPageOutCallback): Use zoomOut helper function, which respects zoom factor.
     17
    1182010-03-20  Kevin Ollivier  <kevino@theolliviers.com>
    219
  • trunk/WebKitTools/DumpRenderTree/gtk/EventSender.cpp

    r55309 r56316  
    578578}
    579579
    580 static JSValueRef textZoomInCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    581 {
    582     WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);
    583     if (!view)
    584         return JSValueMakeUndefined(context);
    585 
     580static void zoomIn(gboolean fullContentsZoom)
     581{
     582    WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);
     583    if (!view)
     584        return;
     585
     586    webkit_web_view_set_full_content_zoom(view, fullContentsZoom);
    586587    gfloat currentZoom = webkit_web_view_get_zoom_level(view);
    587588    webkit_web_view_set_zoom_level(view, currentZoom * zoomMultiplierRatio);
    588 
    589     return JSValueMakeUndefined(context);
    590 }
    591 
    592 static JSValueRef textZoomOutCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    593 {
    594     WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);
    595     if (!view)
    596         return JSValueMakeUndefined(context);
    597 
     589}
     590
     591static void zoomOut(gboolean fullContentsZoom)
     592{
     593    WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);
     594    if (!view)
     595        return;
     596
     597    webkit_web_view_set_full_content_zoom(view, fullContentsZoom);
    598598    gfloat currentZoom = webkit_web_view_get_zoom_level(view);
    599599    webkit_web_view_set_zoom_level(view, currentZoom / zoomMultiplierRatio);
    600 
     600}
     601
     602static JSValueRef textZoomInCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
     603{
     604    zoomIn(FALSE);
     605    return JSValueMakeUndefined(context);
     606}
     607
     608static JSValueRef textZoomOutCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
     609{
     610    zoomOut(FALSE);
    601611    return JSValueMakeUndefined(context);
    602612}
     
    604614static JSValueRef zoomPageInCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    605615{
    606     WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);
    607     if (!view)
    608         return JSValueMakeUndefined(context);
    609 
    610     webkit_web_view_zoom_in(view);
     616    zoomIn(TRUE);
    611617    return JSValueMakeUndefined(context);
    612618}
     
    614620static JSValueRef zoomPageOutCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception)
    615621{
    616     WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame);
    617     if (!view)
    618         return JSValueMakeUndefined(context);
    619 
    620     webkit_web_view_zoom_out(view);
     622    zoomOut(TRUE);
    621623    return JSValueMakeUndefined(context);
    622624}
Note: See TracChangeset for help on using the changeset viewer.