| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 return; | 156 return; |
| 157 } | 157 } |
| 158 popover.showForAnchor(popoverContentElement, anchorElement); | 158 popover.showForAnchor(popoverContentElement, anchorElement); |
| 159 } else { | 159 } else { |
| 160 if (result.subtype === "node") { | 160 if (result.subtype === "node") { |
| 161 WebInspector.DOMModel.highlightObjectAsDOMNode(result); | 161 WebInspector.DOMModel.highlightObjectAsDOMNode(result); |
| 162 this._resultHighlightedAsDOM = true; | 162 this._resultHighlightedAsDOM = true; |
| 163 } | 163 } |
| 164 | 164 |
| 165 if (result.customPreview()) { | 165 if (result.customPreview()) { |
| 166 popoverContentElement = WebInspector.CustomPreviewSection.cr
eateInShadow(result, true); | 166 var customPreviewComponent = new WebInspector.CustomPreviewC
omponent(result); |
| 167 customPreviewComponent.expandIfPossible(); |
| 168 popoverContentElement = customPreviewComponent.element; |
| 167 } else { | 169 } else { |
| 168 popoverContentElement = createElement("div"); | 170 popoverContentElement = createElement("div"); |
| 169 this._titleElement = popoverContentElement.createChild("div"
, "monospace"); | 171 this._titleElement = popoverContentElement.createChild("div"
, "monospace"); |
| 170 this._titleElement.createChild("span", "source-frame-popover
-title").textContent = description; | 172 this._titleElement.createChild("span", "source-frame-popover
-title").textContent = description; |
| 171 var section = new WebInspector.ObjectPropertiesSection(resul
t, ""); | 173 var section = new WebInspector.ObjectPropertiesSection(resul
t, ""); |
| 172 section.element.classList.add("source-frame-popover-tree"); | 174 section.element.classList.add("source-frame-popover-tree"); |
| 173 section.titleLessMode(); | 175 section.titleLessMode(); |
| 174 popoverContentElement.appendChild(section.element); | 176 popoverContentElement.appendChild(section.element); |
| 175 | 177 |
| 176 if (result.subtype === "generator") | 178 if (result.subtype === "generator") |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 */ | 210 */ |
| 209 _lazyLinkifier: function() | 211 _lazyLinkifier: function() |
| 210 { | 212 { |
| 211 if (!this._linkifier) | 213 if (!this._linkifier) |
| 212 this._linkifier = new WebInspector.Linkifier(); | 214 this._linkifier = new WebInspector.Linkifier(); |
| 213 return this._linkifier; | 215 return this._linkifier; |
| 214 }, | 216 }, |
| 215 | 217 |
| 216 __proto__: WebInspector.PopoverHelper.prototype | 218 __proto__: WebInspector.PopoverHelper.prototype |
| 217 } | 219 } |
| OLD | NEW |