[Tizen][M34-Merge] Fix screen size reporting.
authorKamil Klimek <k.klimek@partner.samsung.com>
Tue, 25 Nov 2014 08:39:57 +0000 (09:39 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
commitabbc36920278d751c1361ddb24fbe4697949bbc9
tree076ad7284e7c15fad278f328dab3d044650f8f50
parent7cb97fce85418425fb67d56e1f8d506a84f70027
[Tizen][M34-Merge] Fix screen size reporting.

The current EFL implementation of gfx::Screen interface is not entirely
correct. The main differences compared to Android and Aura ports are:
1. The screen size is reported in px, not in DIP.
2. Screen size is always reported in portrait mode.

As a direct result of the differences most mobile pages relying on CSS3
media queries will render incorrectly. They'll use style sheet version
designed for devices with larger screen devices that the device has.
One example of such page is http://slideshare.net.

This patch changes current gfx::Screen implementation to report proper
screen size values in DIP for both portrait and landscape orientations.

Original patch: http://165.213.202.130:8080/#/c/70582/
Original author: Piotr Tworek <p.tworek@samsung.com>
Original bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6308

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5594
Reviewed by: Antonio Gomes, Viatcheslav Ostapenko

Change-Id: I21a7baeaf0a9b05dab7d00d255cc611589e784bf
Signed-off-by: Kamil Klimek <k.klimek@partner.samsung.com>
tizen_src/impl/browser/renderer_host/render_widget_host_view_efl.cc
tizen_src/impl/ewk_global_data.cc
tizen_src/impl/screen_efl.cc
tizen_src/impl/screen_efl.h