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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js

Issue 2649653002: [Devtools] Added padding to child nodes in network group experiment (Closed)
Patch Set: changes Created 3 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: third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
index e5444aaf1960c75d756b97dc03209fee80c8cbe2..1705ab0a29acb2764c4971d561c5e2900e536584 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkDataGridNode.js
@@ -725,6 +725,8 @@ Network.NetworkRequestNode = class extends Network.NetworkNode {
* @param {!Element} cell
*/
_renderNameCell(cell) {
+ var leftPadding = this.leftPadding ? this.leftPadding + 'px' : '';
+ cell.style.setProperty('padding-left', leftPadding);
this._nameCell = cell;
cell.addEventListener('dblclick', this._openInNewTab.bind(this), false);
var iconElement;
@@ -942,6 +944,8 @@ Network.NetworkGroupNode = class extends Network.NetworkNode {
createCell(columnIdentifier) {
var cell = this.createTD(columnIdentifier);
if (columnIdentifier === 'name') {
+ var leftPadding = this.leftPadding ? this.leftPadding + 'px' : '';
+ cell.style.setProperty('padding-left', leftPadding);
cell.classList.add('disclosure');
this._setTextAndTitle(cell, this._displayName);
}
« 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