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

Unified Diff: ui/file_manager/audio_player/elements/track_list.js

Issue 1510453002: AudioPlayer: Fix the way to find a track element with given index. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: ui/file_manager/audio_player/elements/track_list.js
diff --git a/ui/file_manager/audio_player/elements/track_list.js b/ui/file_manager/audio_player/elements/track_list.js
index d1a030e4652d785364e0e65fbcaf147161580a52..8d336cd62e2ab6aff50d79a95347a7a361e0a782 100644
--- a/ui/file_manager/audio_player/elements/track_list.js
+++ b/ui/file_manager/audio_player/elements/track_list.js
@@ -191,8 +191,7 @@ var TrackInfo;
* @private
*/
ensureTrackInViewport_: function(trackIndex) {
- var trackSelector = '::shadow .track[index="' + trackIndex + '"]';
- var trackElement = this.querySelector(trackSelector);
+ var trackElement = this.$$('.track[index="' + trackIndex + '"]');
if (trackElement) {
var viewTop = this.scrollTop;
var viewHeight = this.clientHeight;
« 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