Add an experimental feature flag for viewport-fit
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2017 23:05:09 +0000 (23:05 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 May 2017 23:05:09 +0000 (23:05 +0000)
commita86db692f2d4c52a555b18304c0af1dc62c9c01b
tree6a77e9ea4920d1a947ff2bea0b0066f866d82565
parent3ebdf4d5997d5cf7b34bd49236103b1c32eb3f95
Add an experimental feature flag for viewport-fit
https://bugs.webkit.org/show_bug.cgi?id=171948
<rdar://problem/31995518>

Reviewed by Simon Fraser.

* Shared/WebPreferencesDefinitions.h:
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):
Add an experimental feature flag.

* dom/ViewportArguments.cpp:
(WebCore::setViewportFeature):
* page/Settings.in:
Disable parsing of viewport-fit if the experimental feature is disabled.

* fast/css/variables/constants/ios/safe-area-inset-set-expected.html:
* fast/css/variables/constants/ios/safe-area-inset-set.html:
* fast/viewport/ios/viewport-fit-auto.html:
* fast/viewport/ios/viewport-fit-contain.html:
* fast/viewport/ios/viewport-fit-cover.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/css/variables/constants/ios/safe-area-inset-set-expected.html
LayoutTests/fast/css/variables/constants/ios/safe-area-inset-set.html
LayoutTests/fast/viewport/ios/viewport-fit-auto.html
LayoutTests/fast/viewport/ios/viewport-fit-contain.html
LayoutTests/fast/viewport/ios/viewport-fit-cover.html
Source/WebCore/ChangeLog
Source/WebCore/dom/ViewportArguments.cpp
Source/WebCore/page/Settings.in
Source/WebKit2/ChangeLog
Source/WebKit2/Shared/WebPreferencesDefinitions.h
Source/WebKit2/WebProcess/WebPage/WebPage.cpp