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

Unified Diff: elements/viewer-button/viewer-button.html

Issue 132333015: Use the assetpath for viewer-button in the PDF viewer toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/html-office-public.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: elements/viewer-button/viewer-button.html
diff --git a/elements/viewer-button/viewer-button.html b/elements/viewer-button/viewer-button.html
index b4dbb45b20a9618116351f96e0d56cadffd15d37..aec77e3e6b51c9a5f92267afa2fe3391beec900a 100644
--- a/elements/viewer-button/viewer-button.html
+++ b/elements/viewer-button/viewer-button.html
@@ -19,7 +19,8 @@
srcChanged: function() {
if (this.src) {
this.$.icon.style.backgroundImage =
- 'url(elements/viewer-button/img/' + dpi + 'DPI/' + this.src + ')';
+ 'url(' + this.getAttribute('assetpath') + 'img/' + dpi +
+ 'DPI/' + this.src + ')';
} else {
this.$.icon.style.backgroundImage = '';
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698