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 86da191ccdcb8a3cb13b3af8d7c892eced70ca96..c6cb4b52ce3cd6459e1f4cc6b1bf47d350496458 100644 (file)
@@ -1,3 +1,12 @@
+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.
 2011-01-25  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Anders Carlsson.
index dc59397ad4f1784cee2732281f2a1971dd5c9ccf..49452f9928169ee3a75c6d46482936b0ae561310 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) {
 
     // 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());
     }
 }
 
     }
 }