[Webkit-unassigned] [Bug 76535] CSS Shaders: Remove the setTimeout from the layout tests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 19 03:49:47 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76535





--- Comment #1 from Chiculita Alexandru <achicu at adobe.com>  2012-01-19 03:49:48 PST ---
We cannot remove the setTimeout, but we can make the setTimeout use a 0 delay.

The problem is that the onload event is triggered before the last resource notifies its clients that it finished. The code is in SubresourceLoader::releaseResources() which calls "m_document->cachedResourceLoader()->loadDone();" before "m_resource->stopLoading();" . "loadDone()" triggers the onload JS event. Even if we do a layout in this event the RenderLayer is not notified yet that the resources are now loaded and ready for paint. The notification will come only after the onload event is triggered, meaning that a simple setTimeout("", 0) will do the trick.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list