| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 if (wasThrown) { | 133 if (wasThrown) { |
| 134 this.hidePopover(); | 134 this.hidePopover(); |
| 135 return; | 135 return; |
| 136 } | 136 } |
| 137 this._objectTarget = result.target(); | 137 this._objectTarget = result.target(); |
| 138 var anchorElement = anchorOverride || element; | 138 var anchorElement = anchorOverride || element; |
| 139 var description = result.description.trimEnd(WebInspector.ObjectPopo
verHelper.MaxPopoverTextLength); | 139 var description = result.description.trimEnd(WebInspector.ObjectPopo
verHelper.MaxPopoverTextLength); |
| 140 var popoverContentElement = null; | 140 var popoverContentElement = null; |
| 141 if (result.type !== "object") { | 141 if (result.type !== "object") { |
| 142 popoverContentElement = createElement("span"); | 142 popoverContentElement = createElement("span"); |
| 143 popoverContentElement.appendChild(WebInspector.View.createStyleE
lement("components/objectValue.css")); | 143 popoverContentElement.appendChild(WebInspector.Widget.createStyl
eElement("components/objectValue.css")); |
| 144 var valueElement = popoverContentElement.createChild("span", "mo
nospace object-value-" + result.type); | 144 var valueElement = popoverContentElement.createChild("span", "mo
nospace object-value-" + result.type); |
| 145 valueElement.style.whiteSpace = "pre"; | 145 valueElement.style.whiteSpace = "pre"; |
| 146 | 146 |
| 147 if (result.type === "string") | 147 if (result.type === "string") |
| 148 valueElement.createTextChildren("\"", description, "\""); | 148 valueElement.createTextChildren("\"", description, "\""); |
| 149 else if (result.type === "function") | 149 else if (result.type === "function") |
| 150 WebInspector.ObjectPropertiesSection.formatObjectAsFunction(
result, valueElement, true); | 150 WebInspector.ObjectPropertiesSection.formatObjectAsFunction(
result, valueElement, true); |
| 151 else | 151 else |
| 152 valueElement.textContent = description; | 152 valueElement.textContent = description; |
| 153 | 153 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 */ | 208 */ |
| 209 _lazyLinkifier: function() | 209 _lazyLinkifier: function() |
| 210 { | 210 { |
| 211 if (!this._linkifier) | 211 if (!this._linkifier) |
| 212 this._linkifier = new WebInspector.Linkifier(); | 212 this._linkifier = new WebInspector.Linkifier(); |
| 213 return this._linkifier; | 213 return this._linkifier; |
| 214 }, | 214 }, |
| 215 | 215 |
| 216 __proto__: WebInspector.PopoverHelper.prototype | 216 __proto__: WebInspector.PopoverHelper.prototype |
| 217 } | 217 } |
| OLD | NEW |