Source/WebCore:
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Apr 2019 21:19:57 +0000 (21:19 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Apr 2019 21:19:57 +0000 (21:19 +0000)
commit887c3fce30fc4aefea937b8e3f62c1d71c3b8898
treeab0c965cb118fd002a9809c00095f2605e9cc406
parentf3890a2c7a5c2a47be4aad1f746b51569eeea225
Source/WebCore:
Standardize the <meta name="color-scheme"> separator.
https://bugs.webkit.org/show_bug.cgi?id=193931
rdar://problem/49995929

Reviewed by Darin Adler.

Tests: css-dark-mode/color-scheme-meta.html

* dom/Document.cpp:
(WebCore::processColorSchemeString): Use isHTMLSpace insead of isColorSchemeSeparator and isASCIISpace.
(WebCore::isColorSchemeSeparator): Deleted.

LayoutTests:
Standardize the `<meta name="color-scheme">` separator.
https://bugs.webkit.org/show_bug.cgi?id=193931
rdar://problem/49995929

Reviewed by Darin Adler.

* css-dark-mode/color-scheme-meta-expected.txt:
* css-dark-mode/color-scheme-meta.html: Test other types of spaces like tab, newline and vertical tab.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/css-dark-mode/color-scheme-meta-expected.txt
LayoutTests/css-dark-mode/color-scheme-meta.html
Source/WebCore/ChangeLog
Source/WebCore/dom/Document.cpp