Commit 7038ef52 authored by mjs@apple.com's avatar mjs@apple.com
Browse files

Change some floating point constants from 1.0 to 1.

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
parent b95d09b6
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.
......@@ -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());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment