Do not use the mobile DPI values. 97/10097/1
authorJoone Hur <joone.hur@intel.com>
Tue, 17 Sep 2013 01:34:13 +0000 (18:34 -0700)
committerJoone Hur <joone.hur@intel.com>
Wed, 18 Sep 2013 00:30:16 +0000 (17:30 -0700)
commitf70fc45c1e144d8b1487fa77f60d04b2876e1a61
treef029c03a8ce119063f4c3dbf2dacd8a3e0afd6bf
parent751977de4ea82088191c52b7c26af7e2cc5bf3e4
Do not use the mobile DPI values.

There are pre-defined Mobile DPI values in
EflScreenUtilitis.cpp as follows:

static const int lowDefaultMobileDPI = 120;
static const int mediumDefaultMobileDPI = 160;
static const int highDefaultMobileDPI = 240;
static const int extrahighDefaultMobileDPI = 320;

One of the values are selected by the logic with the DPI value
returned by X-Window or wayland. However, this does not work properly
with desktop monitors.

Instead of using mobile DPI values, we use the raw DPI value for the
VGA screen and set the custom device scale factor to 1 for the HD screen.

We also need a logic to choose a proper DPI value for various screen
types.

Change-Id: I9e3c875a864865edb4f5163fa289da6f931a1dd3
Source/WebKit2/UIProcess/API/efl/ewk_view.cpp