color-gamut media query shouldn't ASSERT on invalid values
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Oct 2016 23:20:39 +0000 (23:20 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Oct 2016 23:20:39 +0000 (23:20 +0000)
commitc970e83d707f968677e80f1413ba0e9d863bc3ab
treea115f1e74f06c30243e1bbe7b9b45e11ec4fe140
parent692d246c56410c57e34ccdce552d51981776a952
color-gamut media query shouldn't ASSERT on invalid values
https://bugs.webkit.org/show_bug.cgi?id=163303
<rdar://problem/28724566>

Reviewed by Simon Fraser.

Source/WebCore:

Remove the ASSERT_NOT_REACHED in the evaluation, since it
can be hit when there is a valid CSS keyword that is not
expected in the query.

Updated fast/media/mq-color-gamut.html

* css/MediaQueryEvaluator.cpp:
(WebCore::colorGamutEvaluate):

LayoutTests:

Add a 'none' test.

* fast/media/mq-color-gamut-expected.html:
* fast/media/mq-color-gamut.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/media/mq-color-gamut-expected.html
LayoutTests/fast/media/mq-color-gamut.html
Source/WebCore/ChangeLog
Source/WebCore/css/MediaQueryEvaluator.cpp