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

Side by Side Diff: Source/devtools/front_end/network/NetworkDataGridNode.js

Issue 1048823002: [DevTools] Simplify getting back to default network order. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/network/NetworkLogView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 nodeSelfHeight: function() 68 nodeSelfHeight: function()
69 { 69 {
70 return this._parentView.rowHeight(); 70 return this._parentView.rowHeight();
71 }, 71 },
72 72
73 /** 73 /**
74 * @override 74 * @override
75 */ 75 */
76 createCells: function() 76 createCells: function()
77 { 77 {
78 this._showTiming = !WebInspector.settings.networkColorCodeResourceTypes. get() && !this._parentView.calculator().startAtZero; 78 this._showTiming = !WebInspector.settings.networkColorCodeResourceTypes. get();
79 this._nameCell = null; 79 this._nameCell = null;
80 this._timelineCell = null; 80 this._timelineCell = null;
81 this._initiatorCell = null; 81 this._initiatorCell = null;
82 82
83 this._element.classList.toggle("network-error-row", this._isFailed()); 83 this._element.classList.toggle("network-error-row", this._isFailed());
84 this._element.classList.toggle("network-navigation-row", this._isNavigat ionRequest); 84 this._element.classList.toggle("network-navigation-row", this._isNavigat ionRequest);
85 WebInspector.SortableDataGridNode.prototype.createCells.call(this); 85 WebInspector.SortableDataGridNode.prototype.createCells.call(this);
86 86
87 this._updateGraph(); 87 this._updateGraph();
88 }, 88 },
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b) 653 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b)
654 { 654 {
655 var aValue = a._request[propertyName]; 655 var aValue = a._request[propertyName];
656 var bValue = b._request[propertyName]; 656 var bValue = b._request[propertyName];
657 if (aValue > bValue) 657 if (aValue > bValue)
658 return revert ? -1 : 1; 658 return revert ? -1 : 1;
659 if (bValue > aValue) 659 if (bValue > aValue)
660 return revert ? 1 : -1; 660 return revert ? 1 : -1;
661 return a._request.indentityCompare(b._request); 661 return a._request.indentityCompare(b._request);
662 } 662 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/network/NetworkLogView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698