Changeset 56316 in webkit
- Timestamp:
- Mar 21, 2010, 12:09:40 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r56308 r56316 1 2010-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 1 12 2010-03-20 Dimitri Glazkov <dglazkov@chromium.org> 2 13 -
trunk/LayoutTests/platform/gtk/Skipped
r56209 r56316 1279 1279 fast/css/invalid-percentage-property.html 1280 1280 fast/css/text-align.html 1281 fast/css/zoom-body-scroll.html1282 1281 fast/css/getComputedStyle/computed-style-without-renderer.html 1283 1282 fast/css/getComputedStyle/computed-style.html … … 1465 1464 1466 1465 # Possible bug in eventSender.zoomPageOut() ? https://bugs.webkit.org/show_bug.cgi?id=30575 1467 fast/events/clientXY-in-zoom-and-scroll.html1468 1466 fast/dom/elementFromPoint-relative-to-viewport.html 1469 1467 … … 5809 5807 http/tests/cookies/third-party-cookie-relaxing.html 5810 5808 5811 # Needs double click support in DRT5812 # See https://bugs.webkit.org/show_bug.cgi?id=358625813 fast/events/zoom-dblclick.html5814 5815 5809 # For some reason crashes when run with all tests. Passes individually. 5816 5810 fast/forms/multiple-form-submission-protection-mouse.html -
trunk/WebKitTools/ChangeLog
r56313 r56316 1 2010-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 1 18 2010-03-20 Kevin Ollivier <kevino@theolliviers.com> 2 19 -
trunk/WebKitTools/DumpRenderTree/gtk/EventSender.cpp
r55309 r56316 578 578 } 579 579 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 580 static 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); 586 587 gfloat currentZoom = webkit_web_view_get_zoom_level(view); 587 588 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 591 static 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); 598 598 gfloat currentZoom = webkit_web_view_get_zoom_level(view); 599 599 webkit_web_view_set_zoom_level(view, currentZoom / zoomMultiplierRatio); 600 600 } 601 602 static 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 608 static JSValueRef textZoomOutCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 609 { 610 zoomOut(FALSE); 601 611 return JSValueMakeUndefined(context); 602 612 } … … 604 614 static JSValueRef zoomPageInCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 605 615 { 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); 611 617 return JSValueMakeUndefined(context); 612 618 } … … 614 620 static JSValueRef zoomPageOutCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 615 621 { 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); 621 623 return JSValueMakeUndefined(context); 622 624 }
Note:
See TracChangeset
for help on using the changeset viewer.