Fix zoom related tests when testing WebKit2.
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Sep 2010 02:15:59 +0000 (02:15 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 12 Sep 2010 02:15:59 +0000 (02:15 +0000)
Reviewed by Maciej Stachowiak.

* WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
(WTR::EventSendingController::zoomPageIn): Zoom in and zoom out are not the same.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67314 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/WebKitTestRunner/InjectedBundle/EventSendingController.cpp

index 558022c28138d42b535a07e7fb2302d09411dd11..ccd6868a645a657bb8e674398d0ab69284149599 100644 (file)
@@ -1,3 +1,12 @@
+2010-09-11  Sam Weinig  <sam@webkit.org>
+
+        Reviewed by Maciej Stachowiak.
+
+        Fix zoom related tests when testing WebKit2.
+
+        * WebKitTestRunner/InjectedBundle/EventSendingController.cpp:
+        (WTR::EventSendingController::zoomPageIn): Zoom in and zoom out are not the same.
+
 2010-09-11  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Dan Bernstein.
 2010-09-11  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Dan Bernstein.
index 9e8fc63a1a864a5e3f4546dcff1fef71695c8e9a..73de45bf66d02a8e7c3130ef9137db670fbe1715 100644 (file)
@@ -114,7 +114,7 @@ void EventSendingController::zoomPageIn()
     WKBundlePageSetTextZoomFactor(InjectedBundle::shared().page()->page(), 1);
 
     double zoomFactor = WKBundlePageGetPageZoomFactor(InjectedBundle::shared().page()->page());
     WKBundlePageSetTextZoomFactor(InjectedBundle::shared().page()->page(), 1);
 
     double zoomFactor = WKBundlePageGetPageZoomFactor(InjectedBundle::shared().page()->page());
-    WKBundlePageSetPageZoomFactor(InjectedBundle::shared().page()->page(), zoomFactor / ZoomMultiplierRatio);
+    WKBundlePageSetPageZoomFactor(InjectedBundle::shared().page()->page(), zoomFactor * ZoomMultiplierRatio);
 }
 
 void EventSendingController::zoomPageOut()
 }
 
 void EventSendingController::zoomPageOut()