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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
131 var valueElement = popoverContentElement.createChild('span', 'monospace object-value-' + result.type); | 131 var valueElement = popoverContentElement.createChild('span', 'monospace object-value-' + result.type); |
132 valueElement.style.whiteSpace = 'pre'; | 132 valueElement.style.whiteSpace = 'pre'; |
133 | 133 |
134 if (result.type === 'string') | 134 if (result.type === 'string') |
135 valueElement.createTextChildren('"', description, '"'); | 135 valueElement.createTextChildren('"', description, '"'); |
136 else if (result.type !== 'function') | 136 else if (result.type !== 'function') |
137 valueElement.textContent = description; | 137 valueElement.textContent = description; |
138 | 138 |
139 if (result.type === 'function') { | 139 if (result.type === 'function') { |
140 result.getOwnProperties( | 140 result.getOwnProperties( |
141 didGetFunctionProperties.bind(this, result, popoverContentElement, valueElement, anchorElement)); | 141 false, didGetFunctionProperties.bind(this, result, popoverContentE lement, valueElement, anchorElement)); |
dgozman
2017/01/13 02:55:41
And here.
luoe
2017/01/13 23:20:12
Done.
| |
142 return; | 142 return; |
143 } | 143 } |
144 popover.showForAnchor(popoverContentElement, anchorElement); | 144 popover.showForAnchor(popoverContentElement, anchorElement); |
145 } else { | 145 } else { |
146 if (result.subtype === 'node') { | 146 if (result.subtype === 'node') { |
147 SDK.DOMModel.highlightObjectAsDOMNode(result); | 147 SDK.DOMModel.highlightObjectAsDOMNode(result); |
148 this._resultHighlightedAsDOM = true; | 148 this._resultHighlightedAsDOM = true; |
149 } | 149 } |
150 | 150 |
151 if (result.customPreview()) { | 151 if (result.customPreview()) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 * @return {!Components.Linkifier} | 190 * @return {!Components.Linkifier} |
191 */ | 191 */ |
192 _lazyLinkifier() { | 192 _lazyLinkifier() { |
193 if (!this._linkifier) | 193 if (!this._linkifier) |
194 this._linkifier = new Components.Linkifier(); | 194 this._linkifier = new Components.Linkifier(); |
195 return this._linkifier; | 195 return this._linkifier; |
196 } | 196 } |
197 }; | 197 }; |
198 | 198 |
199 Components.ObjectPopoverHelper.MaxPopoverTextLength = 10000; | 199 Components.ObjectPopoverHelper.MaxPopoverTextLength = 10000; |
OLD | NEW |