Changeset 178042 in webkit for trunk/Source/JavaScriptCore/bindings/ScriptValue.cpp
- Timestamp:
- Jan 7, 2015, 11:32:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bindings/ScriptValue.cpp
r178039 r178042 99 99 100 100 #if ENABLE(INSPECTOR) 101 static RefPtr<InspectorValue> jsToInspectorValue(ExecState* scriptState, JSValue value, int maxDepth)101 static PassRefPtr<InspectorValue> jsToInspectorValue(ExecState* scriptState, JSValue value, int maxDepth) 102 102 { 103 103 if (!value) { … … 124 124 if (value.isObject()) { 125 125 if (isJSArray(value)) { 126 Ref <InspectorArray> inspectorArray = InspectorArray::create();126 RefPtr<InspectorArray> inspectorArray = InspectorArray::create(); 127 127 JSArray* array = asArray(value); 128 128 unsigned length = array->length(); … … 132 132 if (!elementValue) 133 133 return nullptr; 134 inspectorArray->pushValue( WTF::move(elementValue));134 inspectorArray->pushValue(elementValue); 135 135 } 136 return WTF::move(inspectorArray);136 return inspectorArray; 137 137 } 138 Ref <InspectorObject> inspectorObject = InspectorObject::create();138 RefPtr<InspectorObject> inspectorObject = InspectorObject::create(); 139 139 JSObject* object = value.getObject(); 140 140 PropertyNameArray propertyNames(scriptState); … … 146 146 if (!inspectorValue) 147 147 return nullptr; 148 inspectorObject->setValue(name.string(), WTF::move(inspectorValue));148 inspectorObject->setValue(name.string(), inspectorValue); 149 149 } 150 return WTF::move(inspectorObject);150 return inspectorObject; 151 151 } 152 152 … … 155 155 } 156 156 157 RefPtr<InspectorValue> ScriptValue::toInspectorValue(ExecState* scriptState) const157 PassRefPtr<InspectorValue> ScriptValue::toInspectorValue(ExecState* scriptState) const 158 158 { 159 159 JSLockHolder holder(scriptState);
Note:
See TracChangeset
for help on using the changeset viewer.