From 4a1ccd7297c377dfa7965ee90324e418c1649b4d Mon Sep 17 00:00:00 2001 From: Changhyup Jwa Date: Thu, 29 Aug 2013 13:42:57 +0900 Subject: [PATCH] Fix floating loss miscalculation [Title] Fix floating loss miscalculation [Issue#] N_SE-49821, N_SE-50228 [Problem] Sometimes layout size is abnormal [Cause] Layout size is calculated by device scale factor. And its' initial value is miscalculated by floating loss. [Solution] Typecast properly on device scale factor calculation Change-Id: Ieb3d69d2e5a59e120df8248bac849e7905ed9f74 --- Source/WebKit2/UIProcess/WebPageProxy.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/WebKit2/UIProcess/WebPageProxy.cpp b/Source/WebKit2/UIProcess/WebPageProxy.cpp index dcdeb2a..c94ae70 100755 --- a/Source/WebKit2/UIProcess/WebPageProxy.cpp +++ b/Source/WebKit2/UIProcess/WebPageProxy.cpp @@ -194,7 +194,11 @@ WebPageProxy::WebPageProxy(PageClient* pageClient, PassRefPtr p , m_textZoomFactor(1) , m_pageZoomFactor(1) , m_pageScaleFactor(1) - , m_intrinsicDeviceScaleFactor(getMobileDPI() / 160) +#if ENABLE(TIZEN_VIEWPORT_META_TAG) + , m_intrinsicDeviceScaleFactor(static_cast(getMobileDPI()) / 160) +#else + , m_intrinsicDeviceScaleFactor(1) +#endif , m_customDeviceScaleFactor(0) #if HAVE(LAYER_HOSTING_IN_WINDOW_SERVER) , m_layerHostingMode(LayerHostingModeInWindowServer) -- 2.7.4