Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: chrome/browser/resources/ntp4/most_visited_page.js

Issue 10909236: Add support for favicon scale factor in WebUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use high-DPI icons for search engine dialog. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/ntp4/most_visited_page.js
diff --git a/chrome/browser/resources/ntp4/most_visited_page.js b/chrome/browser/resources/ntp4/most_visited_page.js
index 8b005b93a45cfa1f297943308c6adc8f5ed1b5fd..eaa4156a988dcbf14508ad0a804ca2c749c70d9a 100644
--- a/chrome/browser/resources/ntp4/most_visited_page.js
+++ b/chrome/browser/resources/ntp4/most_visited_page.js
@@ -94,7 +94,8 @@ cr.define('ntp', function() {
this.classList.add('focusable');
var faviconDiv = this.querySelector('.favicon');
- var faviconUrl = 'chrome://favicon/size/16/' + data.url;
+ var faviconUrl = 'chrome://favicon/size/16@' +
+ window.devicePixelRatio + 'x/' + data.url;
faviconDiv.style.backgroundImage = url(faviconUrl);
chrome.send('getFaviconDominantColor', [faviconUrl, this.id]);

Powered by Google App Engine
This is Rietveld 408576698