W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [matrix][cssom-view] DOMPoint, DOMPointLiteral definitions

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 23 Sep 2013 12:30:06 -0700
Message-ID: <CAAWBYDBEG3gbQpkCv+NOZgoUJRjHh0dC9ot58vwunADgF6STGg@mail.gmail.com>
To: Simon Fraser <smfr@me.com>
Cc: Dirk Schulze <dschulze@adobe.com>, www-style list <www-style@w3.org>
On Mon, Sep 23, 2013 at 11:28 AM, Simon Fraser <smfr@me.com> wrote:
> Why do we need both DOMPoint and DOMPointLiteral?

DOMPointLiteral exists so that you can call methods that expect points
without having to wrap it in a verbose DOMPoint() constructor at

That is, you can say "el.transformPoint({x:5, y:10})" instead of
"el.transformPoint(new DOMPoint(5, 10))".

Received on Monday, 23 September 2013 19:30:52 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC