W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2013

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 2 Oct 2013 04:14:06 +1300
Message-ID: <CAOp6jLY5sciQ0yOkjmuAwY2t84rE0qg-o_wfn_4gGosTaz_z6A@mail.gmail.com>
To: Simon Pieters <simonp@opera.com>
Cc: www-style <www-style@w3.org>, Boris Zbarsky <bzbarsky@mit.edu>, "public-script-coord@w3.org" <public-script-coord@w3.org>
On Wed, Oct 2, 2013 at 12:43 AM, Simon Pieters <simonp@opera.com> wrote:

> That's what the spec has right now, but it calls them DOMRectReadOnly and
> DOMRect (since the mutable one has a constructor, it's nicer for it to have
> a short name).
> The two interfaces now have their top/right/bottom/left attributes
> identical. We could move them to a common interface, like DOMRectBase or
> AbstractDOMRect.

I think DOMRect should extend DOMRectReadOnly so we don't have to duplicate
top/left/bottom/right or future read-only APIs, and it'll be a bit easier
for methods taking rectangle parameters to just take a DOMRectReadOnly.
WebIDL lets us extend read-only attributes to make them writable in the
subinterface, using the "inherit" syntax.

Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w  *
Received on Tuesday, 1 October 2013 15:14:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:18 UTC