<!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>[181723] 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/181723">181723</a></dd>
<dt>Author</dt> <dd>joepeck@webkit.org</dd>
<dt>Date</dt> <dd>2015-03-18 20:26:58 -0700 (Wed, 18 Mar 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Web Inspector: Replace last use of ObjectPropertiesSection with ObjectTreeView
https://bugs.webkit.org/show_bug.cgi?id=142834

Reviewed by Timothy Hatcher.

* UserInterface/Views/DOMNodeDetailsSidebarPanel.js:
(WebInspector.DOMNodeDetailsSidebarPanel.prototype._refreshProperties):
Use properties only ObjectTreeView instead of ObjectPropertiesSection.
This doesn't fix the functionality issues, but fixes the appearance.

* UserInterface/Views/DetailsSection.css:
(.details-section &gt; .content &gt; .group:first-child &gt; .row.simple:first-child &gt; *): Deleted.
(body.mac-platform.legacy .details-section &gt; .content &gt; .group:first-child &gt; .row.simple:first-child &gt; *): Deleted.
(.details-section &gt; .content &gt; .group &gt; .row.properties:not(.empty)): Deleted.
(body.mac-platform.legacy .details-section &gt; .content &gt; .group &gt; .row.properties:not(.empty)): Deleted.
Re-add back the small padding at the top of sections. This actually
broke padding in a few sections (Event Listeners) at the expense
of eliminating a few pixels of whitespace at the top of other sections.
We should focus on addressing the extra whitespace separately.

* UserInterface/Main.html:
* UserInterface/Views/ObjectPropertiesSection.js: Removed.
* UserInterface/Views/TypePropertiesSection.js:
* WebInspectorUI.vcxproj/WebInspectorUI.vcxproj:
* WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters:
Remove new unused class.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIChangeLog">trunk/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceMainhtml">trunk/Source/WebInspectorUI/UserInterface/Main.html</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsDOMNodeDetailsSidebarPaneljs">trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsDetailsSectioncss">trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSection.css</a></li>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsTypePropertiesSectionjs">trunk/Source/WebInspectorUI/UserInterface/Views/TypePropertiesSection.js</a></li>
<li><a href="#trunkSourceWebInspectorUIWebInspectorUIvcxprojWebInspectorUIvcxproj">trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj</a></li>
<li><a href="#trunkSourceWebInspectorUIWebInspectorUIvcxprojWebInspectorUIvcxprojfilters">trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebInspectorUIUserInterfaceViewsObjectPropertiesSectionjs">trunk/Source/WebInspectorUI/UserInterface/Views/ObjectPropertiesSection.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/ChangeLog (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/ChangeLog        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/ChangeLog        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -1,5 +1,34 @@
</span><span class="cx"> 2015-03-18  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Web Inspector: Replace last use of ObjectPropertiesSection with ObjectTreeView
+        https://bugs.webkit.org/show_bug.cgi?id=142834
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/DOMNodeDetailsSidebarPanel.js:
+        (WebInspector.DOMNodeDetailsSidebarPanel.prototype._refreshProperties):
+        Use properties only ObjectTreeView instead of ObjectPropertiesSection.
+        This doesn't fix the functionality issues, but fixes the appearance.
+
+        * UserInterface/Views/DetailsSection.css:
+        (.details-section &gt; .content &gt; .group:first-child &gt; .row.simple:first-child &gt; *): Deleted.
+        (body.mac-platform.legacy .details-section &gt; .content &gt; .group:first-child &gt; .row.simple:first-child &gt; *): Deleted.
+        (.details-section &gt; .content &gt; .group &gt; .row.properties:not(.empty)): Deleted.
+        (body.mac-platform.legacy .details-section &gt; .content &gt; .group &gt; .row.properties:not(.empty)): Deleted.
+        Re-add back the small padding at the top of sections. This actually
+        broke padding in a few sections (Event Listeners) at the expense
+        of eliminating a few pixels of whitespace at the top of other sections.
+        We should focus on addressing the extra whitespace separately.
+
+        * UserInterface/Main.html:
+        * UserInterface/Views/ObjectPropertiesSection.js: Removed.
+        * UserInterface/Views/TypePropertiesSection.js:
+        * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj:
+        * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters:
+        Remove new unused class.
+
+2015-03-18  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
+
</ins><span class="cx">         Web Inspector: Debugger Popovers and Probes should use FormattedValue/ObjectTreeView instead of Custom/ObjectPropertiesSection
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=142830
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceMainhtml"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Main.html (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Main.html        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/UserInterface/Main.html        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -427,7 +427,6 @@
</span><span class="cx">     &lt;script src=&quot;Views/NetworkTimelineOverviewGraph.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/NetworkTimelineView.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/ObjectPreviewView.js&quot;&gt;&lt;/script&gt;
</span><del>-    &lt;script src=&quot;Views/ObjectPropertiesSection.js&quot;&gt;&lt;/script&gt;
</del><span class="cx">     &lt;script src=&quot;Views/ObjectTreeArrayIndexTreeElement.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/ObjectTreeMapEntryTreeElement.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;Views/ObjectTreePropertyTreeElement.js&quot;&gt;&lt;/script&gt;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsDOMNodeDetailsSidebarPaneljs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DOMNodeDetailsSidebarPanel.js        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -203,10 +203,13 @@
</span><span class="cx">                 else if (title === &quot;Object&quot;)
</span><span class="cx">                     title = title + WebInspector.UIString(&quot; (Prototype)&quot;);
</span><span class="cx"> 
</span><del>-                var propertiesSection = new WebInspector.ObjectPropertiesSection(prototype);
</del><ins>+                // FIXME: &lt;https://webkit.org/b/142833&gt; Web Inspector: Node Details Sidebar Properties Section has &quot;undefined&quot; for all prototype properties
</ins><span class="cx"> 
</span><ins>+                var objectTree = new WebInspector.ObjectTreeView(prototype, WebInspector.ObjectTreeView.Mode.Properties);
+                objectTree.showOnlyProperties();
+
</ins><span class="cx">                 var detailsSection = new WebInspector.DetailsSection(prototype.description.hash + &quot;-prototype-properties&quot;, title, null, null, true);
</span><del>-                detailsSection.groups[0].rows = [new WebInspector.DetailsSectionPropertiesRow(propertiesSection)];
</del><ins>+                detailsSection.groups[0].rows = [new WebInspector.DetailsSectionPropertiesRow(objectTree)];
</ins><span class="cx"> 
</span><span class="cx">                 element.appendChild(detailsSection.element);
</span><span class="cx">             }
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsDetailsSectioncss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSection.css (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSection.css        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/DetailsSection.css        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -257,14 +257,6 @@
</span><span class="cx">     padding: 5px 4px 2px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.details-section &gt; .content &gt; .group:first-child &gt; .row.simple:first-child &gt; * {
-    padding: 0px 4px 2px 4px;
-}
-
-body.mac-platform.legacy .details-section &gt; .content &gt; .group:first-child &gt; .row.simple:first-child &gt; * {
-    padding: 5px 4px 2px;
-}
-
</del><span class="cx"> .details-section &gt; .content &gt; .group &gt; .row.simple &gt; .label {
</span><span class="cx">     color: rgb(51, 51, 51);
</span><span class="cx"> 
</span><span class="lines">@@ -309,10 +301,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .details-section &gt; .content &gt; .group &gt; .row.properties:not(.empty) {
</span><del>-    padding: 0 4px 6px 4px;
-}
-
-body.mac-platform.legacy .details-section &gt; .content &gt; .group &gt; .row.properties:not(.empty) {
</del><span class="cx">     padding: 4px 6px;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsObjectPropertiesSectionjs"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebInspectorUI/UserInterface/Views/ObjectPropertiesSection.js (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/ObjectPropertiesSection.js        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ObjectPropertiesSection.js        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -1,543 +0,0 @@
</span><del>-/*
- * Copyright (C) 2013 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.ObjectPropertiesSection = function(object, title, subtitle, emptyPlaceholder, getAllProperties, extraProperties, treeElementConstructor)
-{
-    this.emptyPlaceholder = (emptyPlaceholder || WebInspector.UIString(&quot;No Properties&quot;));
-    this.object = object;
-    this.getAllProperties = getAllProperties;
-    this.extraProperties = extraProperties;
-    this.treeElementConstructor = treeElementConstructor || WebInspector.ObjectPropertyTreeElement;
-    this.editable = true;
-
-    WebInspector.PropertiesSection.call(this, title, subtitle);
-};
-
-WebInspector.ObjectPropertiesSection.prototype = {
-    onpopulate: function()
-    {
-        this.update();
-    },
-
-    update: function()
-    {
-        function callback(properties)
-        {
-            if (!properties)
-                return;
-
-            this.updateProperties(properties);
-        }
-
-        if (this.getAllProperties)
-            this.object.deprecatedGetAllProperties(callback.bind(this));
-        else
-            this.object.deprecatedGetDisplayableProperties(callback.bind(this));
-    },
-
-    updateProperties: function(properties, rootTreeElementConstructor, rootPropertyComparer)
-    {
-        if (!rootTreeElementConstructor)
-            rootTreeElementConstructor = this.treeElementConstructor;
-
-        if (!rootPropertyComparer)
-            rootPropertyComparer = WebInspector.ObjectPropertiesSection.CompareProperties;
-
-        if (this.extraProperties)
-            for (var i = 0; i &lt; this.extraProperties.length; ++i)
-                properties.push(this.extraProperties[i]);
-
-        properties.sort(rootPropertyComparer);
-
-        this.propertiesTreeOutline.removeChildren();
-
-        for (var i = 0; i &lt; properties.length; ++i) {
-            properties[i].parentObject = this.object;
-            this.propertiesTreeOutline.appendChild(new rootTreeElementConstructor(properties[i]));
-        }
-
-        if (!this.propertiesTreeOutline.children.length) {
-            var title = document.createElement(&quot;div&quot;);
-            title.className = &quot;info&quot;;
-            title.textContent = this.emptyPlaceholder;
-            var infoElement = new TreeElement(title, null, false);
-            this.propertiesTreeOutline.appendChild(infoElement);
-        }
-        this.propertiesForTest = properties;
-
-        if (this.object.isCollectionType())
-            this.propertiesTreeOutline.appendChild(new WebInspector.CollectionEntriesMainTreeElement(this.object));
-
-        this.dispatchEventToListeners(WebInspector.Section.Event.VisibleContentDidChange);
-    }
-};
-
-WebInspector.ObjectPropertiesSection.prototype.__proto__ = WebInspector.PropertiesSection.prototype;
-
-WebInspector.ObjectPropertiesSection.CompareProperties = function(propertyA, propertyB)
-{
-    var a = propertyA.name;
-    var b = propertyB.name;
-    if (a === &quot;__proto__&quot;)
-        return 1;
-    if (b === &quot;__proto__&quot;)
-        return -1;
-
-    // if used elsewhere make sure to
-    //  - convert a and b to strings (not needed here, properties are all strings)
-    //  - check if a == b (not needed here, no two properties can be the same)
-
-    var diff = 0;
-    var chunk = /^\d+|^\D+/;
-    var chunka, chunkb, anum, bnum;
-    while (diff === 0) {
-        if (!a &amp;&amp; b)
-            return -1;
-        if (!b &amp;&amp; a)
-            return 1;
-        chunka = a.match(chunk)[0];
-        chunkb = b.match(chunk)[0];
-        anum = !isNaN(chunka);
-        bnum = !isNaN(chunkb);
-        if (anum &amp;&amp; !bnum)
-            return -1;
-        if (bnum &amp;&amp; !anum)
-            return 1;
-        if (anum &amp;&amp; bnum) {
-            diff = chunka - chunkb;
-            if (diff === 0 &amp;&amp; chunka.length !== chunkb.length) {
-                if (!+chunka &amp;&amp; !+chunkb) // chunks are strings of all 0s (special case)
-                    return chunka.length - chunkb.length;
-                else
-                    return chunkb.length - chunka.length;
-            }
-        } else if (chunka !== chunkb)
-            return (chunka &lt; chunkb) ? -1 : 1;
-        a = a.substring(chunka.length);
-        b = b.substring(chunkb.length);
-    }
-    return diff;
-};
-
-WebInspector.ObjectPropertyTreeElement = function(property)
-{
-    this.property = property;
-
-    // Pass an empty title, the title gets made later in onattach.
-    TreeElement.call(this, &quot;&quot;, null, false);
-    this.toggleOnClick = true;
-    this.selectable = false;
-};
-
-WebInspector.ObjectPropertyTreeElement.prototype = {
-    onpopulate: function()
-    {
-        if (this.children.length &amp;&amp; !this.shouldRefreshChildren)
-            return;
-
-        function callback(properties) {
-            this.removeChildren();
-            if (!properties)
-                return;
-
-            properties.sort(WebInspector.ObjectPropertiesSection.CompareProperties);
-            for (var i = 0; i &lt; properties.length; ++i)
-                this.appendChild(new this.treeOutline.section.treeElementConstructor(properties[i]));
-
-            if (this.property.value.isCollectionType())
-                this.appendChild(new WebInspector.CollectionEntriesMainTreeElement(this.property.value));
-        };
-
-        if (this.property.name === &quot;__proto__&quot;)
-            this.property.value.deprecatedGetOwnProperties(callback.bind(this));
-        else
-            this.property.value.deprecatedGetDisplayableProperties(callback.bind(this));
-    },
-
-    ondblclick: function(event)
-    {
-        if (this.property.writable)
-            this.startEditing();
-    },
-
-    onattach: function()
-    {
-        this.update();
-    },
-
-    update: function()
-    {
-        this.nameElement = document.createElement(&quot;span&quot;);
-        this.nameElement.className = &quot;name&quot;;
-        this.nameElement.textContent = this.property.name;
-        if (!this.property.enumerable &amp;&amp; (!this.parent.root || !this.treeOutline.section.dontHighlightNonEnumerablePropertiesAtTopLevel))
-            this.nameElement.classList.add(&quot;dimmed&quot;);
-
-        var separatorElement = document.createElement(&quot;span&quot;);
-        separatorElement.className = &quot;separator&quot;;
-        separatorElement.textContent = &quot;: &quot;;
-
-        this.valueElement = document.createElement(&quot;span&quot;);
-        this.valueElement.className = &quot;value&quot;;
-
-        var description = this.property.value.description;
-        // Render \n as a nice unicode cr symbol.
-        if (this.property.wasThrown)
-            this.valueElement.textContent = &quot;[Exception: &quot; + description + &quot;]&quot;;
-        else if (this.property.value.type === &quot;string&quot; &amp;&amp; typeof description === &quot;string&quot;) {
-            this.valueElement.textContent = &quot;\&quot;&quot; + description.replace(/\n/g, &quot;\u21B5&quot;).replace(/&quot;/g, &quot;\\\&quot;&quot;) + &quot;\&quot;&quot;;
-            this.valueElement._originalTextContent = &quot;\&quot;&quot; + description + &quot;\&quot;&quot;;
-        } else if (this.property.value.type === &quot;function&quot; &amp;&amp; typeof description === &quot;string&quot;) {
-            this.valueElement.textContent = /.*/.exec(description)[0].replace(/ +$/g, &quot;&quot;);
-            this.valueElement._originalTextContent = description;
-        } else
-            this.valueElement.textContent = description;
-
-        if (this.property.value.type === &quot;function&quot;)
-            this.valueElement.addEventListener(&quot;contextmenu&quot;, this._functionContextMenuEventFired.bind(this), false);
-
-        if (this.property.wasThrown)
-            this.valueElement.classList.add(&quot;error&quot;);
-        if (this.property.value.subtype)
-            this.valueElement.classList.add(&quot;formatted-&quot; + this.property.value.subtype);
-        else if (this.property.value.type)
-            this.valueElement.classList.add(&quot;formatted-&quot; + this.property.value.type);
-        if (this.property.value.subtype === &quot;node&quot;)
-            this.valueElement.addEventListener(&quot;contextmenu&quot;, this._contextMenuEventFired.bind(this), false);
-
-        this.listItemElement.removeChildren();
-
-        this.listItemElement.appendChild(this.nameElement);
-        this.listItemElement.appendChild(separatorElement);
-        this.listItemElement.appendChild(this.valueElement);
-        this.hasChildren = this.property.value.hasChildren &amp;&amp; !this.property.wasThrown;
-    },
-
-    _contextMenuEventFired: function(event)
-    {
-        function selectNode(nodeId)
-        {
-            if (nodeId)
-                WebInspector.domTreeManager.inspectElement(nodeId);
-        }
-
-        function revealElement()
-        {
-            this.property.value.pushNodeToFrontend(selectNode);
-        }
-
-        var contextMenu = new WebInspector.ContextMenu(event);
-        contextMenu.appendItem(WebInspector.UIString(&quot;Reveal in DOM Tree&quot;), revealElement.bind(this));
-        contextMenu.show();
-    },
-
-    _functionContextMenuEventFired: function(event)
-    {
-        function didGetLocation(error, response)
-        {
-            if (error)
-                return;
-
-            var location = response.location;
-            var sourceCode = WebInspector.debuggerManager.scriptForIdentifier(location.scriptId);
-            if (!sourceCode)
-                return;
-
-            var sourceCodeLocation = sourceCode.createSourceCodeLocation(location.lineNumber, location.columnNumber || 0);
-            WebInspector.resourceSidebarPanel.showSourceCodeLocation(sourceCodeLocation);
-        }
-
-        function revealFunction()
-        {
-            DebuggerAgent.getFunctionDetails(this.property.value.objectId, didGetLocation);
-        }
-
-        var contextMenu = new WebInspector.ContextMenu(event);
-        contextMenu.appendItem(WebInspector.UIString(&quot;Jump to Definition&quot;), revealFunction.bind(this));
-        contextMenu.show();
-    },
-
-    updateSiblings: function()
-    {
-        if (this.parent.root)
-            this.treeOutline.section.update();
-        else
-            this.parent.shouldRefreshChildren = true;
-    },
-
-    startEditing: function()
-    {
-        if (WebInspector.isBeingEdited(this.valueElement) || !this.treeOutline.section.editable)
-            return;
-
-        var context = { expanded: this.expanded };
-
-        // Lie about our children to prevent expanding on double click and to collapse subproperties.
-        this.hasChildren = false;
-
-        this.listItemElement.classList.add(&quot;editing-sub-part&quot;);
-
-        // Edit original source.
-        if (typeof this.valueElement._originalTextContent === &quot;string&quot;)
-            this.valueElement.textContent = this.valueElement._originalTextContent;
-
-        var config = new WebInspector.EditingConfig(this.editingCommitted.bind(this), this.editingCancelled.bind(this), context);
-        WebInspector.startEditing(this.valueElement, config);
-    },
-
-    editingEnded: function(context)
-    {
-        this.listItemElement.scrollLeft = 0;
-        this.listItemElement.classList.remove(&quot;editing-sub-part&quot;);
-        if (context.expanded)
-            this.expand();
-    },
-
-    editingCancelled: function(element, context)
-    {
-        this.update();
-        this.editingEnded(context);
-    },
-
-    editingCommitted: function(element, userInput, previousContent, context)
-    {
-        if (userInput === previousContent)
-            return this.editingCancelled(element, context); // nothing changed, so cancel
-
-        this.applyExpression(userInput, true);
-
-        this.editingEnded(context);
-    },
-
-    applyExpression: function(expression, updateInterface)
-    {
-        expression = expression.trim();
-        var expressionLength = expression.length;
-        function callback(error)
-        {
-            if (!updateInterface)
-                return;
-
-            if (error)
-                this.update();
-
-            if (!expressionLength) {
-                // The property was deleted, so remove this tree element.
-                this.parent.removeChild(this);
-            } else {
-                // Call updateSiblings since their value might be based on the value that just changed.
-                this.updateSiblings();
-            }
-        }
-        this.property.parentObject.setPropertyValue(this.property.name, expression.trim(), callback.bind(this));
-    }
-};
-
-WebInspector.ObjectPropertyTreeElement.prototype.__proto__ = TreeElement.prototype;
-
-WebInspector.CollectionEntriesMainTreeElement = function(remoteObject)
-{
-    TreeElement.call(this, &quot;&lt;entries&gt;&quot;, null, false);
-
-    console.assert(remoteObject);
-
-    this._remoteObject = remoteObject;
-    this._requestingEntries = false;
-    this._trackingEntries = false;
-
-    this.toggleOnClick = true;
-    this.selectable = false;
-    this.hasChildren = true;
-    this.expand();
-
-    // FIXME: When a parent TreeElement is collapsed, we do not get a chance
-    // to releaseWeakCollectionEntries. We should.
-}
-
-WebInspector.CollectionEntriesMainTreeElement.prototype = {
-    constructor: WebInspector.CollectionEntriesMainTreeElement,
-    __proto__: TreeElement.prototype,
-
-    onexpand: function()
-    {
-        if (this.children.length &amp;&amp; !this.shouldRefreshChildren)
-            return;
-
-        if (this._requestingEntries)
-            return;
-
-        this._requestingEntries = true;
-
-        function callback(entries) {
-            this._requestingEntries = false;
-
-            this.removeChildren();
-
-            if (!entries || !entries.length) {
-                this.appendChild(new WebInspector.EmptyCollectionTreeElement);
-                return;
-            }
-
-            this._trackWeakEntries();
-
-            for (var i = 0; i &lt; entries.length; ++i) {
-                var entry = entries[i];
-                if (entry.key)
-                    this.appendChild(new WebInspector.CollectionEntryTreeElement(entry, i));
-                else {
-                    this.appendChild(new WebInspector.ObjectPropertyTreeElement({
-                        name: &quot;&quot; + i,
-                        value: entry.value,
-                        enumerable: true,
-                        writable: false,
-                    }));
-                }
-            }
-        }
-        
-        this._remoteObject.getCollectionEntries(0, 100, callback.bind(this));
-    },
-
-    oncollapse: function()
-    {
-        this._untrackWeakEntries();
-    },
-
-    ondetach: function()
-    {
-        this._untrackWeakEntries();
-    },
-
-    // Private.
-
-    _trackWeakEntries: function()
-    {
-        if (!this._remoteObject.isWeakCollection())
-            return;
-
-        if (this._trackingEntries)
-            return;
-
-        this._trackingEntries = true;
-
-        WebInspector.logManager.addEventListener(WebInspector.LogManager.Event.Cleared, this._untrackWeakEntries, this);
-        WebInspector.logManager.addEventListener(WebInspector.LogManager.Event.ActiveLogCleared, this._untrackWeakEntries, this);
-        WebInspector.logManager.addEventListener(WebInspector.LogManager.Event.SessionStarted, this._untrackWeakEntries, this);
-    },
-
-    _untrackWeakEntries: function()
-    {
-        if (!this._remoteObject.isWeakCollection())
-            return;
-
-        if (!this._trackingEntries)
-            return;
-
-        this._trackingEntries = false;
-
-        this._remoteObject.releaseWeakCollectionEntries();
-
-        WebInspector.logManager.removeEventListener(WebInspector.LogManager.Event.Cleared, this._untrackWeakEntries, this);
-        WebInspector.logManager.removeEventListener(WebInspector.LogManager.Event.ActiveLogCleared, this._untrackWeakEntries, this);
-        WebInspector.logManager.removeEventListener(WebInspector.LogManager.Event.SessionStarted, this._untrackWeakEntries, this);
-
-        this.removeChildren();
-
-        if (this.expanded)
-            this.collapse();
-    },
-}
-
-WebInspector.CollectionEntryTreeElement = function(entry, index)
-{
-    TreeElement.call(this, &quot;&quot;, null, false);
-
-    console.assert(entry);
-
-    this._name = &quot;&quot; + index;
-    this._key = entry.key;
-    this._value = entry.value;
-
-    this.toggleOnClick = true;
-    this.selectable = false;
-    this.hasChildren = true;
-}
-
-WebInspector.CollectionEntryTreeElement.prototype = {
-    constructor: WebInspector.CollectionEntryTreeElement,
-    __proto__: TreeElement.prototype,
-
-    onpopulate: function()
-    {
-        if (this.children.length &amp;&amp; !this.shouldRefreshChildren)
-            return;
-
-        this.appendChild(new WebInspector.ObjectPropertyTreeElement({
-            name: &quot;key&quot;,
-            value: this._key,
-            enumerable: true,
-            writable: false,
-        }));
-
-        this.appendChild(new WebInspector.ObjectPropertyTreeElement({
-            name: &quot;value&quot;,
-            value: this._value,
-            enumerable: true,
-            writable: false,
-        }));
-    },
-
-    onattach: function()
-    {
-        var nameElement = document.createElement(&quot;span&quot;);
-        nameElement.className = &quot;name&quot;;
-        nameElement.textContent = &quot;&quot; + this._name;
-
-        var separatorElement = document.createElement(&quot;span&quot;);
-        separatorElement.className = &quot;separator&quot;;
-        separatorElement.textContent = &quot;: &quot;;
-
-        var valueElement = document.createElement(&quot;span&quot;);
-        valueElement.className = &quot;value&quot;;
-        valueElement.textContent = &quot;{&quot; + this._key.description + &quot; =&gt; &quot; + this._value.description + &quot;}&quot;;
-
-        this.listItemElement.removeChildren();
-        this.listItemElement.appendChild(nameElement);
-        this.listItemElement.appendChild(separatorElement);
-        this.listItemElement.appendChild(valueElement);
-    }
-}
-
-WebInspector.EmptyCollectionTreeElement = function()
-{
-    TreeElement.call(this, WebInspector.UIString(&quot;Empty Collection&quot;), null, false);
-
-    this.selectable = false;
-}
-
-WebInspector.EmptyCollectionTreeElement.prototype = {
-    constructor: WebInspector.EmptyCollectionTreeElement,
-    __proto__: TreeElement.prototype
-}
</del></span></pre></div>
<a id="trunkSourceWebInspectorUIUserInterfaceViewsTypePropertiesSectionjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/UserInterface/Views/TypePropertiesSection.js (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/UserInterface/Views/TypePropertiesSection.js        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/TypePropertiesSection.js        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx">     }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-// This is mostly identical to ObjectPropertiesSection.compareProperties.
</del><ins>+// This is mostly identical to ObjectTreeView.compareProperties.
</ins><span class="cx"> // But this checks for equality because we can have two objects named the same thing.
</span><span class="cx"> WebInspector.TypePropertiesSection.PropertyComparator = function(propertyA, propertyB)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIWebInspectorUIvcxprojWebInspectorUIvcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -716,7 +716,6 @@
</span><span class="cx">     &lt;None Include=&quot;..\UserInterface\NetworkObserver.js&quot; /&gt;
</span><span class="cx">     &lt;None Include=&quot;..\UserInterface\NetworkTimeline.css&quot; /&gt;
</span><span class="cx">     &lt;None Include=&quot;..\UserInterface\Object.js&quot; /&gt;
</span><del>-    &lt;None Include=&quot;..\UserInterface\ObjectPropertiesSection.js&quot; /&gt;
</del><span class="cx">     &lt;None Include=&quot;..\UserInterface\PageObserver.js&quot; /&gt;
</span><span class="cx">     &lt;None Include=&quot;..\UserInterface\PathComponentIcons.css&quot; /&gt;
</span><span class="cx">     &lt;None Include=&quot;..\UserInterface\Popover.css&quot; /&gt;
</span></span></pre></div>
<a id="trunkSourceWebInspectorUIWebInspectorUIvcxprojWebInspectorUIvcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters (181722 => 181723)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters        2015-03-19 03:26:55 UTC (rev 181722)
+++ trunk/Source/WebInspectorUI/WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters        2015-03-19 03:26:58 UTC (rev 181723)
</span><span class="lines">@@ -720,9 +720,6 @@
</span><span class="cx">     &lt;None Include=&quot;..\UserInterface\Object.js&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;UserInterface&lt;/Filter&gt;
</span><span class="cx">     &lt;/None&gt;
</span><del>-    &lt;None Include=&quot;..\UserInterface\ObjectPropertiesSection.js&quot;&gt;
-      &lt;Filter&gt;UserInterface&lt;/Filter&gt;
-    &lt;/None&gt;
</del><span class="cx">     &lt;None Include=&quot;..\UserInterface\PageObserver.js&quot;&gt;
</span><span class="cx">       &lt;Filter&gt;UserInterface&lt;/Filter&gt;
</span><span class="cx">     &lt;/None&gt;
</span></span></pre>
</div>
</div>

</body>
</html>