Index: chrome/browser/resources/ntp4/tile_page.js |
diff --git a/chrome/browser/resources/ntp4/tile_page.js b/chrome/browser/resources/ntp4/tile_page.js |
index edd3eb0cc616841155ebf757895036ff1ba46830..590a45f1bcae14d22a3f84290a991320ddbf190e 100644 |
--- a/chrome/browser/resources/ntp4/tile_page.js |
+++ b/chrome/browser/resources/ntp4/tile_page.js |
@@ -723,7 +723,14 @@ cr.define('ntp4', function() { |
} |
var leftMargin = this.layoutValues_.leftMargin; |
- var fadeDistance = Math.min(leftMargin, 20); |
+ // The fade distance is the space between tiles. |
+ var fadeDistance = (this.gridValues_.tileSpacingFraction * |
+ this.layoutValues_.tileWidth); |
+ fadeDistance = Math.min(leftMargin, fadeDistance); |
+ // On Skia we don't use any fade because it works very poorly. See |
+ // http://crbug.com/99373 |
+ if (!cr.isMac) |
Dan Beam
2011/10/07 20:05:42
I still think you should mention in the above comm
|
+ fadeDistance = 1; |
var gradient = |
'-webkit-linear-gradient(left,' + |
'transparent, ' + |