Bug 18562 - Fire an event when a canvas is about to be used for the first time
Summary: Fire an event when a canvas is about to be used for the first time
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 19:36 PDT by Timothy Hatcher
Modified: 2012-10-11 16:36 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2008-04-17 19:36:09 PDT
The new CSS canvas support could use an event that fires when the canvas is going to be used for the first time. This would allow delayed drawing of a canvas, since some canvases might never be used (like ones in :hover, :active rules). Without this event, developers are required to front-load the drawing work on page load or some other known time before the canvas might be used. Allowing the drawing to be delayed until first use also lowers memory since the buffer should be allocated when getCSSCanvasContext() is called.

This event could also fire for canvas elements.