19 Commits

Author SHA1 Message Date
MoyuScript
f5177e9607 todo update proxy 2012-03-01 19:51:07 +02:00
MoyuScript
dcd0c7d691 added support for CORS images and option to create canvas as tainted 2012-03-01 19:44:25 +02:00
MoyuScript
b4733c6a9c html2canvas -> h2clog 2012-02-28 12:40:44 +02:00
MoyuScript
683742bfbe renamed html2canvas.log to h2clog (minifies better)
renamed the html2canvas.canvasContext to h2cRenderContext,
it's used by both backends and thus not canvas specific
2012-02-26 22:57:22 +01:00
MoyuScript
d53f975cc8 fix image loaded through the proxy hanging the preload process
images loaded through the proxy could hang the preload process if
they finish loading through the proxy but then fail to decode
and thus don't call the onload handler of the image object.
2012-02-26 13:14:16 +01:00
MoyuScript
dd0331fd81 added flashcanvas integration and some legacy IE bug fixes 2012-02-26 00:19:16 +02:00
MoyuScript
072e1645cf fix warnings reported by the closure compiler 2012-02-18 23:01:18 +01:00
MoyuScript
553f84b51b fix crash if an img tag has no src, fix undefined variables 2011-12-17 19:50:27 +01:00
MoyuScript
e4837f83eb IE fix 2011-11-27 04:33:41 +02:00
MoyuScript
76e41772f2 IE origin fix 2011-11-26 21:29:46 +02:00
MoyuScript
f4618270e1 Merge pull request #34 from cobexer/rewrite-image-handling
rewrote image handling from using an array to an object
2011-11-26 10:15:40 -08:00
MoyuScript
8287dbc257 rewrote image handling from using an array to an object
The image loading done in Preload.js used an array to store
image src and image object as 2 consecutive entries in that
array. Using the src as an index in a hash allows direct
instead of a linear search and also allows to store more data.

 * improved cleanup of images loaded with the proxy

 * this also adds a timeout for the image loading phase, after that
   running image requests are aborted and the rendering is started
2011-11-26 18:09:25 +01:00
MoyuScript
dff5dab161 accessing nodeType may throw an exception 2011-11-26 18:06:56 +01:00
MoyuScript
7df9c4ecc6 fix origin check in IE 2011-11-26 17:38:11 +01:00
MoyuScript
95c49a3094 Merge pull request #30 from cobexer/build-improvements
Build improvements
2011-11-16 01:10:07 -08:00
MoyuScript
4615eb3073 Improve build system: read version from version.txt, fix build without compiler
* read the version from version.txt
 * set default target to build
 * added dependencies to all targets
 * allow the build to run without a local copy of the closure compiler
 * updated license header with @VERSION@ which will be replaced during the build
 * added the license header to all files (that one will be stripped out by the closure compiler)
2011-11-16 00:36:06 +01:00
MoyuScript
99e4d1befb It is possible for image tags not to have a 'src' (or background-image) attribute specified. This case currently crashes html2canvas. I know its an edge case but it bit me. I set the image src programatically much later (element is actually not visible at the time I call html2canvas). 2011-11-15 16:07:05 +11:00
MoyuScript
008ad63555 Added some support for CSS gradients (by cthackers) 2011-09-12 23:50:43 +03:00
MoyuScript
0701d49e76 merged from dev 2011-09-12 21:39:28 +03:00