OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 this.toggleOnClick = true; | 206 this.toggleOnClick = true; |
207 this.selectable = false; | 207 this.selectable = false; |
208 } | 208 } |
209 | 209 |
210 WebInspector.ObjectPropertyTreeElement.prototype = { | 210 WebInspector.ObjectPropertyTreeElement.prototype = { |
211 onpopulate: function() | 211 onpopulate: function() |
212 { | 212 { |
213 var propertyValue = /** @type {!WebInspector.RemoteObject} */ (this.prop
erty.value); | 213 var propertyValue = /** @type {!WebInspector.RemoteObject} */ (this.prop
erty.value); |
214 console.assert(propertyValue); | 214 console.assert(propertyValue); |
215 var skipProto = this.treeOutline ? this.treeOutline._skipProto : true; | 215 var skipProto = this.treeOutline ? this.treeOutline._skipProto : true; |
216 var targetValue = this.property.name !== '__proto__' ? propertyValue : t
his.property.parentObject; | 216 var targetValue = this.property.name !== "__proto__" ? propertyValue : t
his.property.parentObject; |
217 WebInspector.ObjectPropertyTreeElement._populate(this, propertyValue, sk
ipProto, undefined, undefined, undefined, targetValue); | 217 WebInspector.ObjectPropertyTreeElement._populate(this, propertyValue, sk
ipProto, undefined, undefined, undefined, targetValue); |
218 }, | 218 }, |
219 | 219 |
220 /** | 220 /** |
221 * @override | 221 * @override |
222 * @return {boolean} | 222 * @return {boolean} |
223 */ | 223 */ |
224 ondblclick: function(event) | 224 ondblclick: function(event) |
225 { | 225 { |
226 var editableElement = this.valueElement; | 226 var editableElement = this.valueElement; |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1330 | 1330 |
1331 result = currentName + (result ? "." + result : ""); | 1331 result = currentName + (result ? "." + result : ""); |
1332 current = current.parent; | 1332 current = current.parent; |
1333 } | 1333 } |
1334 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie
sSectionExpandController._treeOutlineId]; | 1334 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie
sSectionExpandController._treeOutlineId]; |
1335 result = treeOutlineId + (result ? ":" + result : ""); | 1335 result = treeOutlineId + (result ? ":" + result : ""); |
1336 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached
PathSymbol] = result; | 1336 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached
PathSymbol] = result; |
1337 return result; | 1337 return result; |
1338 } | 1338 } |
1339 } | 1339 } |
OLD | NEW |