[GeometryInterface] Add fromFloat32Array & fromFloat64Array function

Return the result of invoking create a matrix of type
DOMMatrixReadOnly or DOMMatrix as appropriate, with a sequence of
numbers taking the values from Float32Array or Float64Array in the provided order.
If array has 6 elements, Return a 2d matrix.
If array has 16 elements, Return a 3d matrix.
Otherwise, Throw a TypeError exception.

spec list:
https://drafts.fxtf.org/geometry/#dom-dommatrixreadonly-fromfloat32array
https://drafts.fxtf.org/geometry/#dom-dommatrixreadonly-fromfloat64array
https://drafts.fxtf.org/geometry/#dom-dommatrix-fromfloat32array
https://drafts.fxtf.org/geometry/#dom-dommatrix-fromfloat64array

BUG=388780

Review-Url: https://codereview.chromium.org/2309013002
Cr-Commit-Position: refs/heads/master@{#417943}
9 files changed