Correctly clip content that has border-radius (#399)

This commit is contained in:
Niklas von Hertzen
2014-10-07 19:11:24 +03:00
parent 6073928978
commit 5712b621ca
4 changed files with 6 additions and 1 deletions

View File

@ -281,7 +281,9 @@ NodeParser.prototype.paintNode = function(container) {
this.renderer.clip(container.clip, function() {
this.renderer.renderBorders(container.borders.borders);
}, this);
this.renderer.clip(container.backgroundClip, function() {
switch (container.node.nodeName) {
case "svg":
case "IFRAME":