[Chromium] Web Inspector: remove "Document DOM tree" class and "Detached DOM tree...
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jan 2012 15:03:35 +0000 (15:03 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Jan 2012 15:03:35 +0000 (15:03 +0000)
https://bugs.webkit.org/show_bug.cgi?id=76450

Reviewed by Yury Semikhatsky.

* inspector/front-end/HeapSnapshot.js:
(WebInspector.HeapSnapshot.prototype._buildAggregates):

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

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

index 32669bbaa9c216a20f0f7c42be2674c14f95b0cf..a19337ae902d02c245534cf584a9f40707bd2df1 100644 (file)
@@ -1,3 +1,13 @@
+2012-01-17  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        [Chromium] Web Inspector: remove "Document DOM tree" class and "Detached DOM tree" from the Summary view.
+        https://bugs.webkit.org/show_bug.cgi?id=76450
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/front-end/HeapSnapshot.js:
+        (WebInspector.HeapSnapshot.prototype._buildAggregates):
+
 2012-01-17  Nikolas Zimmermann  <nzimmermann@rim.com>
 
         Large SVG text layout performance regression in r81168
 2012-01-17  Nikolas Zimmermann  <nzimmermann@rim.com>
 
         Large SVG text layout performance regression in r81168
index a7880eb64c4fc4610caeb777da6c188a77017cb8..11e889a0e117d4c3e7cd3c625d156917f85e13bc 100644 (file)
@@ -909,8 +909,12 @@ WebInspector.HeapSnapshot.prototype = {
                 continue;
             if (node.type !== "native" && node.selfSize === 0)
                 continue;
                 continue;
             if (node.type !== "native" && node.selfSize === 0)
                 continue;
-            var nameMatters = node.type === "object" || node.type === "native";
             var className = node.className;
             var className = node.className;
+            if (className === "Document DOM tree")
+                continue;
+            if (className === "Detached DOM tree")
+                continue;
+            var nameMatters = node.type === "object" || node.type === "native";
             if (!aggregates.hasOwnProperty(className))
                 aggregates[className] = { count: 0, self: 0, maxRet: 0, type: node.type, name: nameMatters ? node.name : null, idxs: [] };
             var clss = aggregates[className];
             if (!aggregates.hasOwnProperty(className))
                 aggregates[className] = { count: 0, self: 0, maxRet: 0, type: node.type, name: nameMatters ? node.name : null, idxs: [] };
             var clss = aggregates[className];