[Web Inspector] Network panel, sort by "transferSize" instead of "resourceSize".
[WebKit-https.git] / Source / WebCore / inspector / front-end / NetworkPanel.js
index 890d3e4cc7cc68e641136c7eb4896edaca767bdf..e2c12702fe3d39aedc4756c4cabfce059a89791c 100644 (file)
@@ -2378,10 +2378,10 @@ WebInspector.NetworkDataGridNode.SizeComparator = function(a, b)
     if (a._request.cached && !b._request.cached)
         return -1;
 
-    if (a._request.resourceSize === b._request.resourceSize)
+    if (a._request.transferSize === b._request.transferSize)
         return 0;
 
-    return a._request.resourceSize - b._request.resourceSize;
+    return a._request.transferSize - b._request.transferSize;
 }
 
 WebInspector.NetworkDataGridNode.InitiatorComparator = function(a, b)