Support the deprecated dictionary constructor for DOMPointReadOnly and DOMPoint
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 11 Dec 2016 00:04:30 +0000 (00:04 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 11 Dec 2016 00:04:30 +0000 (00:04 +0000)
commit1dd6eefff495ebfcdc859b5280664f8b9af8261b
tree0dccda02a4b2f47aad74ddb0273eef5592d1794e
parent901a0630e2262f38ac5ab943f4cda408be8dff98
Support the deprecated dictionary constructor for DOMPointReadOnly and DOMPoint
https://bugs.webkit.org/show_bug.cgi?id=165732

Reviewed by Sam Weinig.
Source/WebCore:

For compatibility with other browsers, support the DOMPointInit constructor to
DOMPoint and DOMPointReadOnly per <https://www.w3.org/TR/geometry-1/#DOMPoint>

Extended geometry/DOMPoint-001.html to test.

* dom/DOMPoint.h:
* dom/DOMPoint.idl:
* dom/DOMPointReadOnly.h:
(WebCore::DOMPointReadOnly::create):
* dom/DOMPointReadOnly.idl:

LayoutTests:

* geometry/DOMPoint-001-expected.txt:
* geometry/DOMPoint-001.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209677 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/geometry/DOMPoint-001-expected.txt
LayoutTests/geometry/DOMPoint-001.html
Source/WebCore/ChangeLog
Source/WebCore/dom/DOMPoint.h
Source/WebCore/dom/DOMPoint.idl
Source/WebCore/dom/DOMPointReadOnly.h
Source/WebCore/dom/DOMPointReadOnly.idl