W3C home > Mailing lists > Public > public-web-perf@w3.org > January 2012

Re: [RequestAnimationFrame] Canceling animation frame requests from animation frame callbacks may not work

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 12 Jan 2012 23:23:09 -0500
Message-ID: <4F0FB1AD.4020800@mit.edu>
To: James Robinson <jamesr@google.com>
CC: public-web-perf@w3.org
On 12/8/11 5:54 PM, James Robinson wrote:
> I've pushed https://dvcs.w3.org/hg/webperf/rev/a43340fd9097, viewable at
> https://dvcs.w3.org/hg/webperf/raw-file/a43340fd9097/specs/RequestAnimationFrame/Overview.html,
> which I believe fixes this issue.  I've made the cancelled flag a
> property of the callback itself rather than state carried along on the
> side and clarified that cancelAnimationFrame() sets this flag regardless
> of whether the callback is in any document's animation list or not.
> It's possible that I've flubbed something here, please let me know if so.

Looks pretty reasonable, though there's a missing "no" between "is" and 
"callback" in "If there is callback with the given handle, then this 
function does nothing."

Received on Friday, 13 January 2012 04:31:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:32 UTC