Add dom depth information to render queue

This commit is contained in:
Niklas von Hertzen 2013-10-27 22:08:12 +02:00
parent 4c75d819a4
commit 7cc7f80ee2
3 changed files with 6 additions and 2 deletions

View File

@ -1509,6 +1509,7 @@ _html2canvas.Parse = function (images, options, cb) {
newContext.isFloated = isFloated;
newContext.opacity = opacity;
newContext.ownStacking = (zIndex !== 'auto' || opacity < 1);
newContext.depth = parentStack ? (parentStack.zIndex.depth + 1) : 0;
if (parentStack) {
parentStack.zIndex.children.push(stack);
@ -1517,6 +1518,7 @@ _html2canvas.Parse = function (images, options, cb) {
function h2czContext(zindex) {
return {
depth: 0,
zindex: zindex,
children: []
};

File diff suppressed because one or more lines are too long

View File

@ -478,6 +478,7 @@ _html2canvas.Parse = function (images, options, cb) {
newContext.isFloated = isFloated;
newContext.opacity = opacity;
newContext.ownStacking = (zIndex !== 'auto' || opacity < 1);
newContext.depth = parentStack ? (parentStack.zIndex.depth + 1) : 0;
if (parentStack) {
parentStack.zIndex.children.push(stack);
@ -486,6 +487,7 @@ _html2canvas.Parse = function (images, options, cb) {
function h2czContext(zindex) {
return {
depth: 0,
zindex: zindex,
children: []
};