Changeset 179053 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Jan 23, 2015, 6:34:18 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r179035 r179053 1 2015-01-23 Joseph Pecoraro <[email protected]> 2 3 Web Inspector: Rename InjectedScriptHost::type to subtype 4 https://bugs.webkit.org/show_bug.cgi?id=140841 5 6 Reviewed by Timothy Hatcher. 7 8 We were using this to set the subtype of an "object" type RemoteObject 9 so we should clean up the name and call it subtype. 10 11 * inspector/InjectedScriptHost.h: 12 * inspector/InjectedScriptSource.js: 13 * inspector/JSInjectedScriptHost.cpp: 14 (Inspector::JSInjectedScriptHost::subtype): 15 (Inspector::JSInjectedScriptHost::type): Deleted. 16 * inspector/JSInjectedScriptHost.h: 17 * inspector/JSInjectedScriptHostPrototype.cpp: 18 (Inspector::JSInjectedScriptHostPrototype::finishCreation): 19 (Inspector::jsInjectedScriptHostPrototypeFunctionSubtype): 20 (Inspector::jsInjectedScriptHostPrototypeFunctionType): Deleted. 21 1 22 2015-01-23 Michael Saboff <[email protected]> 2 23 -
trunk/Source/JavaScriptCore/inspector/InjectedScriptHost.h
r178820 r179053 40 40 virtual ~InjectedScriptHost(); 41 41 42 virtual JSC::JSValue type(JSC::ExecState*, JSC::JSValue) { return JSC::jsUndefined(); }42 virtual JSC::JSValue subtype(JSC::ExecState*, JSC::JSValue) { return JSC::jsUndefined(); } 43 43 virtual bool isHTMLAllCollection(JSC::JSValue) { return false; } 44 44 -
trunk/Source/JavaScriptCore/inspector/InjectedScriptSource.js
r179019 r179053 105 105 if (typeof columns === "string") 106 106 columns = [columns]; 107 if (InjectedScriptHost. type(columns) === "array") {107 if (InjectedScriptHost.subtype(columns) === "array") { 108 108 columnNames = []; 109 109 for (var i = 0; i < columns.length; ++i) … … 612 612 return "array"; 613 613 614 var preciseType = InjectedScriptHost. type(obj);614 var preciseType = InjectedScriptHost.subtype(obj); 615 615 if (preciseType) 616 616 return preciseType; -
trunk/Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp
r178820 r179053 107 107 } 108 108 109 JSValue JSInjectedScriptHost:: type(ExecState* exec)109 JSValue JSInjectedScriptHost::subtype(ExecState* exec) 110 110 { 111 111 if (exec->argumentCount() < 1) … … 137 137 return jsNontrivialString(exec, ASCIILiteral("array")); 138 138 139 return impl(). type(exec, value);139 return impl().subtype(exec, value); 140 140 } 141 141 -
trunk/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h
r178820 r179053 63 63 JSC::JSValue internalConstructorName(JSC::ExecState*); 64 64 JSC::JSValue isHTMLAllCollection(JSC::ExecState*); 65 JSC::JSValue type(JSC::ExecState*);65 JSC::JSValue subtype(JSC::ExecState*); 66 66 JSC::JSValue functionDetails(JSC::ExecState*); 67 67 JSC::JSValue getInternalProperties(JSC::ExecState*); -
trunk/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp
r178820 r179053 39 39 namespace Inspector { 40 40 41 static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunction Type(ExecState*);41 static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionSubtype(ExecState*); 42 42 static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionFunctionDetails(ExecState*); 43 43 static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionGetInternalProperties(ExecState*); … … 55 55 vm.prototypeMap.addPrototype(this); 56 56 57 JSC_NATIVE_FUNCTION(" type", jsInjectedScriptHostPrototypeFunctionType, DontEnum, 1);57 JSC_NATIVE_FUNCTION("subtype", jsInjectedScriptHostPrototypeFunctionSubtype, DontEnum, 1); 58 58 JSC_NATIVE_FUNCTION("functionDetails", jsInjectedScriptHostPrototypeFunctionFunctionDetails, DontEnum, 1); 59 59 JSC_NATIVE_FUNCTION("getInternalProperties", jsInjectedScriptHostPrototypeFunctionGetInternalProperties, DontEnum, 1); … … 101 101 } 102 102 103 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunction Type(ExecState* exec)103 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionSubtype(ExecState* exec) 104 104 { 105 105 JSValue thisValue = exec->thisValue(); … … 109 109 110 110 ASSERT_GC_OBJECT_INHERITS(castedThis, JSInjectedScriptHost::info()); 111 return JSValue::encode(castedThis-> type(exec));111 return JSValue::encode(castedThis->subtype(exec)); 112 112 } 113 113
Note:
See TracChangeset
for help on using the changeset viewer.