Index: Source/devtools/front_end/network/NetworkPanel.js |
diff --git a/Source/devtools/front_end/network/NetworkPanel.js b/Source/devtools/front_end/network/NetworkPanel.js |
index 28ef9471e0777441832aafa894df62fa5bc8fd3a..9b8a5938fdc9fc9f8fc95c79cfd9686766742b64 100644 |
--- a/Source/devtools/front_end/network/NetworkPanel.js |
+++ b/Source/devtools/front_end/network/NetworkPanel.js |
@@ -83,6 +83,8 @@ WebInspector.NetworkLogView = function(filterBar, coulmnsVisibilitySetting) |
this._initializeView(); |
this._recordButton.toggled = true; |
+ this._rowHeight = 41; |
lushnikov
2014/07/28 16:33:56
= 0
+ @type
+ call _setLargerRequests unconditiona
eustas
2014/07/29 07:00:29
Done.
|
+ |
WebInspector.targetManager.observeTargets(this); |
WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, WebInspector.NetworkManager.EventTypes.RequestStarted, this._onRequestStarted, this); |
WebInspector.targetManager.addModelListener(WebInspector.NetworkManager, WebInspector.NetworkManager.EventTypes.RequestUpdated, this._onRequestUpdated, this); |
@@ -972,16 +974,26 @@ WebInspector.NetworkLogView.prototype = { |
}, |
/** |
+ * @return {number} |
+ */ |
+ rowHeight: function() |
+ { |
+ return this._rowHeight; |
+ }, |
+ |
+ /** |
* @param {boolean} enabled |
*/ |
_setLargerRequests: function(enabled) |
{ |
this._largerRequestsButton.toggled = enabled; |
if (!enabled) { |
+ this._rowHeight = 41; |
this._largerRequestsButton.title = WebInspector.UIString("Use large resource rows."); |
this._dataGrid.element.classList.add("small"); |
this._timelineGrid.element.classList.add("small"); |
} else { |
+ this._rowHeight = 21; |
this._largerRequestsButton.title = WebInspector.UIString("Use small resource rows."); |
this._dataGrid.element.classList.remove("small"); |
this._timelineGrid.element.classList.remove("small"); |
@@ -2513,6 +2525,14 @@ WebInspector.NetworkDataGridNode = function(parentView, request) |
} |
WebInspector.NetworkDataGridNode.prototype = { |
+ /** |
+ * @override |
+ * @return {number} |
+ */ |
+ nodeSelfHeight: function() { |
+ return this._parentView.rowHeight(); |
+ }, |
+ |
/** override */ |
createCells: function() |
{ |