[Chromium] Web Inspector: remove "Document DOM tree" class and "Detached DOM tree...
[WebKit-https.git] / Source / WebCore / inspector / front-end / HeapSnapshot.js
index a7880eb64c4fc4610caeb777da6c188a77017cb8..11e889a0e117d4c3e7cd3c625d156917f85e13bc 100644 (file)
@@ -909,8 +909,12 @@ WebInspector.HeapSnapshot.prototype = {
                 continue;
             if (node.type !== "native" && node.selfSize === 0)
                 continue;
-            var nameMatters = node.type === "object" || node.type === "native";
             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];