Ignore:
Timestamp:
Jan 7, 2015, 11:32:05 AM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r178039.
https://bugs.webkit.org/show_bug.cgi?id=140187

Breaks ObjC Inspector Protocol (Requested by JoePeck on
#webkit).

Reverted changeset:

"Web Inspector: purge PassRefPtr from Inspector code and use
Ref for typed and untyped protocol objects"
https://bugs.webkit.org/show_bug.cgi?id=140053
http://trac.webkit.org/changeset/178039

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bindings/ScriptValue.cpp

    r178039 r178042  
    9999
    100100#if ENABLE(INSPECTOR)
    101 static RefPtr<InspectorValue> jsToInspectorValue(ExecState* scriptState, JSValue value, int maxDepth)
     101static PassRefPtr<InspectorValue> jsToInspectorValue(ExecState* scriptState, JSValue value, int maxDepth)
    102102{
    103103    if (!value) {
     
    124124    if (value.isObject()) {
    125125        if (isJSArray(value)) {
    126             Ref<InspectorArray> inspectorArray = InspectorArray::create();
     126            RefPtr<InspectorArray> inspectorArray = InspectorArray::create();
    127127            JSArray* array = asArray(value);
    128128            unsigned length = array->length();
     
    132132                if (!elementValue)
    133133                    return nullptr;
    134                 inspectorArray->pushValue(WTF::move(elementValue));
     134                inspectorArray->pushValue(elementValue);
    135135            }
    136             return WTF::move(inspectorArray);
     136            return inspectorArray;
    137137        }
    138         Ref<InspectorObject> inspectorObject = InspectorObject::create();
     138        RefPtr<InspectorObject> inspectorObject = InspectorObject::create();
    139139        JSObject* object = value.getObject();
    140140        PropertyNameArray propertyNames(scriptState);
     
    146146            if (!inspectorValue)
    147147                return nullptr;
    148             inspectorObject->setValue(name.string(), WTF::move(inspectorValue));
     148            inspectorObject->setValue(name.string(), inspectorValue);
    149149        }
    150         return WTF::move(inspectorObject);
     150        return inspectorObject;
    151151    }
    152152
     
    155155}
    156156
    157 RefPtr<InspectorValue> ScriptValue::toInspectorValue(ExecState* scriptState) const
     157PassRefPtr<InspectorValue> ScriptValue::toInspectorValue(ExecState* scriptState) const
    158158{
    159159    JSLockHolder holder(scriptState);
Note: See TracChangeset for help on using the changeset viewer.