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

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

From: Dirk Schulze <dschulze@adobe.com>
Date: Tue, 24 Sep 2013 03:25:37 -0700
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Simon Fraser <smfr@me.com>, www-style list <www-style@w3.org>
Message-ID: <8DAEE57C-4556-48F2-B23D-D518D3111CF1@adobe.com>

On Sep 23, 2013, at 9:30 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> 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
> call-time.
> 
> That is, you can say "el.transformPoint({x:5, y:10})" instead of
> "el.transformPoint(new DOMPoint(5, 10))".

How do you specify that without having two transformPoint() definitions, one with a DOMPoint argument and the other with a DOMPointLiteral argument?

Greetings,
Dirk

> 
> ~TJ
Received on Tuesday, 24 September 2013 10:26:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC