W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] "canvas" tag and animations ?

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 16 May 2006 21:17:55 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0605162037180.21459@dhalsim.dreamhost.com>
On Thu, 16 Jun 2005, Sjoerd Visscher wrote:
> 
> However, it would be nice to have a forceRedraw() method on window, like 
> SVG has. http://www.w3.org/TR/SVG/struct.html#InterfaceSVGSVGElement

Implementations can't always cause a synchronous paint. On some platforms 
you can only paint when you are idling. So it seems better not to provide 
this API. Also, since some implementations run JavaScript on the main 
thread, it's bad practice to run a script for an extended period of time 
(which would be the use case for forceRedraw). So I don't think 
forceRedraw() is a good idea.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 16 May 2006 14:17:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC