Skip to content

Commit

Permalink
fix(bugs)
Browse files Browse the repository at this point in the history
  • Loading branch information
basvanmeurs committed Aug 20, 2018
1 parent cd6a6b2 commit 685523a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dist/wuf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7854,7 +7854,7 @@ class ViewCore {
}
}

let withinMargin = (this._outOfBounds === 0)
withinMargin = (this._outOfBounds === 0)
if (!withinMargin && !!this._recBoundsMargin) {
// Re-test, now with margins.
withinMargin = !((ex < this._scissor[0] - this._recBoundsMargin[2]) ||
Expand Down Expand Up @@ -11837,6 +11837,11 @@ class Tools {
canvas.width = w + margin * 2;
canvas.height = h + margin * 2;

// WpeWebKit bug: we experienced problems without this with shadows in noncompositedwebgl mode.
ctx.globalAlpha = 0.01;
ctx.fillRect(0, 0, 0.01, 0.01);
ctx.globalAlpha = 1.0;

ctx.shadowColor = StageUtils.getRgbaString(0xFFFFFFFF)
ctx.fillStyle = StageUtils.getRgbaString(0xFFFFFFFF)
ctx.shadowBlur = blur
Expand Down
5 changes: 5 additions & 0 deletions src/tools/Tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ class Tools {
canvas.width = w + margin * 2;
canvas.height = h + margin * 2;

// WpeWebKit bug: we experienced problems without this with shadows in noncompositedwebgl mode.
ctx.globalAlpha = 0.01;
ctx.fillRect(0, 0, 0.01, 0.01);
ctx.globalAlpha = 1.0;

ctx.shadowColor = StageUtils.getRgbaString(0xFFFFFFFF)
ctx.fillStyle = StageUtils.getRgbaString(0xFFFFFFFF)
ctx.shadowBlur = blur
Expand Down
2 changes: 1 addition & 1 deletion src/tree/core/ViewCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ class ViewCore {
}
}

let withinMargin = (this._outOfBounds === 0)
withinMargin = (this._outOfBounds === 0)
if (!withinMargin && !!this._recBoundsMargin) {
// Re-test, now with margins.
withinMargin = !((ex < this._scissor[0] - this._recBoundsMargin[2]) ||
Expand Down

0 comments on commit 685523a

Please sign in to comment.