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

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: Fix HandleGetFaviconDominantColor. 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..40bf4d1d913a8e3aa4b69f6b2b9a04db92b5d970 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -219,8 +219,8 @@ 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_) + ')';
+ node.style.backgroundImage = url(getFaviconURL(encodeURIForCSS(this.url_)));
+ node.style.backgroundSize = '16px';
var link = document.createElement('a');
link.href = this.url_;
« no previous file with comments | « chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js ('k') | chrome/browser/resources/ntp4/most_visited_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698