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

Unified Diff: chrome/browser/resources/file_manager/js/photo/ribbon.js

Issue 14320020: Initial restyle of the gallery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 7 years, 8 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/file_manager/js/photo/ribbon.js
diff --git a/chrome/browser/resources/file_manager/js/photo/ribbon.js b/chrome/browser/resources/file_manager/js/photo/ribbon.js
index 2b2f3155352df27c919fcc05eddeb91b5c99a9b1..eb1c5990daf272635a172d313e72f4696bf8f738 100644
--- a/chrome/browser/resources/file_manager/js/photo/ribbon.js
+++ b/chrome/browser/resources/file_manager/js/photo/ribbon.js
@@ -300,8 +300,12 @@ Ribbon.prototype.renderThumbnail_ = function(index) {
var url = item.getUrl();
var cached = this.renderCache_[url];
- if (cached)
+ if (cached) {
+ var img = cached.querySelector('img');
+ if (img)
+ img.classList.add('cached');
return cached;
+ }
var thumbnail = this.ownerDocument.createElement('div');
thumbnail.className = 'ribbon-image';
« no previous file with comments | « chrome/browser/resources/file_manager/js/photo/gallery.js ('k') | chrome/browser/resources/file_manager/main_new_ui.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698