Description[GeometryInterface] add fromQuad function in DOMQuad.
The fromQuad(other) static method on DOMQuad must create
a DOMQuad from the DOMQuadInit dictionary other.
To create a DOMQuad from a DOMQuadInit dictionary other,
follow these steps:
1.Let point 1 be the result of invoking create a DOMPoint
from the dictionary p1 dictionary member of other, if it exists.
2.Let point 2 be the result of invoking create a DOMPoint
from the dictionary p2 dictionary member of other, if it exists.
3.Let point 3 be the result of invoking create a DOMPoint
from the dictionary p3 dictionary member of other, if it exists.
4.Let point 4 be the result of invoking create a DOMPoint
from the dictionary p4 dictionary member of other, if it exists.
5.Return a new DOMQuad with p1 set to point 1, p2 set to point 2,
p3 set to point 3 and p4 set to point 4.
spec list:
https://drafts.fxtf.org/geometry/#dom-domquad-fromquad
BUG=678237
Review-Url: https://codereview.chromium.org/2638413005
Cr-Commit-Position: refs/heads/master@{#447383}
Committed: https://chromium.googlesource.com/chromium/src/+/644c88d494c4045bb2df9d77a01bb1e6e3e3b370
Patch Set 1 #Patch Set 2 : [WIP] formQuad #Patch Set 3 : [WIP] formQuad #Patch Set 4 : [WIP] formQuad #Patch Set 5 : [WIP] formQuad #
Messages
Total messages: 29 (24 generated)
|