Home
last modified time | relevance | path

Searched refs:cfValue (Results 1 – 3 of 3) sorted by relevance

/external/webkit/Source/JavaScriptGlue/
DUserObjectImp.cpp171 CFTypeRef cfValue = jsObjPtr ? jsObjPtr->CopyCFValue() : 0; in toPrimitive() local
172 if (cfValue) { in toPrimitive()
173 CFTypeID cfType = CFGetTypeID(cfValue); // toPrimitive in toPrimitive()
174 if (cfValue == GetCFNull()) { in toPrimitive()
178 if (cfValue == kCFBooleanTrue) { in toPrimitive()
184 result = jsString(exec, CFStringToUString((CFStringRef)cfValue)); in toPrimitive()
187 CFNumberGetValue((CFNumberRef)cfValue, kCFNumberDoubleType, &d); in toPrimitive()
190 CFURLRef absURL = CFURLCopyAbsoluteURL((CFURLRef)cfValue); in toPrimitive()
196 ReleaseCFType(cfValue); in toPrimitive()
208 CFTypeRef cfValue = jsObjPtr ? jsObjPtr->CopyCFValue() : 0; in toBoolean() local
[all …]
DJSUtils.cpp309 … CFTypeRef cfValue = KJSValueToCFTypeInternal(object->get(exec, i), exec, &imps); in KJSValueToCFTypeInternal() local
310 CFArrayAppendValue((CFMutableArrayRef)result, cfValue); in KJSValueToCFTypeInternal()
311 ReleaseCFType(cfValue); in KJSValueToCFTypeInternal()
335 … CFTypeRef cfValue = KJSValueToCFTypeInternal(object->get(exec, propName), exec, &imps); in KJSValueToCFTypeInternal() local
336 if (cfKey && cfValue) in KJSValueToCFTypeInternal()
338 … CFDictionaryAddValue((CFMutableDictionaryRef)result, cfKey, cfValue); in KJSValueToCFTypeInternal()
341 ReleaseCFType(cfValue); in KJSValueToCFTypeInternal()
DJavaScriptGlue.cpp486 CFTypeRef cfValue = JSObjectCopyCFValue(jsValue); in CFJSObjectSetProperty() local
488 if (cfValue) in CFJSObjectSetProperty()
492 CFDictionarySetValue((CFMutableDictionaryRef)data, propertyName, cfValue); in CFJSObjectSetProperty()
504 CFArraySetValueAtIndex((CFMutableArrayRef)data, index, cfValue); in CFJSObjectSetProperty()
507 CFRelease(cfValue); in CFJSObjectSetProperty()
637 CFTypeRef cfValue = (CFTypeRef)CFArrayGetValueAtIndex(array, i); in JSCreateJSArrayFromCFArray() local
638 JSObjectRef jsValue = JSObjectCreateWithCFType(cfValue); in JSCreateJSArrayFromCFArray()