[webkit-dev] DOM Rendering synchronization with javascript

Darin Fisher darin at chromium.org
Fri Feb 17 11:17:09 PST 2012

webkitRequestAnimationFrame may be helpful to you.


On Fri, Feb 17, 2012 at 11:00 AM, Ian Johnson <enjalot at gmail.com> wrote:

> Hi all,
> I'm looking for the ability to synchronize my javascript calls with DOM
> rendering. I want to do calculations based on the rendered size of an SVG
> text element and I've run into cases where the font change will take longer
> than the execution time of my layout calculation code so I end up with bad
> results. Are there some sort of events that can be listened to? I'm fairly
> certain
> I've tried searching around and haven't found anything, could this be
> proposed as a feature?
> Something llke a barrier() or dom_fence() would be great. I think as more
> people start to heavily manipulate the DOM especially for SVG this type of
> thing will become a larger issue.
> I'm happy to help any way I can, but I'm new to the browser world, any
> pointers would be welcome :)
> Thank you
> --
> Ian Johnson
> http://enja.org
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120217/f95b7c1f/attachment.html>

More information about the webkit-dev mailing list