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

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

Issue 1116003002: [DevTools] Simplify getting back to default network order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« 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.moduleSetting("networkColorCodeResource Types").get() && !this._parentView.calculator().startAtZero; 78 this._showTiming = !WebInspector.moduleSetting("networkColorCodeResource Types").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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b) 648 WebInspector.NetworkDataGridNode.RequestPropertyComparator = function(propertyNa me, revert, a, b)
649 { 649 {
650 var aValue = a._request[propertyName]; 650 var aValue = a._request[propertyName];
651 var bValue = b._request[propertyName]; 651 var bValue = b._request[propertyName];
652 if (aValue > bValue) 652 if (aValue > bValue)
653 return revert ? -1 : 1; 653 return revert ? -1 : 1;
654 if (bValue > aValue) 654 if (bValue > aValue)
655 return revert ? 1 : -1; 655 return revert ? 1 : -1;
656 return a._request.indentityCompare(b._request); 656 return a._request.indentityCompare(b._request);
657 } 657 }
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