Implement DOMPointReadOnly.matrixTransform()
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 Jun 2017 21:09:00 +0000 (21:09 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 3 Jun 2017 21:09:00 +0000 (21:09 +0000)
commit2196a54bb9116ab707bf9182501061df802afc42
treeaa37f1f687a4970cbdcbeaa2f431736fae50c2ef
parent03e5ad2ced2351d48be5cada5426a60ad0a0a009
Implement DOMPointReadOnly.matrixTransform()
https://bugs.webkit.org/show_bug.cgi?id=172896

Reviewed by Chris Dumez.

LayoutTests/imported/w3c:

New baselines.

* web-platform-tests/css/geometry-1/DOMPoint-002-expected.txt:
* web-platform-tests/css/geometry-1/historical-expected.txt:

Source/WebCore:

DOMPointReadOnly.matrixTransform() creates the matrix or throws, then uses
a new function in TransformationMatrix to map x,y,z,w through the matrix.

Test: http/wpt/geometry/DOMPoint-003.html

* CMakeLists.txt:
* WebCore.xcodeproj/project.pbxproj:
* css/DOMMatrixReadOnly.h:
(WebCore::DOMMatrixReadOnly::transformationMatrix):
* dom/DOMPointReadOnly.cpp: Copied from Source/WebCore/dom/DOMPointReadOnly.idl.
(WebCore::DOMPointReadOnly::matrixTransform):
* dom/DOMPointReadOnly.h:
* dom/DOMPointReadOnly.idl:
* platform/graphics/transforms/TransformationMatrix.cpp:
(WebCore::TransformationMatrix::map4ComponentPoint):
* platform/graphics/transforms/TransformationMatrix.h:

LayoutTests:

DOMPoint-003.html should be upstreamed at some point.

* http/wpt/geometry/DOMPoint-003-expected.txt: Added.
* http/wpt/geometry/DOMPoint-003.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@217763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/http/wpt/geometry/DOMPoint-003-expected.txt [new file with mode: 0644]
LayoutTests/http/wpt/geometry/DOMPoint-003.html [new file with mode: 0644]
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/DOMPoint-002-expected.txt
LayoutTests/imported/w3c/web-platform-tests/css/geometry-1/historical-expected.txt
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/css/DOMMatrixReadOnly.h
Source/WebCore/dom/DOMPointReadOnly.cpp [new file with mode: 0644]
Source/WebCore/dom/DOMPointReadOnly.h
Source/WebCore/dom/DOMPointReadOnly.idl
Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp
Source/WebCore/platform/graphics/transforms/TransformationMatrix.h