Need to reset the scale, much like zoom.
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Apr 2011 00:19:41 +0000 (00:19 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Apr 2011 00:19:41 +0000 (00:19 +0000)
* DumpRenderTree/mac/DumpRenderTree.mm:
(resetWebViewToConsistentStateBeforeTesting):

Rubber-stamped by Geoff Garen.

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

Tools/ChangeLog
Tools/DumpRenderTree/mac/DumpRenderTree.mm

index db6c7ae..491b6d9 100644 (file)
@@ -1,3 +1,11 @@
+2011-04-02  Beth Dakin  <bdakin@apple.com>
+
+        Rubber-stamped by Geoff Garen.
+
+        Need to reset the scale, much like zoom.
+        * DumpRenderTree/mac/DumpRenderTree.mm:
+        (resetWebViewToConsistentStateBeforeTesting):
+
 2011-04-02  Sam Weinig  <sam@webkit.org>
 
         Reviewed by Beth Dakin.
index 58516b8..e6dcdc1 100644 (file)
@@ -1026,6 +1026,7 @@ static void resetWebViewToConsistentStateBeforeTesting()
     [(EditingDelegate *)[webView editingDelegate] setAcceptsEditing:YES];
     [webView makeTextStandardSize:nil];
     [webView resetPageZoom:nil];
+    [webView _scaleWebView:1.0 atOrigin:NSMakePoint(0, 0)];
     [webView setTabKeyCyclesThroughElements:YES];
     [webView setPolicyDelegate:nil];
     [policyDelegate setPermissive:NO];