Add env() as an alias of constant()
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Sep 2017 20:15:14 +0000 (20:15 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 Sep 2017 20:15:14 +0000 (20:15 +0000)
commit34294adaddbeb7b645dc0d6e7a2c9d11757e2fae
tree0db5cb25018f91091c5d5293f33832b6e1602516
parent74b94dd1f608d5722b3c8c98a9e8bfa1a4a2859f
Add env() as an alias of constant()
https://bugs.webkit.org/show_bug.cgi?id=177371

Reviewed by Simon Fraser.

Source/WebCore:

* css/CSSValueKeywords.in:
* css/CSSVariableData.cpp:
(WebCore::CSSVariableData::checkVariablesForCyclesWithRange const):
(WebCore::CSSVariableData::resolveTokenRange const):
* css/parser/CSSVariableParser.cpp:
(WebCore::classifyBlock):
Add env() as an alias of constant() everywhere it is mentioned.

Source/WebInspectorUI:

* UserInterface/Models/CSSKeywordCompletions.js:
(WI.CSSKeywordCompletions.forProperty):
(WI.CSSKeywordCompletions.forFunction):
Add autocomplete support for env().

LayoutTests:

* TestExpectations:
* platform/ios-11/TestExpectations:
Duplicated constant() tests with env() instead.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
18 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/fast/css/variables/env/invalid-env-name-fallback-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/env/invalid-env-name-fallback.html [new file with mode: 0644]
LayoutTests/fast/css/variables/env/ios/safe-area-inset-env-set-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/env/ios/safe-area-inset-env-set.html [new file with mode: 0644]
LayoutTests/fast/css/variables/env/safe-area-inset-env-cannot-override-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/env/safe-area-inset-env-cannot-override.html [new file with mode: 0644]
LayoutTests/fast/css/variables/env/safe-area-inset-env-zero-expected.html [new file with mode: 0644]
LayoutTests/fast/css/variables/env/safe-area-inset-env-zero.html [new file with mode: 0644]
LayoutTests/platform/ios/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/css/CSSValueKeywords.in
Source/WebCore/css/CSSVariableData.cpp
Source/WebCore/css/parser/CSSVariableParser.cpp
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js
Source/WebInspectorUI/UserInterface/Models/CSSKeywordCompletions.js