Niklas von Hertzen
9a57a08c72
Refactoring logging and gradients
2013-08-06 18:55:04 +03:00
Fritz Elfert
9b051b8749
- Fetch images of current element only
2013-04-05 18:06:37 +02:00
Niklas von Hertzen
1b37c5d1ea
Refactored preload
2013-01-11 23:01:29 +02:00
Niklas von Hertzen
67850f2cee
Refactoring
2013-01-11 22:50:46 +02:00
Niklas von Hertzen
88dd1e41c0
Moved pseudoelement rendering to parse.js
2013-01-11 22:36:23 +02:00
Niklas von Hertzen
9b0c32c62c
Fix firefox pseudoelement bug for images
2013-01-11 20:36:07 +02:00
Niklas von Hertzen
2bb926c7d0
Fix webkit-gradient() parsing
2013-01-11 20:31:34 +02:00
Niklas von Hertzen
3032dc6ce0
Fix empty content getting rendered on firefox/IE
2013-01-11 19:31:05 +02:00
Andy Edinborough
2b0db917e3
don't process pseudo elements for hidden elements; cleanup pseudo elements after render
2013-01-11 10:46:53 -06:00
Andy Edinborough
3edf9fa743
Merge remote-tracking branch 'niklasvh/develop' into develop
...
Conflicts:
src/Parse.js
src/Preload.js
2013-01-03 15:07:38 -06:00
Niklas von Hertzen
053a0a4787
switched background rendering to use patterns
2013-01-03 22:25:35 +02:00
Andy Edinborough
7da4326885
background-size fixes
...
generated gradients need a unique key (the same value can generate a
different image based on background-size); fix so that a single value
specified for background-size yields a scaled height as the second
parameter
2013-01-02 14:51:03 -06:00
Andy Edinborough
9b5ae9e191
support for pseudo elements
2013-01-02 12:58:48 -06:00
Andy Edinborough
6ce619f0c0
refactor Preload
2012-12-30 12:20:35 -06:00
Andy Edinborough
0c66766d55
replace definition property, w/ args[]
...
Also fix reference for preloader
2012-12-30 11:21:44 -06:00
Andy Edinborough
d7bef66cc5
export html2canvas, pass value not def to backgroundImage
2012-12-28 15:49:38 -06:00
Andy Edinborough
a4b7d04e80
move parseBackgroundImage to Util; add tests
2012-12-28 12:33:57 -06:00
Andy Edinborough
62cb111956
style update
2012-12-28 12:24:49 -06:00
Andy Edinborough
3171390f80
satisfy lint task
2012-12-28 12:12:47 -06:00
Andy Edinborough
8fe61a43b0
initial support for multiple background images
...
Adding code from http://jsbin.com/ebigux/latest
2012-12-28 11:53:15 -06:00
Niklas von Hertzen
084bf4b039
Switched build process to use grunt
2012-11-25 20:59:31 +02:00
Niklas von Hertzen
1ba911912d
fixed firefox iframe permission error
2012-06-26 01:30:45 +03:00
Obexer Christoph
b47347d6b8
fixed a few undefined references, fixed missing files in a few places
2012-03-12 07:37:18 +01:00
Obexer Christoph
0674543ab1
cleanup event handers of image objects after use
2012-03-05 07:54:42 +01:00
Niklas von Hertzen
8a5b09be70
gradient check fix
2012-03-04 21:20:22 +02:00
Niklas von Hertzen
7a3ca77471
few bug fixes to getCSS and unit tests
2012-03-04 21:16:18 +02:00
Niklas von Hertzen
3d7a6374ad
bug fixes
2012-03-03 21:03:59 +02:00
Niklas von Hertzen
4579fb25c6
removed jQuery.css dependancy and few general CSS bug fixes
2012-03-03 19:18:39 +02:00
Niklas von Hertzen
cad3be2c66
bug fixes, and further simplification of API
2012-03-02 19:07:15 +02:00
Niklas von Hertzen
c7d526c9ea
simplified API and cleaned up code
2012-03-02 18:05:03 +02:00
Niklas von Hertzen
2dc8b9385e
SVG taint fix, and additional taint testing options
2012-03-01 22:31:51 +02:00
Niklas von Hertzen
6ef6c79f24
todo update proxy
2012-03-01 19:51:07 +02:00
Niklas von Hertzen
3ad49efa00
added support for CORS images and option to create canvas as tainted
2012-03-01 19:44:25 +02:00
Niklas von Hertzen
1447b031c6
html2canvas -> h2clog
2012-02-28 12:40:44 +02:00
Obexer Christoph
c24223ca85
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
Obexer Christoph
afc358fb12
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
Niklas von Hertzen
b65357c55d
added flashcanvas integration and some legacy IE bug fixes
2012-02-26 00:19:16 +02:00
Obexer Christoph
36ff1ec7aa
fix warnings reported by the closure compiler
2012-02-18 23:01:18 +01:00
Obexer Christoph
0d8937435d
fix crash if an img tag has no src, fix undefined variables
2011-12-17 19:50:27 +01:00
Niklas von Hertzen
88174fe136
IE fix
2011-11-27 04:33:41 +02:00
Niklas von Hertzen
1c6469d29b
IE origin fix
2011-11-26 21:29:46 +02:00
Niklas von Hertzen
961f6caf21
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
Obexer Christoph
73763c8114
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
Obexer Christoph
4f49bd6e9b
accessing nodeType may throw an exception
2011-11-26 18:06:56 +01:00
Obexer Christoph
4aba46e247
fix origin check in IE
2011-11-26 17:38:11 +01:00
Niklas von Hertzen
2a3d6a0a35
Merge pull request #30 from cobexer/build-improvements
...
Build improvements
2011-11-16 01:10:07 -08:00
Obexer Christoph
16c74d1f8c
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
Guido Tapia
7ee7d7fa67
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
Niklas von Hertzen
6fe3218b50
Added some support for CSS gradients (by cthackers)
2011-09-12 23:50:43 +03:00
Niklas von Hertzen
f0112ff3ab
merged from dev
2011-09-12 21:39:28 +03:00