[Web Inspector] Network panel, sort by "transferSize" instead of "resourceSize".
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Feb 2013 10:24:02 +0000 (10:24 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 11 Feb 2013 10:24:02 +0000 (10:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109142.

Patch by Pan Deng <pan.deng@intel.com> on 2013-02-11
Reviewed by Vsevolod Vlasov.

Sort by "transferSize" as it is the primary rather than "resoureSize".

No new tests.

* inspector/front-end/NetworkPanel.js:
(WebInspector.NetworkDataGridNode.SizeComparator):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142443 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/NetworkPanel.js

index e160aa221c5d44cb3e2aab36470d8ba11efbae02..09b7c1631dca92d7654230fc79034a08cf6b413d 100644 (file)
@@ -1,3 +1,17 @@
+2013-02-11  Pan Deng  <pan.deng@intel.com>
+
+        [Web Inspector] Network panel, sort by "transferSize" instead of "resourceSize".
+        https://bugs.webkit.org/show_bug.cgi?id=109142.
+
+        Reviewed by Vsevolod Vlasov.
+
+        Sort by "transferSize" as it is the primary rather than "resoureSize".
+
+        No new tests.
+
+        * inspector/front-end/NetworkPanel.js:
+        (WebInspector.NetworkDataGridNode.SizeComparator):
+
 2013-02-11  Eugene Klyuchnikov  <eustas@chromium.org>
 
         Web Inspector: [Resources] Prefactorings in DataGrid and CookieTable
 2013-02-11  Eugene Klyuchnikov  <eustas@chromium.org>
 
         Web Inspector: [Resources] Prefactorings in DataGrid and CookieTable
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.cached && !b._request.cached)
         return -1;
 
-    if (a._request.resourceSize === b._request.resourceSize)
+    if (a._request.transferSize === b._request.transferSize)
         return 0;
 
         return 0;
 
-    return a._request.resourceSize - b._request.resourceSize;
+    return a._request.transferSize - b._request.transferSize;
 }
 
 WebInspector.NetworkDataGridNode.InitiatorComparator = function(a, b)
 }
 
 WebInspector.NetworkDataGridNode.InitiatorComparator = function(a, b)