DOMMatrix/DOMMatrixReadOnly validation is incorrect for NaN values
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Sep 2017 04:05:00 +0000 (04:05 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Sep 2017 04:05:00 +0000 (04:05 +0000)
commit5ff92d5c89d15dc7b4f9852736ab121c8906631d
tree7f5c067de422c0bb22ba1f62fd46b0a20f7ccbb0
parent1c42a991e4d415fcb4bde02ff98085ac370a8416
DOMMatrix/DOMMatrixReadOnly validation is incorrect for NaN values
https://bugs.webkit.org/show_bug.cgi?id=176287

Patch by Sam Weinig <sam@webkit.org> on 2017-09-02
Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

* web-platform-tests/css/geometry-1/DOMMatrixInit-validate-fixup-expected.txt:
Update test results.

Source/WebCore:

* css/DOMMatrixReadOnly.cpp:
(WebCore::sameValueZero): Added.
(WebCore::DOMMatrixReadOnly::validateAndFixup):

    Switch from using standard != to added sameValueZero helper
    which implements https://tc39.github.io/ecma262/#sec-samevaluezero

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/DOMMatrixInit-validate-fixup-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/css/DOMMatrixReadOnly.cpp