| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 return; | 418 return; |
| 419 } | 419 } |
| 420 } else { | 420 } else { |
| 421 if (obj.type === "function") { | 421 if (obj.type === "function") { |
| 422 WebInspector.ObjectPropertiesSection.formatObjectAsFunction(obj,
titleElement, false); | 422 WebInspector.ObjectPropertiesSection.formatObjectAsFunction(obj,
titleElement, false); |
| 423 titleElement.classList.add("object-value-function"); | 423 titleElement.classList.add("object-value-function"); |
| 424 } else { | 424 } else { |
| 425 titleElement.createTextChild(obj.description || ""); | 425 titleElement.createTextChild(obj.description || ""); |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 if (obj.subtype === "proxy") { | |
| 429 var warning = titleElement.createChild("span", "object-state-note"); | |
| 430 warning.classList.add("warning-note"); | |
| 431 warning.title = WebInspector.UIString("Expansion of the Proxy object
can lead to JavaScript execution."); | |
| 432 } | |
| 433 var note = titleElement.createChild("span", "object-state-note"); | 428 var note = titleElement.createChild("span", "object-state-note"); |
| 434 note.classList.add("info-note"); | 429 note.classList.add("info-note"); |
| 435 note.title = WebInspector.UIString("Object value at left was snapshotted
when logged, value below was evaluated just now."); | 430 note.title = WebInspector.UIString("Object value at left was snapshotted
when logged, value below was evaluated just now."); |
| 436 var section = new WebInspector.ObjectPropertiesSection(obj, titleElement
); | 431 var section = new WebInspector.ObjectPropertiesSection(obj, titleElement
); |
| 437 section.enableContextMenu(); | 432 section.enableContextMenu(); |
| 438 elem.appendChild(section.element); | 433 elem.appendChild(section.element); |
| 439 section.element.classList.add("console-view-object-properties-section"); | 434 section.element.classList.add("console-view-object-properties-section"); |
| 440 }, | 435 }, |
| 441 | 436 |
| 442 /** | 437 /** |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 { | 1339 { |
| 1345 if (!this._wrapperElement) { | 1340 if (!this._wrapperElement) { |
| 1346 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); | 1341 WebInspector.ConsoleViewMessage.prototype.toMessageElement.call(this
); |
| 1347 this._wrapperElement.classList.toggle("collapsed", this._collapsed); | 1342 this._wrapperElement.classList.toggle("collapsed", this._collapsed); |
| 1348 } | 1343 } |
| 1349 return this._wrapperElement; | 1344 return this._wrapperElement; |
| 1350 }, | 1345 }, |
| 1351 | 1346 |
| 1352 __proto__: WebInspector.ConsoleViewMessage.prototype | 1347 __proto__: WebInspector.ConsoleViewMessage.prototype |
| 1353 } | 1348 } |
| OLD | NEW |