W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2015

Re: [geometry] Remove liveness (was: Re: [blink-dev] Re: Intent to Implement: Geometry Interfaces)

From: Simon Pieters <simonp@opera.com>
Date: Wed, 09 Dec 2015 16:01:35 +0100
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: "Jinho Bang" <jinho.bang@samsung.com>, "Philip Rogers" <pdr@chromium.org>, "public-fx@w3.org" <public-fx@w3.org>, "Ian Kilpatrick" <ikilpatrick@google.com>
Message-ID: <op.x9dtcxgcidj3kv@simons-mbp>
On Wed, 18 Nov 2015 23:52:19 +0100, Robert O'Callahan  
<robert@ocallahan.org> wrote:

> On Thu, Nov 19, 2015 at 11:33 AM, Simon Pieters <simonp@opera.com> wrote:
> I don't know. Maybe we could remove it and add a .fromQuad() static  
> method
>> on DOMRect/DOMRectReadOnly, that gives the bounding rectangle (new  
>> object
>> every time)?
> That seems rather more mysterious than calling/accessing something named
> "bounds", and doesn't extend to other things we might want to expose a
> bounding rect for.


New suggestion: Replace .bounds with [NewObject] DOMRect getBounds(); (No  
need to use DOMRectReadOnly if it's not live.)

I suppose we could name it getBoundingClientRect() for consistency with  
the method on Element, although that is a bit long and the "Client" part  
is legacy...

Simon Pieters
Opera Software
Received on Wednesday, 9 December 2015 15:02:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:54 UTC