From: Changhyup Jwa Date: Mon, 24 Jun 2013 14:41:44 +0000 (+0900) Subject: Initiate device scale factor on WebProcess's creation X-Git-Tag: submit/tizen_2.2/20130714.131554~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a8acb42bcd454696d16069741b8116b8a9d37c4;p=framework%2Fweb%2Fwebkit-efl.git Initiate device scale factor on WebProcess's creation [Title] Initiate device scale factor WebProcess's creation [Issue#] N_SE-41307 [Problem] Sometimes, TouchPaint app drawing point is not matched to touch point [Cause] On viewport initiation, layout size and initial scale factor are calculated incorrectly by uninitiated device scale factor. Device scale factor is initiated after rendering logic begins. [Solution] Initiate device scale factor on WebProcess's creation Change-Id: Id231b8bb47b6508bbd803f34a7132b07e88172d1 --- diff --git a/Source/WebKit2/UIProcess/WebPageProxy.cpp b/Source/WebKit2/UIProcess/WebPageProxy.cpp index 69074d2..c5becb1 100755 --- a/Source/WebKit2/UIProcess/WebPageProxy.cpp +++ b/Source/WebKit2/UIProcess/WebPageProxy.cpp @@ -126,6 +126,10 @@ #include "InputMethodContextEfl.h" #endif +#if ENABLE(TIZEN_VIEWPORT_META_TAG) +#include +#endif + // This controls what strategy we use for mouse wheel coalescing. #define MERGE_WHEEL_EVENTS 1 @@ -190,7 +194,7 @@ WebPageProxy::WebPageProxy(PageClient* pageClient, PassRefPtr p , m_textZoomFactor(1) , m_pageZoomFactor(1) , m_pageScaleFactor(1) - , m_intrinsicDeviceScaleFactor(1) + , m_intrinsicDeviceScaleFactor(getMobileDPI() / 160) , m_customDeviceScaleFactor(0) #if HAVE(LAYER_HOSTING_IN_WINDOW_SERVER) , m_layerHostingMode(LayerHostingModeInWindowServer)