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

Unified Diff: chrome/browser/resources/history/history.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/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index bc914c878acae94797c97f52469d048e1467e06f..18fc0fd2976fbcd095cad91c6690af2104e5478e 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -220,7 +220,9 @@ Visit.prototype.addHighlightedText_ = function(node, content, highlightText) {
Visit.prototype.getTitleDOM_ = function() {
var node = createElementWithClassName('div', 'title');
node.style.backgroundImage =
- 'url(chrome://favicon/' + encodeURIForCSS(this.url_) + ')';
+ 'url(chrome://favicon/size/16@' + window.devicePixelRatio + 'x/' +
Evan Stade 2012/09/18 13:54:05 could you put this in util.js? something like GetF
kevers 2012/09/18 17:31:03 Done.
+ encodeURIForCSS(this.url_) + ')';
+ node.style.backgroundSize = '16px';
var link = document.createElement('a');
link.href = this.url_;

Powered by Google App Engine
This is Rietveld 408576698