Changeset 179053 in webkit for trunk/Source/JavaScriptCore


Ignore:
Timestamp:
Jan 23, 2015, 6:34:18 PM (10 years ago)
Author:
[email protected]
Message:

Web Inspector: Rename InjectedScriptHost::type to subtype
https://bugs.webkit.org/show_bug.cgi?id=140841

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-01-23
Reviewed by Timothy Hatcher.

Source/JavaScriptCore:

We were using this to set the subtype of an "object" type RemoteObject
so we should clean up the name and call it subtype.

  • inspector/InjectedScriptHost.h:
  • inspector/InjectedScriptSource.js:
  • inspector/JSInjectedScriptHost.cpp:

(Inspector::JSInjectedScriptHost::subtype):
(Inspector::JSInjectedScriptHost::type): Deleted.

  • inspector/JSInjectedScriptHost.h:
  • inspector/JSInjectedScriptHostPrototype.cpp:

(Inspector::JSInjectedScriptHostPrototype::finishCreation):
(Inspector::jsInjectedScriptHostPrototypeFunctionSubtype):
(Inspector::jsInjectedScriptHostPrototypeFunctionType): Deleted.

Source/WebCore:

  • inspector/WebInjectedScriptHost.cpp:

(WebCore::WebInjectedScriptHost::subtype):
(WebCore::WebInjectedScriptHost::type): Deleted.

  • inspector/WebInjectedScriptHost.h:
Location:
trunk/Source/JavaScriptCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r179035 r179053  
     12015-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
    1222015-01-23  Michael Saboff  <[email protected]>
    223
  • trunk/Source/JavaScriptCore/inspector/InjectedScriptHost.h

    r178820 r179053  
    4040    virtual ~InjectedScriptHost();
    4141
    42     virtual JSC::JSValue type(JSC::ExecState*, JSC::JSValue) { return JSC::jsUndefined(); }
     42    virtual JSC::JSValue subtype(JSC::ExecState*, JSC::JSValue) { return JSC::jsUndefined(); }
    4343    virtual bool isHTMLAllCollection(JSC::JSValue) { return false; }
    4444
  • trunk/Source/JavaScriptCore/inspector/InjectedScriptSource.js

    r179019 r179053  
    105105        if (typeof columns === "string")
    106106            columns = [columns];
    107         if (InjectedScriptHost.type(columns) === "array") {
     107        if (InjectedScriptHost.subtype(columns) === "array") {
    108108            columnNames = [];
    109109            for (var i = 0; i < columns.length; ++i)
     
    612612            return "array";
    613613
    614         var preciseType = InjectedScriptHost.type(obj);
     614        var preciseType = InjectedScriptHost.subtype(obj);
    615615        if (preciseType)
    616616            return preciseType;
  • trunk/Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp

    r178820 r179053  
    107107}
    108108
    109 JSValue JSInjectedScriptHost::type(ExecState* exec)
     109JSValue JSInjectedScriptHost::subtype(ExecState* exec)
    110110{
    111111    if (exec->argumentCount() < 1)
     
    137137        return jsNontrivialString(exec, ASCIILiteral("array"));
    138138
    139     return impl().type(exec, value);
     139    return impl().subtype(exec, value);
    140140}
    141141
  • trunk/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h

    r178820 r179053  
    6363    JSC::JSValue internalConstructorName(JSC::ExecState*);
    6464    JSC::JSValue isHTMLAllCollection(JSC::ExecState*);
    65     JSC::JSValue type(JSC::ExecState*);
     65    JSC::JSValue subtype(JSC::ExecState*);
    6666    JSC::JSValue functionDetails(JSC::ExecState*);
    6767    JSC::JSValue getInternalProperties(JSC::ExecState*);
  • trunk/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp

    r178820 r179053  
    3939namespace Inspector {
    4040
    41 static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionType(ExecState*);
     41static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionSubtype(ExecState*);
    4242static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionFunctionDetails(ExecState*);
    4343static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionGetInternalProperties(ExecState*);
     
    5555    vm.prototypeMap.addPrototype(this);
    5656
    57     JSC_NATIVE_FUNCTION("type", jsInjectedScriptHostPrototypeFunctionType, DontEnum, 1);
     57    JSC_NATIVE_FUNCTION("subtype", jsInjectedScriptHostPrototypeFunctionSubtype, DontEnum, 1);
    5858    JSC_NATIVE_FUNCTION("functionDetails", jsInjectedScriptHostPrototypeFunctionFunctionDetails, DontEnum, 1);
    5959    JSC_NATIVE_FUNCTION("getInternalProperties", jsInjectedScriptHostPrototypeFunctionGetInternalProperties, DontEnum, 1);
     
    101101}
    102102
    103 EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionType(ExecState* exec)
     103EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionSubtype(ExecState* exec)
    104104{
    105105    JSValue thisValue = exec->thisValue();
     
    109109
    110110    ASSERT_GC_OBJECT_INHERITS(castedThis, JSInjectedScriptHost::info());
    111     return JSValue::encode(castedThis->type(exec));
     111    return JSValue::encode(castedThis->subtype(exec));
    112112}
    113113
Note: See TracChangeset for help on using the changeset viewer.