First step of improvements to canvas is to move it out of the JavaScript bindings directory.
Created attachment 7042 [details] notes on what I learned about canvas while working on this
Created attachment 7043 [details] move canvas to DOM, merge JS wrap functions into one called toJS
This patch may also correct this bug: http://bugzilla.opendarwin.org/show_bug.cgi?id=4884
Comment on attachment 7043 [details] move canvas to DOM, merge JS wrap functions into one called toJS r=me