Changeset 184823 in webkit
- Timestamp:
- May 23, 2015, 8:03:43 AM (10 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r184822 r184823 1 2015-05-23 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Improve native parameter lists a bit 4 https://bugs.webkit.org/show_bug.cgi?id=145338 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Models/NativeFunctionParameters.js: 9 * UserInterface/Views/ObjectTreePropertyTreeElement.js: 10 (WebInspector.ObjectTreePropertyTreeElement.prototype._functionParameterString): 11 1 12 2015-05-23 Joseph Pecoraro <pecoraro@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js
r183233 r184823 31 31 assign: "target, ...sources", 32 32 create: "prototype, [propertiesObject]", 33 defineProperties: "object, properties", 33 34 defineProperty: "object, propertyName, descriptor", 34 defineProperties: "object, properties",35 35 freeze: "object", 36 36 getOwnPropertyDescriptor: "object, propertyName", … … 38 38 getOwnPropertySymbols: "object", 39 39 getPrototypeOf: "object", 40 is: "value1, value2", 40 41 isExtensible: "object", 41 42 isFrozen: "object", … … 44 45 preventExtensions: "object", 45 46 seal: "object", 47 setPrototypeOf: "object, prototype", 46 48 __proto__: null, 47 49 }, … … 76 78 asin: "x", 77 79 asinh: "x", 80 atan2: "y, x", 78 81 atan: "x", 79 atan2: "y, x",80 82 atanh: "x", 81 83 cbrt: "x", 82 84 ceil: "x", 85 clz32: "x", 83 86 cos: "x", 84 87 cosh: "x", … … 97 100 pow: "x, y", 98 101 round: "x", 102 sign: "x", 99 103 sin: "x", 100 104 sinh: "x", … … 127 131 128 132 String: { 129 fromCharCode: "code, [...codes]", 133 fromCharCode: "...codeUnits", 134 fromCodePoint: "...codePoints", 135 raw: "template, ...substitutions", 130 136 __proto__: null, 131 137 }, … … 301 307 charAt: "index", 302 308 charCodeAt: "index", 309 codePoints: "index", 303 310 concat: "string, ...", 304 311 includes: "searchValue, [startIndex=0]", … … 307 314 localeCompare: "string", 308 315 match: "regex", 316 repeat: "count", 309 317 replace: "regex|string, replaceString|replaceHandler, [flags]", 310 318 search: "regex", … … 734 742 735 743 DocumentFragment: { 744 getElementById: "id", 736 745 querySelector: "selectors", 737 746 querySelectorAll: "selectors", -
trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js
r183947 r184823 258 258 } 259 259 260 var parentDescription = this._propertyPath.object.description; 261 260 262 // Native function property on a native function is likely a "Foo.method". 261 if (isFunctionStringNativeCode( this._propertyPath.object.description)) {262 var match = this._propertyPath.object.description.match(/^function\s+([^)]+?)\(/);263 if (isFunctionStringNativeCode(parentDescription)) { 264 var match = parentDescription.match(/^function\s+([^)]+?)\(/); 263 265 if (match) { 264 266 var name = match[1]; … … 270 272 } 271 273 272 // Native DOM constructor .273 if ( this._propertyPath.object.description.endsWith("Constructor")) {274 var name = this._propertyPath.object.description;274 // Native DOM constructor or on native objects that are not functions. 275 if (parentDescription.endsWith("Constructor") || parentDescription === "Math" || parentDescription === "JSON") { 276 var name = parentDescription; 275 277 if (WebInspector.NativeConstructorFunctionParameters[name]) { 276 278 var params = WebInspector.NativeConstructorFunctionParameters[name][this._property.name];
Note:
See TracChangeset
for help on using the changeset viewer.