| Index: chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
|
| diff --git a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
|
| index 70db8052e66274aeb2de514fc91b9d76a8b5569b..4e55761ec7bc5af8615bd63ebf769b95461dc9b9 100644
|
| --- a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
|
| +++ b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/PropertiesSidebarPane.js
|
| @@ -32,7 +32,7 @@ WebInspector.PropertiesSidebarPane = function()
|
| }
|
|
|
| WebInspector.PropertiesSidebarPane.prototype = {
|
| - update: function(object)
|
| + update: function(node)
|
| {
|
| var body = this.bodyElement;
|
|
|
| @@ -40,14 +40,24 @@ WebInspector.PropertiesSidebarPane.prototype = {
|
|
|
| this.sections = [];
|
|
|
| - if (!object)
|
| + if (!node)
|
| return;
|
|
|
| - for (var prototype = object; prototype; prototype = prototype.__proto__) {
|
| - var section = new WebInspector.ObjectPropertiesSection(prototype);
|
| - this.sections.push(section);
|
| - body.appendChild(section.element);
|
| - }
|
| + var self = this;
|
| + var callback = function(prototypes) {
|
| + var body = self.bodyElement;
|
| + body.removeChildren();
|
| + self.sections = [];
|
| +
|
| + // Get array of prototype user-friendly names.
|
| + for (var i = 0; i < prototypes.length; ++i) {
|
| + var prototype = new WebInspector.ObjectProxy(node.id, [], i);
|
| + var section = new WebInspector.ObjectPropertiesSection(prototype, prototypes[i], WebInspector.UIString("Prototype"));
|
| + self.sections.push(section);
|
| + body.appendChild(section.element);
|
| + }
|
| + };
|
| + InspectorController.getPrototypes(node.id, callback);
|
| }
|
| }
|
|
|
|
|