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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_list.js
diff --git a/chrome/browser/resources/md_history/history_list.js b/chrome/browser/resources/md_history/history_list.js
index 4f359b324a3c99615143d258ae411cead34b18ff..d0718e23b3160ab99de107e6eb7b55d65cebec98 100644
--- a/chrome/browser/resources/md_history/history_list.js
+++ b/chrome/browser/resources/md_history/history_list.js
@@ -244,4 +244,13 @@ Polymer({
this.historyData_[i].dateRelativeDay !=
this.historyData_[i + 1].dateRelativeDay;
},
+
+ /**
+ * @param {number} index
+ * @return {boolean}
+ * @private
+ */
+ isFirstItem_: function(index) {
+ return index == 0;
+ }
});

Powered by Google App Engine
This is Rietveld 408576698