| 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 96521fb338d43ff20876d949e5eea6e157687abe..48dd23aafae0865a5c8ce7f1883c8049c97b1b66 100644
|
| --- a/Source/devtools/front_end/network/NetworkPanel.js
|
| +++ b/Source/devtools/front_end/network/NetworkPanel.js
|
| @@ -2502,6 +2502,7 @@ WebInspector.NetworkDataGridNode = function(parentView, request)
|
| this._linkifier = new WebInspector.Linkifier();
|
| this._isFilteredOut = true;
|
| this._isMatchingSearchQuery = false;
|
| + this._type = null;
|
| }
|
|
|
| WebInspector.NetworkDataGridNode.prototype = {
|
| @@ -2522,10 +2523,12 @@ WebInspector.NetworkDataGridNode.prototype = {
|
| var element = this._element;
|
| element.classList.toggle("network-error-row", this._isFailed());
|
| element.classList.toggle("resource-cached", this._request.cached);
|
| - var typeClassName = "network-type-" + this._request.type.name();
|
| - if (!element.classList.contains(typeClassName)) {
|
| - element.removeMatchingStyleClasses("network-type-\\w+");
|
| - element.classList.add(typeClassName);
|
| + var type = this._request.type.name();
|
| + if (type != this._type) {
|
| + if (this._type)
|
| + element.classList.remove(this._type);
|
| + this._type = type;
|
| + element.classList.add(this._type);
|
| }
|
|
|
| WebInspector.SortableDataGridNode.prototype.createCells.call(this);
|
|
|