<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[200517] trunk/Source/WebInspectorUI</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/200517">200517</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-05-06 12:54:32 -0700 (Fri, 06 May 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Web Inspector: Remove HeapSnapshot Summary View
https://bugs.webkit.org/show_bug.cgi?id=157385
Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-05-06
Reviewed by Timothy Hatcher.
* Localizations/en.lproj/localizedStrings.js:
* UserInterface/Main.html:
* UserInterface/Views/HeapSnapshotClusterContentView.js:
(WebInspector.HeapSnapshotClusterContentView):
(WebInspector.HeapSnapshotClusterContentView.prototype.get summaryContentView): Deleted.
(WebInspector.HeapSnapshotClusterContentView.prototype.showSummary): Deleted.
(WebInspector.HeapSnapshotClusterContentView.prototype._pathComponentForContentView):
(WebInspector.HeapSnapshotClusterContentView.prototype._identifierForContentView):
(WebInspector.HeapSnapshotClusterContentView.prototype._showContentViewForIdentifier):
* UserInterface/Views/HeapSnapshotSummaryContentView.css: Removed.
* UserInterface/Views/HeapSnapshotSummaryContentView.js: Removed.
* UserInterface/Views/Variables.css:
(:root):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs">trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceMainhtml">trunk/Source/WebInspectorUI/UserInterface/Main.html</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsHeapSnapshotClusterContentViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotClusterContentView.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsVariablescss">trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsHeapSnapshotSummaryContentViewcss">trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.css</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsHeapSnapshotSummaryContentViewjs">trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (200516 => 200517)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2016-05-06 19:54:15 UTC (rev 200516)
+++ trunk/Source/WebInspectorUI/ChangeLog        2016-05-06 19:54:32 UTC (rev 200517)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2016-05-06 Joseph Pecoraro <pecoraro@apple.com>
+
+ Web Inspector: Remove HeapSnapshot Summary View
+ https://bugs.webkit.org/show_bug.cgi?id=157385
+
+ Reviewed by Timothy Hatcher.
+
+ * Localizations/en.lproj/localizedStrings.js:
+ * UserInterface/Main.html:
+ * UserInterface/Views/HeapSnapshotClusterContentView.js:
+ (WebInspector.HeapSnapshotClusterContentView):
+ (WebInspector.HeapSnapshotClusterContentView.prototype.get summaryContentView): Deleted.
+ (WebInspector.HeapSnapshotClusterContentView.prototype.showSummary): Deleted.
+ (WebInspector.HeapSnapshotClusterContentView.prototype._pathComponentForContentView):
+ (WebInspector.HeapSnapshotClusterContentView.prototype._identifierForContentView):
+ (WebInspector.HeapSnapshotClusterContentView.prototype._showContentViewForIdentifier):
+ * UserInterface/Views/HeapSnapshotSummaryContentView.css: Removed.
+ * UserInterface/Views/HeapSnapshotSummaryContentView.js: Removed.
+ * UserInterface/Views/Variables.css:
+ (:root):
+
</ins><span class="cx"> 2016-05-06 Manuel Rego Casasnovas <rego@igalia.com>
</span><span class="cx">
</span><span class="cx"> [css-grid] Unprefix CSS Grid Layout properties
</span></span></pre></div>
<a id="trunkSourceWebInspectorUILocalizationsenlprojlocalizedStringsjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js (200516 => 200517)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2016-05-06 19:54:15 UTC (rev 200516)
+++ trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js        2016-05-06 19:54:32 UTC (rev 200517)
</span><span class="lines">@@ -67,7 +67,6 @@
</span><span class="cx"> localizedStrings["All Resources"] = "All Resources";
</span><span class="cx"> localizedStrings["All Storage"] = "All Storage";
</span><span class="cx"> localizedStrings["All Uncaught Exceptions"] = "All Uncaught Exceptions";
</span><del>-localizedStrings["Allocation Size Breakdown"] = "Allocation Size Breakdown";
</del><span class="cx"> localizedStrings["Alternates"] = "Alternates";
</span><span class="cx"> localizedStrings["An error occurred trying to load the resource."] = "An error occurred trying to load the resource.";
</span><span class="cx"> localizedStrings["An error occurred trying to read the %s table."] = "An error occurred trying to read the %s table.";
</span><span class="lines">@@ -96,7 +95,6 @@
</span><span class="cx"> localizedStrings["Author Stylesheet"] = "Author Stylesheet";
</span><span class="cx"> localizedStrings["Automatically continue after evaluating"] = "Automatically continue after evaluating";
</span><span class="cx"> localizedStrings["Average Time"] = "Average Time";
</span><del>-localizedStrings["Average allocation size"] = "Average allocation size";
</del><span class="cx"> localizedStrings["Back (%s)"] = "Back (%s)";
</span><span class="cx"> localizedStrings["Background"] = "Background";
</span><span class="cx"> localizedStrings["Basis"] = "Basis";
</span><span class="lines">@@ -111,10 +109,7 @@
</span><span class="cx"> localizedStrings["Box Model"] = "Box Model";
</span><span class="cx"> localizedStrings["Box Shadow"] = "Box Shadow";
</span><span class="cx"> localizedStrings["Breakdown"] = "Breakdown";
</span><del>-localizedStrings["Breakdown of allocations into size classes"] = "Breakdown of allocations into size classes";
</del><span class="cx"> localizedStrings["Breakdown of each memory category at the end of the selected time range"] = "Breakdown of each memory category at the end of the selected time range";
</span><del>-localizedStrings["Breakdown of object counts by class"] = "Breakdown of object counts by class";
-localizedStrings["Breakdown of total allocation size by class"] = "Breakdown of total allocation size by class";
</del><span class="cx"> localizedStrings["Bubbling"] = "Bubbling";
</span><span class="cx"> localizedStrings["Busy"] = "Busy";
</span><span class="cx"> localizedStrings["CSP Hash"] = "CSP Hash";
</span><span class="lines">@@ -133,9 +128,7 @@
</span><span class="cx"> localizedStrings["Checked"] = "Checked";
</span><span class="cx"> localizedStrings["Child Layers"] = "Child Layers";
</span><span class="cx"> localizedStrings["Children"] = "Children";
</span><del>-localizedStrings["Class Count Breakdown"] = "Class Count Breakdown";
</del><span class="cx"> localizedStrings["Class Name"] = "Class Name";
</span><del>-localizedStrings["Class Size Breakdown"] = "Class Size Breakdown";
</del><span class="cx"> localizedStrings["Classes"] = "Classes";
</span><span class="cx"> localizedStrings["Clear"] = "Clear";
</span><span class="cx"> localizedStrings["Clear Log"] = "Clear Log";
</span><span class="lines">@@ -420,7 +413,6 @@
</span><span class="cx"> localizedStrings["Keep Log on Navigation"] = "Keep Log on Navigation";
</span><span class="cx"> localizedStrings["Key"] = "Key";
</span><span class="cx"> localizedStrings["Label"] = "Label";
</span><del>-localizedStrings["Large %s"] = "Large %s";
</del><span class="cx"> localizedStrings["Latency"] = "Latency";
</span><span class="cx"> localizedStrings["Layer"] = "Layer";
</span><span class="cx"> localizedStrings["Layer Count: %d"] = "Layer Count: %d";
</span><span class="lines">@@ -461,7 +453,6 @@
</span><span class="cx"> localizedStrings["Maximum Size: %s"] = "Maximum Size: %s";
</span><span class="cx"> localizedStrings["Maximum maximum memory size in this recording"] = "Maximum maximum memory size in this recording";
</span><span class="cx"> localizedStrings["Media: "] = "Media: ";
</span><del>-localizedStrings["Medium %s"] = "Medium %s";
</del><span class="cx"> localizedStrings["Memory"] = "Memory";
</span><span class="cx"> localizedStrings["Memory: %s"] = "Memory: %s";
</span><span class="cx"> localizedStrings["Message"] = "Message";
</span><span class="lines">@@ -501,7 +492,6 @@
</span><span class="cx"> localizedStrings["No Watch Expressions"] = "No Watch Expressions";
</span><span class="cx"> localizedStrings["No exact ARIA role match."] = "No exact ARIA role match.";
</span><span class="cx"> localizedStrings["No message"] = "No message";
</span><del>-localizedStrings["No objects"] = "No objects";
</del><span class="cx"> localizedStrings["No preview available"] = "No preview available";
</span><span class="cx"> localizedStrings["No properties."] = "No properties.";
</span><span class="cx"> localizedStrings["Node"] = "Node";
</span><span class="lines">@@ -658,7 +648,6 @@
</span><span class="cx"> localizedStrings["Size of the current object plus the size of all objects it keeps alive."] = "Size of the current object plus the size of all objects it keeps alive.";
</span><span class="cx"> localizedStrings["Sizing"] = "Sizing";
</span><span class="cx"> localizedStrings["Slice"] = "Slice";
</span><del>-localizedStrings["Small %s"] = "Small %s";
</del><span class="cx"> localizedStrings["Small Icons"] = "Small Icons";
</span><span class="cx"> localizedStrings["Snapshot %d"] = "Snapshot %d";
</span><span class="cx"> localizedStrings["Snapshot %d \u2014 %s"] = "Snapshot %d \u2014 %s";
</span><span class="lines">@@ -700,7 +689,6 @@
</span><span class="cx"> localizedStrings["Styles \u2014 Visual"] = "Styles \u2014 Visual";
</span><span class="cx"> localizedStrings["Stylesheet"] = "Stylesheet";
</span><span class="cx"> localizedStrings["Stylesheets"] = "Stylesheets";
</span><del>-localizedStrings["Summary"] = "Summary";
</del><span class="cx"> localizedStrings["Take snapshot"] = "Take snapshot";
</span><span class="cx"> localizedStrings["Text"] = "Text";
</span><span class="cx"> localizedStrings["Text Node"] = "Text Node";
</span><span class="lines">@@ -736,9 +724,7 @@
</span><span class="cx"> localizedStrings["Total Time"] = "Total Time";
</span><span class="cx"> localizedStrings["Total memory size at the end of the selected time range"] = "Total memory size at the end of the selected time range";
</span><span class="cx"> localizedStrings["Total number of resources, click to show the Resources tab"] = "Total number of resources, click to show the Resources tab";
</span><del>-localizedStrings["Total object count"] = "Total object count";
</del><span class="cx"> localizedStrings["Total size of all resources, click to show the Network Requests timeline"] = "Total size of all resources, click to show the Network Requests timeline";
</span><del>-localizedStrings["Total size of heap"] = "Total size of heap";
</del><span class="cx"> localizedStrings["Trace"] = "Trace";
</span><span class="cx"> localizedStrings["Trace: %s"] = "Trace: %s";
</span><span class="cx"> localizedStrings["Transferred"] = "Transferred";
</span><span class="lines">@@ -761,7 +747,6 @@
</span><span class="cx"> localizedStrings["Value"] = "Value";
</span><span class="cx"> localizedStrings["Variants"] = "Variants";
</span><span class="cx"> localizedStrings["Vertical"] = "Vertical";
</span><del>-localizedStrings["Very Large"] = "Very Large";
</del><span class="cx"> localizedStrings["Visibility"] = "Visibility";
</span><span class="cx"> localizedStrings["Warning: "] = "Warning: ";
</span><span class="cx"> localizedStrings["Warnings"] = "Warnings";
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceMainhtml"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Main.html (200516 => 200517)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Main.html        2016-05-06 19:54:15 UTC (rev 200516)
+++ trunk/Source/WebInspectorUI/UserInterface/Main.html        2016-05-06 19:54:32 UTC (rev 200517)
</span><span class="lines">@@ -93,7 +93,6 @@
</span><span class="cx"> <link rel="stylesheet" href="Views/HeapAllocationsTimelineOverviewGraph.css">
</span><span class="cx"> <link rel="stylesheet" href="Views/HeapAllocationsTimelineView.css">
</span><span class="cx"> <link rel="stylesheet" href="Views/HeapSnapshotInstancesContentView.css">
</span><del>- <link rel="stylesheet" href="Views/HeapSnapshotSummaryContentView.css">
</del><span class="cx"> <link rel="stylesheet" href="Views/HierarchicalPathComponent.css">
</span><span class="cx"> <link rel="stylesheet" href="Views/HoverMenu.css">
</span><span class="cx"> <link rel="stylesheet" href="Views/ImageResourceContentView.css">
</span><span class="lines">@@ -533,7 +532,6 @@
</span><span class="cx"> <script src="Views/HeapSnapshotDataGridTree.js"></script>
</span><span class="cx"> <script src="Views/HeapSnapshotInstanceDataGridNode.js"></script>
</span><span class="cx"> <script src="Views/HeapSnapshotInstanceFetchMoreDataGridNode.js"></script>
</span><del>- <script src="Views/HeapSnapshotSummaryContentView.js"></script>
</del><span class="cx"> <script src="Views/HierarchicalPathNavigationItem.js"></script>
</span><span class="cx"> <script src="Views/HoverMenu.js"></script>
</span><span class="cx"> <script src="Views/ImageResourceContentView.js"></script>
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsHeapSnapshotClusterContentViewjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotClusterContentView.js (200516 => 200517)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotClusterContentView.js        2016-05-06 19:54:15 UTC (rev 200516)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotClusterContentView.js        2016-05-06 19:54:32 UTC (rev 200517)
</span><span class="lines">@@ -41,17 +41,12 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> this._shownInitialContent = false;
</span><del>- this._summaryContentView = null;
</del><span class="cx"> this._instancesContentView = null;
</span><span class="cx"> this._objectGraphContentView = null;
</span><span class="cx">
</span><del>- this._summaryPathComponent = createPathComponent.call(this, WebInspector.UIString("Summary"), "heap-snapshot-summary-icon", WebInspector.HeapSnapshotClusterContentView.SummaryIdentifier);
</del><span class="cx"> this._instancesPathComponent = createPathComponent.call(this, WebInspector.UIString("Instances"), "heap-snapshot-instances-icon", WebInspector.HeapSnapshotClusterContentView.InstancesIdentifier);
</span><span class="cx"> this._objectGraphPathComponent = createPathComponent.call(this, WebInspector.UIString("Object Graph"), "heap-snapshot-object-graph-icon", WebInspector.HeapSnapshotClusterContentView.ObjectGraphIdentifier);
</span><span class="cx">
</span><del>- this._summaryPathComponent.nextSibling = this._instancesPathComponent;
- this._instancesPathComponent.previousSibling = this._summaryPathComponent;
-
</del><span class="cx"> if (this._supportsObjectGraph()) {
</span><span class="cx"> this._instancesPathComponent.nextSibling = this._objectGraphPathComponent;
</span><span class="cx"> this._objectGraphPathComponent.previousSibling = this._instancesPathComponent;
</span><span class="lines">@@ -111,13 +106,6 @@
</span><span class="cx">
</span><span class="cx"> get heapSnapshot() { return this._heapSnapshot; }
</span><span class="cx">
</span><del>- get summaryContentView()
- {
- if (!this._summaryContentView)
- this._summaryContentView = new WebInspector.HeapSnapshotSummaryContentView(this._heapSnapshot);
- return this._summaryContentView;
- }
-
</del><span class="cx"> get instancesContentView()
</span><span class="cx"> {
</span><span class="cx"> if (!this._instancesContentView)
</span><span class="lines">@@ -172,12 +160,6 @@
</span><span class="cx"> this._showContentViewForIdentifier(cookie[WebInspector.HeapSnapshotClusterContentView.ContentViewIdentifierCookieKey]);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- showSummary()
- {
- this._shownInitialContent = true;
- return this._showContentViewForIdentifier(WebInspector.HeapSnapshotClusterContentView.SummaryIdentifier);
- }
-
</del><span class="cx"> showInstances()
</span><span class="cx"> {
</span><span class="cx"> this._shownInitialContent = true;
</span><span class="lines">@@ -202,8 +184,6 @@
</span><span class="cx"> console.assert(contentView);
</span><span class="cx"> if (!contentView)
</span><span class="cx"> return null;
</span><del>- if (contentView === this._summaryContentView)
- return this._summaryPathComponent;
</del><span class="cx"> if (contentView === this._instancesContentView)
</span><span class="cx"> return this._instancesPathComponent;
</span><span class="cx"> if (contentView === this._objectGraphContentView)
</span><span class="lines">@@ -217,8 +197,6 @@
</span><span class="cx"> console.assert(contentView);
</span><span class="cx"> if (!contentView)
</span><span class="cx"> return null;
</span><del>- if (contentView === this._summaryContentView)
- return WebInspector.HeapSnapshotClusterContentView.SummaryIdentifier;
</del><span class="cx"> if (contentView === this._instancesContentView)
</span><span class="cx"> return WebInspector.HeapSnapshotClusterContentView.InstancesIdentifier;
</span><span class="cx"> if (contentView === this._objectGraphContentView)
</span><span class="lines">@@ -232,9 +210,6 @@
</span><span class="cx"> let contentViewToShow = null;
</span><span class="cx">
</span><span class="cx"> switch (identifier) {
</span><del>- case WebInspector.HeapSnapshotClusterContentView.SummaryIdentifier:
- contentViewToShow = this.summaryContentView;
- break;
</del><span class="cx"> case WebInspector.HeapSnapshotClusterContentView.InstancesIdentifier:
</span><span class="cx"> contentViewToShow = this.instancesContentView;
</span><span class="cx"> break;
</span><span class="lines">@@ -263,6 +238,5 @@
</span><span class="cx">
</span><span class="cx"> WebInspector.HeapSnapshotClusterContentView.ContentViewIdentifierCookieKey = "heap-snapshot-cluster-content-view-identifier";
</span><span class="cx">
</span><del>-WebInspector.HeapSnapshotClusterContentView.SummaryIdentifier = "summary";
</del><span class="cx"> WebInspector.HeapSnapshotClusterContentView.InstancesIdentifier = "instances";
</span><span class="cx"> WebInspector.HeapSnapshotClusterContentView.ObjectGraphIdentifier = "object-graph";
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsHeapSnapshotSummaryContentViewcss"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.css (200516 => 200517)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.css        2016-05-06 19:54:15 UTC (rev 200516)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.css        2016-05-06 19:54:32 UTC (rev 200517)
</span><span class="lines">@@ -1,174 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-.content-view-container > .content-view.heap-snapshot-summary {
- overflow: scroll;
-}
-
-.heap-snapshot-summary > .content {
- width: 470px;
- margin: 10px auto;
-}
-
-.heap-snapshot-summary > .content > .overview {
- padding: 10px;
- margin-bottom: 10px;
- border-bottom: 1px solid var(--border-color);
-}
-
-.heap-snapshot-summary > .content .subtitle {
- font-family: '-webkit-system-font';
- font-size: 14px;
-}
-
-.heap-snapshot-summary > .content > .overview {
- display: flex;
- justify-content: center;
-}
-
-.heap-snapshot-summary > .content > .overview > .chart {
- width: 420px;
- text-align: center;
-}
-
-.heap-snapshot-summary > .content > .overview > .chart > .subtitle {
- margin-bottom: 1em;
-}
-
-.heap-snapshot-summary > .content > .overview > .chart > .container {
- display: flex;
- justify-content: center;
-}
-
-.heap-snapshot-summary > .content > .overview .total-size,
-.heap-snapshot-summary > .content > .overview .total-count,
-.heap-snapshot-summary > .content > .overview .average-allocation-size {
- margin: auto;
- color: hsl(0, 0%, 70%);
-}
-
-.heap-snapshot-summary .legend {
- width: 120px;
- padding-left: 20px;
- text-align: left;
-}
-
-.heap-snapshot-summary .legend > .row {
- position: relative;
- height: 27px;
-}
-
-.heap-snapshot-summary .legend > .row > .swatch {
- position: absolute;
- top: 1px;
- left: 0;
- width: 1em;
- height: 1em;
-}
-
-.heap-snapshot-summary .legend > .row > p {
- margin: 0;
-}
-
-.heap-snapshot-summary .legend > .row > .label {
- position: absolute;
- top: 0;
- left: 20px;
-}
-
-.heap-snapshot-summary .legend > .row > .size {
- position: absolute;
- top: 12px;
- left: 20px;
- color: hsl(0, 0%, 70%);
-}
-
-.heap-snapshot-summary .legend > .row > .swatch.top-class-1,
-.heap-snapshot-summary .legend > .row > .swatch.small {
- border: 1px solid var(--memory-javascript-stroke-color);
- background: var(--memory-javascript-fill-color);
-}
-
-.heap-snapshot-summary .legend > .row > .swatch.top-class-2,
-.heap-snapshot-summary .legend > .row > .swatch.medium {
- border: 1px solid var(--memory-images-stroke-color);
- background: var(--memory-images-fill-color);
-}
-
-.heap-snapshot-summary .legend > .row > .swatch.top-class-3,
-.heap-snapshot-summary .legend > .row > .swatch.large {
- border: 1px solid var(--memory-layers-stroke-color);
- background: var(--memory-layers-fill-color);
-}
-
-.heap-snapshot-summary .legend > .row > .swatch.top-class-4,
-.heap-snapshot-summary .legend > .row > .swatch.very-large {
- border: 1px solid var(--memory-page-stroke-color);
- background: var(--memory-page-fill-color);
-}
-
-.heap-snapshot-summary .legend > .row > .swatch.top-class-5 {
- border: 1px solid var(--memory-extra-stroke-color);
- background: var(--memory-extra-fill-color);
-}
-
-.heap-snapshot-summary .legend > .row > .swatch.other {
- border: 1px solid var(--memory-max-comparison-stroke-color);
- background: var(--memory-max-comparison-fill-color);
-}
-
-.heap-snapshot-summary .circle-chart > svg > path.top-class-1,
-.heap-snapshot-summary .circle-chart > svg > path.small {
- stroke: var(--memory-javascript-stroke-color);
- fill: var(--memory-javascript-fill-color);
-}
-
-.heap-snapshot-summary .circle-chart > svg > path.top-class-2,
-.heap-snapshot-summary .circle-chart > svg > path.medium {
- stroke: var(--memory-images-stroke-color);
- fill: var(--memory-images-fill-color);
-}
-
-.heap-snapshot-summary .circle-chart > svg > path.top-class-3,
-.heap-snapshot-summary .circle-chart > svg > path.large {
- stroke: var(--memory-layers-stroke-color);
- fill: var(--memory-layers-fill-color);
-}
-
-.heap-snapshot-summary .circle-chart > svg > path.top-class-4,
-.heap-snapshot-summary .circle-chart > svg > path.very-large {
- stroke: var(--memory-page-stroke-color);
- fill: var(--memory-page-fill-color);
-}
-
-.heap-snapshot-summary .circle-chart > svg > path.top-class-5 {
- stroke: var(--memory-extra-stroke-color);
- fill: var(--memory-extra-fill-color);
-}
-
-.heap-snapshot-summary .circle-chart > svg > path.other {
- stroke: var(--memory-max-comparison-stroke-color);
- fill: var(--memory-max-comparison-fill-color);
-}
</del></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsHeapSnapshotSummaryContentViewjs"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.js (200516 => 200517)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.js        2016-05-06 19:54:15 UTC (rev 200516)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/HeapSnapshotSummaryContentView.js        2016-05-06 19:54:32 UTC (rev 200517)
</span><span class="lines">@@ -1,219 +0,0 @@
</span><del>-/*
- * Copyright (C) 2016 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-WebInspector.HeapSnapshotSummaryContentView = class HeapSnapshotSummaryContentView extends WebInspector.ContentView
-{
- constructor(heapSnapshot)
- {
- console.assert(heapSnapshot instanceof WebInspector.HeapSnapshotProxy || heapSnapshot instanceof WebInspector.HeapSnapshotDiffProxy);
-
- super(heapSnapshot);
-
- this._heapSnapshot = heapSnapshot;
-
- this.element.classList.add("heap-snapshot-summary");
-
- let contentElement = this.element.appendChild(document.createElement("div"));
- contentElement.classList.add("content");
-
- let overviewElement = contentElement.appendChild(document.createElement("div"));
- overviewElement.classList.add("overview");
-
- function createChartContainer(parentElement, subtitle, tooltip)
- {
- let chartElement = parentElement.appendChild(document.createElement("div"));
- chartElement.classList.add("chart");
-
- let chartSubtitleElement = chartElement.appendChild(document.createElement("div"));
- chartSubtitleElement.classList.add("subtitle");
- chartSubtitleElement.textContent = subtitle;
- chartSubtitleElement.title = tooltip;
-
- let chartFlexContainerElement = chartElement.appendChild(document.createElement("div"));
- chartFlexContainerElement.classList.add("container");
- return chartFlexContainerElement;
- }
-
- const circleChartConfig = {size: 120, innerRadiusRatio: 0.5};
-
- let classSizeBreakdownTooltip = WebInspector.UIString("Breakdown of total allocation size by class");
- let classSizeBreakdownChartContainerElement = createChartContainer(overviewElement, WebInspector.UIString("Class Size Breakdown"), classSizeBreakdownTooltip);
- this._classSizeBreakdownCircleChart = new WebInspector.CircleChart(circleChartConfig);
- classSizeBreakdownChartContainerElement.appendChild(this._classSizeBreakdownCircleChart.element);
- this._classSizeBreakdownLegendElement = classSizeBreakdownChartContainerElement.appendChild(document.createElement("div"));
- this._classSizeBreakdownLegendElement.classList.add("legend", "class-breakdown");
-
- let secondOverviewElement = contentElement.appendChild(document.createElement("div"));
- secondOverviewElement.classList.add("overview");
-
- let classCountBreakdownTooltip = WebInspector.UIString("Breakdown of object counts by class");
- let classCountBreakdownChartContainerElement = createChartContainer(secondOverviewElement, WebInspector.UIString("Class Count Breakdown"), classCountBreakdownTooltip);
- this._classCountBreakdownCircleChart = new WebInspector.CircleChart(circleChartConfig);
- classCountBreakdownChartContainerElement.appendChild(this._classCountBreakdownCircleChart.element);
- this._classCountBreakdownLegendElement = classCountBreakdownChartContainerElement.appendChild(document.createElement("div"));
- this._classCountBreakdownLegendElement.classList.add("legend", "count-breakdown");
-
- let thirdOverviewElement = contentElement.appendChild(document.createElement("div"));
- thirdOverviewElement.classList.add("overview");
-
- let allocationSizeBreakdownTooltip = WebInspector.UIString("Breakdown of allocations into size classes");
- let allocationSizeBreakdownChartContainerElement = createChartContainer(thirdOverviewElement, WebInspector.UIString("Allocation Size Breakdown"), allocationSizeBreakdownTooltip);
- this._allocationSizeBreakdownCircleChart = new WebInspector.CircleChart(circleChartConfig);
- allocationSizeBreakdownChartContainerElement.appendChild(this._allocationSizeBreakdownCircleChart.element);
- this._allocationSizeBreakdownLegendElement = allocationSizeBreakdownChartContainerElement.appendChild(document.createElement("div"));
- this._allocationSizeBreakdownLegendElement.classList.add("legend", "allocation-size-breakdown");
-
- function appendLegendRow(legendElement, swatchClass, label, subtitle, tooltip) {
- let rowElement = legendElement.appendChild(document.createElement("div"));
- rowElement.classList.add("row");
- let swatchElement = rowElement.appendChild(document.createElement("div"));
- swatchElement.classList.add("swatch", swatchClass);
- let labelElement = rowElement.appendChild(document.createElement("p"));
- labelElement.classList.add("label");
- labelElement.textContent = label;
- let sizeElement = rowElement.appendChild(document.createElement("p"));
- sizeElement.classList.add("size");
- sizeElement.textContent = subtitle;
- if (tooltip)
- rowElement.title = tooltip;
- }
-
- function appendEmptyMessage(legendElement, text) {
- let emptyElement = legendElement.appendChild(document.createElement("div"));
- emptyElement.classList.add("empty");
- emptyElement.textContent = text;
- }
-
- // Largest classes by size.
- let categoriesBySize = [...this._heapSnapshot.categories.values()].sort((a, b) => b.size - a.size);
- let categoriesBySizeLimit = Math.min(categoriesBySize.length, 5);
- if (categoriesBySizeLimit) {
- let topClassSizes = categoriesBySize.splice(0, categoriesBySizeLimit);
- let otherClassSize = categoriesBySize.reduce((sum, category) => sum += category.size, 0);
-
- let segments = [];
- let values = [];
-
- for (let i = 0; i < categoriesBySizeLimit; ++i) {
- let topClassSize = topClassSizes[i];
- let segmentName = "top-class-" + (i + 1);
- segments.push(segmentName);
- values.push(topClassSize.size);
- appendLegendRow.call(this, this._classSizeBreakdownLegendElement, segmentName, topClassSize.className, Number.bytesToString(topClassSize.size));
- }
-
- if (otherClassSize) {
- let otherSegmentName = "other";
- segments.push(otherSegmentName);
- values.push(otherClassSize);
- appendLegendRow.call(this, this._classSizeBreakdownLegendElement, otherSegmentName, WebInspector.UIString("Other"), Number.bytesToString(otherClassSize));
- }
-
- this._classSizeBreakdownCircleChart.segments = segments;
- this._classSizeBreakdownCircleChart.values = values;
- this._classSizeBreakdownCircleChart.updateLayout();
-
- let totalSizeElement = this._classSizeBreakdownCircleChart.centerElement.appendChild(document.createElement("div"));
- totalSizeElement.classList.add("total-size");
- totalSizeElement.appendChild(document.createElement("span")); // firstChild
- totalSizeElement.appendChild(document.createElement("br"));
- totalSizeElement.appendChild(document.createElement("span")); // lastChild
- let totalSize = Number.bytesToString(this._heapSnapshot.totalSize).split(/\s+/);
- totalSizeElement.firstChild.textContent = totalSize[0];
- totalSizeElement.lastChild.textContent = totalSize[1];
- totalSizeElement.title = WebInspector.UIString("Total size of heap");
- } else
- appendEmptyMessage.call(this, this._classSizeBreakdownLegendElement, WebInspector.UIString("No objects"));
-
- // Largest classes by count.
- let categoriesByCount = [...this._heapSnapshot.categories.values()].sort((a, b) => b.count - a.count);
- let categoriesByCountLimit = Math.min(categoriesByCount.length, 5);
- if (categoriesByCountLimit) {
- let topClassCounts = categoriesByCount.splice(0, categoriesByCountLimit);
- let otherClassCount = categoriesByCount.reduce((sum, category) => sum += category.count, 0);
-
- let segments = [];
- let values = [];
-
- for (let i = 0; i < categoriesByCountLimit; ++i) {
- let topClassCount = topClassCounts[i];
- let segmentName = "top-class-" + (i + 1);
- segments.push(segmentName);
- values.push(topClassCount.count);
- appendLegendRow.call(this, this._classCountBreakdownLegendElement, segmentName, topClassCount.className, topClassCount.count);
- }
-
- if (otherClassCount) {
- let otherSegmentName = "other";
- segments.push(otherSegmentName);
- values.push(otherClassCount);
- appendLegendRow.call(this, this._classCountBreakdownLegendElement, otherSegmentName, WebInspector.UIString("Other"), otherClassCount);
- }
-
- this._classCountBreakdownCircleChart.segments = segments;
- this._classCountBreakdownCircleChart.values = values;
- this._classCountBreakdownCircleChart.updateLayout();
-
- let totalCountElement = this._classCountBreakdownCircleChart.centerElement.appendChild(document.createElement("div"));
- totalCountElement.classList.add("total-count");
- totalCountElement.textContent = this._heapSnapshot.totalObjectCount;
- totalCountElement.title = WebInspector.UIString("Total object count");
- } else
- appendEmptyMessage.call(this, this._classCountBreakdownLegendElement, WebInspector.UIString("No objects"));
-
- // Allocation size groups.
- const smallAllocationSize = 48;
- const mediumAllocationSize = 128;
- const largeAllocationSize = 512;
-
- this._heapSnapshot.allocationBucketCounts([smallAllocationSize, mediumAllocationSize, largeAllocationSize], (results) => {
- let [small, medium, large, veryLarge] = results;
-
- if (small + medium + large + veryLarge) {
- appendLegendRow.call(this, this._allocationSizeBreakdownLegendElement, "small", WebInspector.UIString("Small %s").format(Number.bytesToString(smallAllocationSize)), small);
- appendLegendRow.call(this, this._allocationSizeBreakdownLegendElement, "medium", WebInspector.UIString("Medium %s").format(Number.bytesToString(mediumAllocationSize)), medium);
- appendLegendRow.call(this, this._allocationSizeBreakdownLegendElement, "large", WebInspector.UIString("Large %s").format(Number.bytesToString(largeAllocationSize)), large);
- appendLegendRow.call(this, this._allocationSizeBreakdownLegendElement, "very-large", WebInspector.UIString("Very Large"), veryLarge);
-
- this._allocationSizeBreakdownCircleChart.segments = ["small", "medium", "large", "very-large"];
- this._allocationSizeBreakdownCircleChart.values = [small, medium, large, veryLarge];
- this._allocationSizeBreakdownCircleChart.updateLayout();
-
- let averageAllocationSizeElement = this._allocationSizeBreakdownCircleChart.centerElement.appendChild(document.createElement("div"));
- averageAllocationSizeElement.classList.add("average-allocation-size");
- averageAllocationSizeElement.textContent = Number.bytesToString(this._heapSnapshot.totalSize / this._heapSnapshot.totalObjectCount);
- averageAllocationSizeElement.title = WebInspector.UIString("Average allocation size");
- } else
- appendEmptyMessage.call(this, this._allocationSizeBreakdownLegendElement, WebInspector.UIString("No objects"));
- });
- }
-
- // Protected
-
- layout()
- {
- // Nothing to change.
- }
-};
</del></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsVariablescss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css (200516 => 200517)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css        2016-05-06 19:54:15 UTC (rev 200516)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css        2016-05-06 19:54:32 UTC (rev 200517)
</span><span class="lines">@@ -67,8 +67,6 @@
</span><span class="cx"> --memory-page-stroke-color: hsl(22, 40%, 50%);
</span><span class="cx"> --memory-max-comparison-fill-color: hsl(220, 10%, 75%);
</span><span class="cx"> --memory-max-comparison-stroke-color: hsl(220, 10%, 55%);
</span><del>- --memory-extra-fill-color: hsl(211, 53%, 70%);
- --memory-extra-stroke-color: hsl(211, 53%, 55%);
</del><span class="cx">
</span><span class="cx"> --even-zebra-stripe-row-background-color: white;
</span><span class="cx"> --odd-zebra-stripe-row-background-color: hsl(0, 0%, 95%);
</span></span></pre>
</div>
</div>
</body>
</html>