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

Unified Diff: third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js

Issue 2894083002: [DevTools] Set row background instead of the table (Closed)
Patch Set: Fixed a comment Created 3 years, 7 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: third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js b/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js
index c2596267caea68d095106b00f39f98a78c32f41d..d1c647225fe1b575435848bf40feb7db7c0ad54e 100644
--- a/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/data_grid/DataGrid.js
@@ -125,6 +125,13 @@ DataGrid.DataGrid = class extends Common.Object {
}
/**
+ * @param {boolean} isStriped
+ */
+ setStriped(isStriped) {
+ this.element.classList.toggle('striped-data-grid', isStriped);
+ }
+
+ /**
* @return {!Element}
*/
headerTableBody() {
@@ -1291,7 +1298,7 @@ DataGrid.DataGridNode = class extends Common.Object {
* @return {!Element}
*/
createElement() {
- this._element = createElement('tr');
+ this._element = createElementWithClass('tr', 'data-grid-data-grid-node');
this._element._dataGridNode = this;
if (this._hasChildren)

Powered by Google App Engine
This is Rietveld 408576698