Rename `supported-color-schemes` to `color-scheme`.
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 23:15:01 +0000 (23:15 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Apr 2019 23:15:01 +0000 (23:15 +0000)
commit848ae687c8fd8287ea19a18a1e359a8aba836add
treee097de5c2984f66098d96e2780cb8945d4a80c33
parent7c66e39900ebde62595c69c1540d527c24f35143
Rename `supported-color-schemes` to `color-scheme`.
https://bugs.webkit.org/show_bug.cgi?id=197016
rdar://problem/49980259

Reviewed by Simon Fraser.

Source/WebCore:

Changed `supported-color-schemes` to `color-scheme` to follow the spec changes
being tracked by: https://github.com/w3c/csswg-drafts/issues/3807

The old `supported-color-schemes` is now an alias of `color-scheme` for compatibility.

Tests: css-dark-mode/color-scheme-css-parse.html
       css-dark-mode/color-scheme-css.html
       css-dark-mode/color-scheme-meta.html
       css-dark-mode/color-scheme-priority.html
       css-dark-mode/color-scheme-scrollbar.html
       css-dark-mode/older-syntax/supported-color-schemes-css.html
       css-dark-mode/older-syntax/supported-color-schemes-meta.html
       css-dark-mode/older-systems/color-scheme-css.html
       css-dark-mode/older-systems/color-scheme-meta.html

* WebCore.xcodeproj/project.pbxproj:
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::valueForPropertyinStyle):
* css/CSSProperties.json:
* css/CSSValueKeywords.in:
* css/StyleBuilderConverter.h:
(WebCore::StyleBuilderConverter::updateColorScheme):
(WebCore::StyleBuilderConverter::convertColorScheme):
(WebCore::StyleBuilderConverter::updateSupportedColorSchemes): Deleted.
(WebCore::StyleBuilderConverter::convertSupportedColorSchemes): Deleted.
* css/StyleBuilderCustom.h:
(WebCore::StyleBuilderCustom::applyValueColorScheme):
(WebCore::StyleBuilderCustom::applyValueSupportedColorSchemes): Deleted.
* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyMatchedProperties):
* css/parser/CSSPropertyParser.cpp:
(WebCore::consumeColorScheme):
(WebCore::CSSPropertyParser::parseSingleValue):
(WebCore::consumeSupportedColorSchemes): Deleted.
* dom/Document.cpp:
(WebCore::processColorSchemeString):
(WebCore::Document::processColorScheme):
(WebCore::Document::useDarkAppearance const):
(WebCore::processColorSchemes): Deleted.
(WebCore::Document::processSupportedColorSchemes): Deleted.
* dom/Document.h:
* html/HTMLMetaElement.cpp:
(WebCore::HTMLMetaElement::process):
* page/FrameView.cpp:
(WebCore::FrameView::rendererForColorScheme const):
(WebCore::FrameView::useDarkAppearance const):
(WebCore::FrameView::styleColorOptions const):
(WebCore::FrameView::rendererForSupportedColorSchemes const): Deleted.
* page/FrameView.h:
* rendering/style/RenderStyle.cpp:
(WebCore::rareInheritedDataChangeRequiresRepaint):
* rendering/style/RenderStyle.h:
(WebCore::RenderStyle::colorScheme const):
(WebCore::RenderStyle::setHasExplicitlySetColorScheme):
(WebCore::RenderStyle::hasExplicitlySetColorScheme const):
(WebCore::RenderStyle::setColorScheme):
(WebCore::RenderStyle::initialColorScheme):
(WebCore::RenderStyle::NonInheritedFlags::operator== const):
(WebCore::RenderStyle::supportedColorSchemes const): Deleted.
(WebCore::RenderStyle::setHasExplicitlySetSupportedColorSchemes): Deleted.
(WebCore::RenderStyle::hasExplicitlySetSupportedColorSchemes const): Deleted.
(WebCore::RenderStyle::setSupportedColorSchemes): Deleted.
(WebCore::RenderStyle::initialSupportedColorSchemes): Deleted.
* rendering/style/RenderStyleConstants.h:
* rendering/style/StyleColorScheme.h: Renamed from Source/WebCore/rendering/style/StyleSupportedColorSchemes.h.
(WebCore::StyleColorScheme::StyleColorScheme):
(WebCore::StyleColorScheme::operator== const):
(WebCore::StyleColorScheme::operator!= const):
(WebCore::StyleColorScheme::isAuto const):
(WebCore::StyleColorScheme::isOnly const):
(WebCore::StyleColorScheme::colorScheme const):
(WebCore::StyleColorScheme::add):
(WebCore::StyleColorScheme::contains const):
(WebCore::StyleColorScheme::setAllowsTransformations):
(WebCore::StyleColorScheme::allowsTransformations const):
* rendering/style/StyleRareInheritedData.cpp:
(WebCore::StyleRareInheritedData::StyleRareInheritedData):
(WebCore::StyleRareInheritedData::operator== const):
* rendering/style/StyleRareInheritedData.h:

Source/WebInspectorUI:

* UserInterface/Views/Main.css:
(:root):

LayoutTests:

* css-dark-mode/color-scheme-css-expected.txt: Renamed from LayoutTests/css-dark-mode/supported-color-schemes-css-expected.txt.
* css-dark-mode/color-scheme-css.html: Renamed from LayoutTests/css-dark-mode/supported-color-schemes-css.html.
* css-dark-mode/color-scheme-meta-expected.txt: Renamed from LayoutTests/css-dark-mode/supported-color-schemes-expected.txt.
* css-dark-mode/color-scheme-meta.html: Renamed from LayoutTests/css-dark-mode/supported-color-schemes.html.
* css-dark-mode/color-scheme-parse-expected.txt: Renamed from LayoutTests/css-dark-mode/parse-supported-color-schemes-expected.txt.
* css-dark-mode/color-scheme-parse.html: Renamed from LayoutTests/css-dark-mode/parse-supported-color-schemes.html.
* css-dark-mode/color-scheme-priority-expected.txt: Renamed from LayoutTests/css-dark-mode/supported-color-schemes-priority-expected.txt.
* css-dark-mode/color-scheme-priority.html: Renamed from LayoutTests/css-dark-mode/supported-color-schemes-priority.html.
* css-dark-mode/color-scheme-scrollbar-expected.txt: Renamed from LayoutTests/css-dark-mode/supported-color-schemes-scrollbar-expected.txt.
* css-dark-mode/color-scheme-scrollbar.html: Renamed from LayoutTests/css-dark-mode/supported-color-schemes-scrollbar.html.
* css-dark-mode/older-syntax/supported-color-schemes-css-expected.txt: Copied from LayoutTests/css-dark-mode/supported-color-schemes-css-expected.txt.
* css-dark-mode/older-syntax/supported-color-schemes-css.html: Copied from LayoutTests/css-dark-mode/supported-color-schemes-css.html.
* css-dark-mode/older-syntax/supported-color-schemes-meta-expected.txt: Copied from LayoutTests/css-dark-mode/supported-color-schemes-expected.txt.
* css-dark-mode/older-syntax/supported-color-schemes-meta.html: Copied from LayoutTests/css-dark-mode/supported-color-schemes.html.
* css-dark-mode/older-systems/color-scheme-css-expected.txt: Renamed from LayoutTests/css-dark-mode/older-systems/supported-color-schemes-css-expected.txt
* css-dark-mode/older-systems/color-scheme-css.html: Renamed from LayoutTests/css-dark-mode/older-systems/supported-color-schemes-css.html.
* css-dark-mode/older-systems/color-scheme-meta-expected.txt: Renamed from LayoutTests/css-dark-mode/older-systems/supported-color-schemes-expected.txt.
* css-dark-mode/older-systems/color-scheme-meta.html: Renamed from LayoutTests/css-dark-mode/older-systems/supported-color-schemes.html.
* fast/css/style-enumerate-properties.html: Updated property count.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
46 files changed:
LayoutTests/ChangeLog
LayoutTests/css-dark-mode/color-scheme-css-expected.txt [new file with mode: 0644]
LayoutTests/css-dark-mode/color-scheme-css-parse-expected.txt [moved from LayoutTests/css-dark-mode/parse-supported-color-schemes-expected.txt with 100% similarity]
LayoutTests/css-dark-mode/color-scheme-css-parse.html [new file with mode: 0644]
LayoutTests/css-dark-mode/color-scheme-css.html [new file with mode: 0644]
LayoutTests/css-dark-mode/color-scheme-meta-expected.txt [new file with mode: 0644]
LayoutTests/css-dark-mode/color-scheme-meta.html [new file with mode: 0644]
LayoutTests/css-dark-mode/color-scheme-priority-expected.txt [moved from LayoutTests/css-dark-mode/supported-color-schemes-priority-expected.txt with 70% similarity]
LayoutTests/css-dark-mode/color-scheme-priority.html [moved from LayoutTests/css-dark-mode/supported-color-schemes-priority.html with 90% similarity]
LayoutTests/css-dark-mode/color-scheme-scrollbar-expected.txt [moved from LayoutTests/css-dark-mode/supported-color-schemes-scrollbar-expected.txt with 60% similarity]
LayoutTests/css-dark-mode/color-scheme-scrollbar.html [moved from LayoutTests/css-dark-mode/supported-color-schemes-scrollbar.html with 78% similarity]
LayoutTests/css-dark-mode/default-colors.html
LayoutTests/css-dark-mode/older-syntax/supported-color-schemes-css-expected.txt [moved from LayoutTests/css-dark-mode/supported-color-schemes-css-expected.txt with 100% similarity]
LayoutTests/css-dark-mode/older-syntax/supported-color-schemes-css.html [moved from LayoutTests/css-dark-mode/supported-color-schemes-css.html with 79% similarity]
LayoutTests/css-dark-mode/older-syntax/supported-color-schemes-meta-expected.txt [moved from LayoutTests/css-dark-mode/supported-color-schemes-expected.txt with 74% similarity]
LayoutTests/css-dark-mode/older-syntax/supported-color-schemes-meta.html [moved from LayoutTests/css-dark-mode/supported-color-schemes.html with 88% similarity]
LayoutTests/css-dark-mode/older-systems/color-scheme-css-expected.txt [new file with mode: 0644]
LayoutTests/css-dark-mode/older-systems/color-scheme-css.html [moved from LayoutTests/css-dark-mode/older-systems/supported-color-schemes-css.html with 71% similarity]
LayoutTests/css-dark-mode/older-systems/color-scheme-meta-expected.txt [new file with mode: 0644]
LayoutTests/css-dark-mode/older-systems/color-scheme-meta.html [moved from LayoutTests/css-dark-mode/older-systems/supported-color-schemes.html with 71% similarity]
LayoutTests/css-dark-mode/older-systems/supported-color-schemes-css-expected.txt [deleted file]
LayoutTests/css-dark-mode/older-systems/supported-color-schemes-expected.txt [deleted file]
LayoutTests/css-dark-mode/parse-supported-color-schemes.html [deleted file]
LayoutTests/fast/css/style-enumerate-properties.html
Source/WebCore/ChangeLog
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSProperties.json
Source/WebCore/css/CSSValueKeywords.in
Source/WebCore/css/StyleBuilderConverter.h
Source/WebCore/css/StyleBuilderCustom.h
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/css/parser/CSSPropertyParser.cpp
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Document.h
Source/WebCore/html/HTMLMetaElement.cpp
Source/WebCore/page/FrameView.cpp
Source/WebCore/page/FrameView.h
Source/WebCore/rendering/style/RenderStyle.cpp
Source/WebCore/rendering/style/RenderStyle.h
Source/WebCore/rendering/style/RenderStyleConstants.h
Source/WebCore/rendering/style/StyleColorScheme.h [moved from Source/WebCore/rendering/style/StyleSupportedColorSchemes.h with 64% similarity]
Source/WebCore/rendering/style/StyleRareInheritedData.cpp
Source/WebCore/rendering/style/StyleRareInheritedData.h
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/Main.css