Permalink
Browse files

Don't perform border rendering if there is no border-radius specified.

  • Loading branch information...
1 parent b9e6813 commit 64f4e7d0bc5d823c7ff5214e20bd36d1695f7c4d Jason Johnston committed with Nov 19, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 sources/BorderRenderer.js
@@ -17,8 +17,7 @@ PIE.BorderRenderer = PIE.RendererBase.newRenderer( {
isActive: function() {
var si = this.styleInfos;
- return ( si.borderRadiusInfo.isActive() ||
- si.backgroundInfo.isActive() ) &&
+ return si.borderRadiusInfo.isActive() &&
!si.borderImageInfo.isActive() &&
si.borderInfo.isActive(); //check BorderStyleInfo last because it's the most expensive
},

0 comments on commit 64f4e7d

Please sign in to comment.