| 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 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1056 | 1056 |
| 1057 /** | 1057 /** |
| 1058 * @param {!WebInspector.RemoteObject} value | 1058 * @param {!WebInspector.RemoteObject} value |
| 1059 * @param {boolean} wasThrown | 1059 * @param {boolean} wasThrown |
| 1060 * @param {!Element=} parentElement | 1060 * @param {!Element=} parentElement |
| 1061 * @return {!Element} | 1061 * @return {!Element} |
| 1062 */ | 1062 */ |
| 1063 WebInspector.ObjectPropertiesSection.createValueElementWithCustomSupport = funct
ion(value, wasThrown, parentElement) | 1063 WebInspector.ObjectPropertiesSection.createValueElementWithCustomSupport = funct
ion(value, wasThrown, parentElement) |
| 1064 { | 1064 { |
| 1065 if (value.customPreview()) { | 1065 if (value.customPreview()) { |
| 1066 var result = WebInspector.CustomPreviewSection.createInShadow(value); | 1066 var result = (new WebInspector.CustomPreviewComponent(value)).element; |
| 1067 result.classList.add("object-properties-section-custom-section"); | 1067 result.classList.add("object-properties-section-custom-section"); |
| 1068 return result | 1068 return result |
| 1069 } | 1069 } |
| 1070 return WebInspector.ObjectPropertiesSection.createValueElement(value, wasThr
own, parentElement); | 1070 return WebInspector.ObjectPropertiesSection.createValueElement(value, wasThr
own, parentElement); |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 /** | 1073 /** |
| 1074 * @param {!WebInspector.RemoteObject} value | 1074 * @param {!WebInspector.RemoteObject} value |
| 1075 * @param {boolean} wasThrown | 1075 * @param {boolean} wasThrown |
| 1076 * @param {!Element=} parentElement | 1076 * @param {!Element=} parentElement |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 return; | 1203 return; |
| 1204 if (token === "(") { | 1204 if (token === "(") { |
| 1205 params = []; | 1205 params = []; |
| 1206 return; | 1206 return; |
| 1207 } | 1207 } |
| 1208 if (params && tokenType === "js-def") | 1208 if (params && tokenType === "js-def") |
| 1209 params.push(token); | 1209 params.push(token); |
| 1210 } | 1210 } |
| 1211 } | 1211 } |
| 1212 } | 1212 } |
| OLD | NEW |