W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: Adding a paint event to HTMLElement to support Web Components / Shadow DOM

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 08 May 2012 20:56:28 -0400
Message-ID: <4FA9C0BC.9090703@mit.edu>
To: public-webapps@w3.org
On 5/8/12 8:30 PM, Gregg Tavares (勤) wrote:
> AFAICT the resize event only fires on window.

There have been proposals over the years to change that.

> Imagine a relatively heavy to repaint WebComponent like one that draws
> an representation of an audio wave. If that component is hidden behind
> some other component it would be nice if it didn't re-draw itself.

This seems like a use case for requestAnimationFrame's second argument, 
and browser quality-of-implementation issues.

> Does a 'paint' event make sense?

Possibly, depending on how it's defined; actually running arbitrary 
script during painting is pretty undesirable (e.g. ideally painting 
happens on a totally separate thread from script, and having to 
synchronize them is not particularly ideal).

-Boris
Received on Wednesday, 9 May 2012 00:56:58 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:52 GMT