Change some floating point constants from 1.0 to 1.
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2011 18:26:51 +0000 (18:26 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Jan 2011 18:26:51 +0000 (18:26 +0000)
Rubber stamped by Dan Bernstein.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):

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

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

index 86da191..c6cb4b5 100644 (file)
@@ -1,5 +1,14 @@
 2011-01-25  Maciej Stachowiak  <mjs@apple.com>
 
+        Rubber stamped by Dan Bernstein.
+
+        Change some floating point constants from 1.0 to 1.
+
+        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+        (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
+
+2011-01-25  Maciej Stachowiak  <mjs@apple.com>
+
         Reviewed by Anders Carlsson.
 
         Improve scale factor resetting
index dc59397..49452f9 100644 (file)
@@ -432,8 +432,8 @@ void WebFrameLoaderClient::dispatchDidCommitLoad()
 
     // Only restore the scale factor for standard frame loads (of the main frame).
     if (m_frame->isMainFrame() && m_frame->coreFrame()->loader()->loadType() == FrameLoadTypeStandard) {
-        if (m_frame->coreFrame()->pageScaleFactor() != 1.0)
-            webPage->scaleWebView(1.0, IntPoint());
+        if (m_frame->coreFrame()->pageScaleFactor() != 1)
+            webPage->scaleWebView(1, IntPoint());
     }
 }