This commit is contained in:
MoyuScript
2012-11-25 22:39:09 +02:00
parent 96d8db6f6d
commit ad03ce5182
7 changed files with 4 additions and 98 deletions

View File

@ -1,7 +0,0 @@
/**
@license html2canvas @VERSION@ <http://html2canvas.hertzen.com>
Copyright (c) 2011 Niklas von Hertzen. All rights reserved.
http://www.twitter.com/niklasvh
Released under MIT License
*/

View File

@ -1,15 +1,3 @@
/*
html2canvas @VERSION@ <http://html2canvas.hertzen.com>
Copyright (c) 2011 Niklas von Hertzen. All rights reserved.
http://www.twitter.com/niklasvh
Released under MIT License
*/
/*
* New function for traversing elements
*/
_html2canvas.Parse = function ( images, options ) {
window.scroll(0,0);
@ -111,17 +99,6 @@ _html2canvas.Parse = function ( images, options ) {
}
/*
var rootStack = new this.storageContext($(document).width(),$(document).height());
rootStack.opacity = this.getCSS(this.element,"opacity");
var stack = this.newElement(this.element,rootStack);
this.parseElement(this.element,stack);
*/
var getCSS = _html2canvas.Util.getCSS;
function getCSSInt(element, attribute) {
@ -350,12 +327,12 @@ _html2canvas.Parse = function ( images, options ) {
if (range.getBoundingClientRect()) {
bounds = range.getBoundingClientRect();
}else{
} else {
bounds = {};
}
}
}else{
} else {
// it isn't supported, so let's wrap it inside an element instead and get the bounds there
// IE 9 bug

View File

@ -157,7 +157,7 @@ _html2canvas.Renderer.Canvas = function( options ) {
}
} else if (renderItem.name === "drawImage") {
if (renderItem['arguments'][8] > 0 && renderItem['arguments'][7]){
if (renderItem['arguments'][8] > 0 && renderItem['arguments'][7] > 0) {
if ( hasCTX && options.taintTest ) {
if ( safeImages.indexOf( renderItem['arguments'][ 0 ].src ) === -1 ) {
testctx.drawImage( renderItem['arguments'][ 0 ], 0, 0 );