Re: [geometry] Why does DOMMatrix.setMatrixValue accept only a string transformList?

On Sun, 10 Jan 2016 12:52:18 +0100, /#!/JoePea <> wrote:

> DOMMatrix.setMatrixValue
> <>
> accepts a DOMString transformList. Why not accept the same things the
> constructor accepts (which can be more performant that passing a  
> DOMString
> for parsing)?

it looks like it was added to match MSCSSMatrix and WebKitCSSMatrix.

I will note that the constructor for DOMMatrix per the editor's draft is  

[Constructor(sequence<unrestricted double> numberSequence)]

and then there are a few static methods for other inputs. In particular,  
we wanted to avoid overloading, and presumably we should avoid that here  

Simon Pieters
Opera Software

Received on Monday, 11 January 2016 12:44:36 UTC