fixup! Implement ewk_settings_auto_fitting_set
authorGrzegorz Czajkowski <g.czajkowski@samsung.com>
Thu, 17 Dec 2015 09:49:02 +0000 (10:49 +0100)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
commit39efbe5b3bde12d8dbdde73837d59a41645b53d8
tree60b8d33ae6f384aea0947caa2f90b44c062b3c79
parent94c613d5de8c1988f3a0fb61fa2544e9b661fa46
fixup! Implement ewk_settings_auto_fitting_set

Auto fitting (aka Page Overview) changes the scale factor to adjust the content
width to be equal the device width. This feature is by default turned on for
mobile builds and what's more both Reference Browser and ubrowser enable it
in runtime, optionally adding the user possibility to switch it off via UI.

Disabling this feature in runtime results in not reseting the scale factor,
usually from ~0.4f to 1.0f. This causes bad user experience as the scale is
small but user is able to scroll the (empty) content.

Android exposes WebSettings::setLoadWithOverviewMode(boolean overview) [1] which
in Blink resets the scale when auto fit gets disabled. See
adjustForAndroidWebViewQuirks() for details.

This commit sets setLoadWithOverviewMode along with
setShrinksViewportContentToFit when ewk_settings_auto_fitting_set is called.

Not all utc_blink_ewk_settings_scripts_* tests has been fixed. This patch
fixes them, change comments and test names accordingly to their behaviour.

This is squash of two commits from beta/m47 branch:
- http://web.sec.samsung.net/gerrit/#/c/99946/
Reviewed by: sns.park

Change-Id: I00745a5b1de2252c9259fe9d5c21062a40f62c6d
Author: Grzegorz Czajkowski<g.czajkowski@samsung.com>

- http://web.sec.samsung.net/gerrit/#/c/102256/
Reviewed by: sns.park

Change-Id: I576a465d8ac5702e446df95d210707158c5af36c
Author: Marcin Niesluchowski<m.niesluchow@samsung.com>

[1] http://developer.android.com/reference/android/webkit/WebSettings.html

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15298
Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=15197

Reviewed by: sns.park

Change-Id: I00745a5b1de2252c9259fe9d5c21062a40f62c6d
Signed-off-by: Grzegorz Czajkowski <g.czajkowski@samsung.com>
tizen_src/ewk/efl_integration/renderer/render_view_observer_efl.cc
tizen_src/ewk/unittest/utc_blink_ewk_settings_scripts_can_open_windows_get_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_settings_scripts_can_open_windows_set_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_settings_scripts_window_open_get_func.cpp
tizen_src/ewk/unittest/utc_blink_ewk_settings_scripts_window_open_set_func.cpp