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>