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

Side by Side Diff: chrome/browser/resources/md_history/history_list.js

Issue 2073703002: MD History: Simplify flex layout in <history-list> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'history-list', 6 is: 'history-list',
7 7
8 properties: { 8 properties: {
9 // The search term for the current query. Set when the query returns. 9 // The search term for the current query. Set when the query returns.
10 searchedTerm: { 10 searchedTerm: {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 * @return {boolean} 237 * @return {boolean}
238 * @private 238 * @private
239 */ 239 */
240 isCardEnd_: function(item, i, length) { 240 isCardEnd_: function(item, i, length) {
241 if (length == 0 || i > length - 1) 241 if (length == 0 || i > length - 1)
242 return false; 242 return false;
243 return i == length - 1 || 243 return i == length - 1 ||
244 this.historyData_[i].dateRelativeDay != 244 this.historyData_[i].dateRelativeDay !=
245 this.historyData_[i + 1].dateRelativeDay; 245 this.historyData_[i + 1].dateRelativeDay;
246 }, 246 },
247
248 /**
249 * @param {number} index
250 * @return {boolean}
251 * @private
252 */
253 isFirstItem_: function(index) {
254 return index == 0;
255 }
247 }); 256 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698