-
darin@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=115657 Reviewed by Sam Weinig. This is similar to my last set of changes, but covers code that I missed with global replace using the Safari Xcode workspace. * platform/cf/win/CertificateCFWin.cpp: (WebCore::copyCertificateToData): * platform/graphics/avfoundation/cf/MediaPlayerPrivateAVFoundationCF.cpp: (WebCore::MediaPlayerPrivateAVFoundationCF::platformBufferedTimeRanges): (WebCore::MediaPlayerPrivateAVFoundationCF::platformMinTimeSeekable): (WebCore::MediaPlayerPrivateAVFoundationCF::platformMaxTimeSeekable): (WebCore::MediaPlayerPrivateAVFoundationCF::platformMaxTimeLoaded): (WebCore::MediaPlayerPrivateAVFoundationCF::totalBytes): (WebCore::mimeTypeCache): (WebCore::MediaPlayerPrivateAVFoundationCF::tracksChanged): (WebCore::MediaPlayerPrivateAVFoundationCF::sizeChanged): (WebCore::AVFWrapper::createAssetForURL): (WebCore::AVFWrapper::createPlayer): (WebCore::AVFWrapper::createPlayerItem): (WebCore::AVFWrapper::setAsset): (WebCore::AVFWrapper::platformLayer): (WebCore::AVFWrapper::createAVCFVideoLayer): (WebCore::AVFWrapper::createImageGenerator): * platform/graphics/avfoundation/objc/InbandTextTrackPrivateLegacyAVFObjC.mm: (WebCore::InbandTextTrackPrivateLegacyAVFObjC::language): * platform/graphics/ca/win/PlatformCAAnimationWin.cpp: (toCACFTimingFunction): (PlatformCAAnimation::PlatformCAAnimation): (PlatformCAAnimation::setFromValue): (PlatformCAAnimation::setToValue): (PlatformCAAnimation::setValues): (PlatformCAAnimation::setKeyTimes): (PlatformCAAnimation::setTimingFunctions): * platform/graphics/ca/win/PlatformCALayerWin.cpp: (PlatformCALayer::PlatformCALayer): (PlatformCALayer::setBackgroundColor): (PlatformCALayer::setBorderColor): * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: (PlatformCALayerWinInternal::PlatformCALayerWinInternal): (PlatformCALayerWinInternal::addTile): * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp: (WebCore::WKCACFViewLayerTreeHost::WKCACFViewLayerTreeHost): * platform/graphics/gstreamer/PlatformVideoWindowMac.mm: (PlatformVideoWindow::PlatformVideoWindow): * platform/graphics/win/FontCustomPlatformData.cpp: (WebCore::FontCustomPlatformData::fontPlatformData): * platform/graphics/win/FontPlatformDataCGWin.cpp: (WebCore::getPostScriptName): (WebCore::FontPlatformData::platformDataInit): * platform/graphics/win/GraphicsContextCGWin.cpp: (WebCore::GraphicsContext::drawWindowsBitmap): * platform/graphics/win/ImageCGWin.cpp: (WebCore::BitmapImage::create): * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp: (WebCore::MediaPlayerPrivateFullscreenWindow::setRootChildLayer): * platform/graphics/win/MediaPlayerPrivateQuickTimeVisualContext.cpp: (WebCore::MediaPlayerPrivateQuickTimeVisualContext::rfc2616DateStringFromTime): (WebCore::QTCFDictionaryCreateWithDataCallback): (WebCore::MediaPlayerPrivateQuickTimeVisualContext::retrieveCurrentImage): * platform/graphics/win/WKCAImageQueue.cpp: (WebCore::WKCAImageQueue::WKCAImageQueue): * platform/image-decoders/ImageDecoder.h: (WebCore::ImageDecoder::qcmsOutputDeviceProfile): * platform/network/cf/AuthenticationCF.cpp: (WebCore::core): * platform/network/cf/CookieJarCFNet.cpp: (WebCore::cookieDomain): (WebCore::cookieName): (WebCore::cookiePath): (WebCore::cookieValue): (WebCore::filterCookies): (WebCore::setCookiesFromDOM): (WebCore::cookiesForDOM): (WebCore::cookieRequestHeaderFieldValue): (WebCore::getRawCookies): (WebCore::deleteCookie): (WebCore::getHostnamesWithCookies): (WebCore::deleteCookiesForHostname): * platform/network/curl/ResourceHandleManager.cpp: (WebCore::certificatePath): * platform/win/ClipboardUtilitiesWin.cpp: (WebCore::urlFromPath): (WebCore::getURL): * platform/win/LocalizedStringsWin.cpp: (WebCore::createWebKitBundle): (WebCore::localizedString): * platform/win/SearchPopupMenuWin.cpp: (WebCore::SearchPopupMenuWin::saveRecentSearches): (WebCore::SearchPopupMenuWin::loadRecentSearches): * plugins/mac/PluginPackageMac.cpp: (WebCore::stringListFromResourceId): (WebCore::PluginPackage::fetchInfo): (WebCore::PluginPackage::load): * plugins/mac/PluginViewMac.mm: (WebCore::PluginView::platformStart): * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::platformFocusRingColor): (WebCore::RenderThemeSafari::paintMenuListButtonGradients): (WebCore::RenderThemeSafari::paintSliderTrack): Use adoptCF and adoptNS throughout. Source/WebKit/win: Use adoptCF and adoptNS in more places https://bugs.webkit.org/show_bug.cgi?id=115657 Reviewed by Sam Weinig. This is similar to my last set of changes, but covers code that I missed with global replace using the Safari Xcode workspace. * CFDictionaryPropertyBag.cpp: (CFDictionaryPropertyBag::Write): * WebCache.cpp: (WebCache::statistics): * WebCoreSupport/WebFrameLoaderClient.cpp: (WebFrameLoaderClient::dispatchDidFailToStartPlugin): * WebCoreSupport/WebInspectorClient.cpp: (WebInspectorClient::openInspectorFrontend): (WebInspectorFrontendClient::localizedStringsURL): * WebDatabaseManager.cpp: (WebDatabaseManager::dispatchDidModifyDatabase): * WebDownloadCFNet.cpp: (WebDownload::init): (WebDownload::initWithRequest): (WebDownload::initToResumeWithBundle): (WebDownload::cancelForResume): (WebDownload::useCredential): (WebDownload::didReceiveAuthenticationChallenge): * WebError.cpp: (WebError::sslPeerCertificate): * WebHistory.cpp: (createUserInfoFromArray): (createUserInfoFromHistoryItem): (WebHistory::WebHistory): (WebHistory::loadFromURL): (WebHistory::loadHistoryGutsFromURL): (WebHistory::saveToURL): (WebHistory::saveHistoryGuts): (WebHistory::removeAllItems): (WebHistory::removeItem): (WebHistory::addItem): (WebHistory::itemForURL): (WebHistory::addItemToDateCaches): (getDayBoundaries): * WebIconDatabase.cpp: (postDidAddIconNotification): * WebLocalizableStrings.cpp: (cfBundleForStringsBundle): * WebMutableURLRequest.cpp: (WebMutableURLRequest::mutableCopy): * WebPreferences.cpp: (cfNumber): (WebPreferences::initializeDefaultSettings): (WebPreferences::valueForKey): (WebPreferences::setStringValue): (WebPreferences::load): (WebPreferences::migrateWebKitPreferencesToCFPreferences): (WebPreferences::setPreferenceForTest): * WebView.cpp: (WebView::setCacheModel): (WebView::notifyPreferencesChanged): Use adoptCF and adoptNS. Source/WebKit2: Use adoptCF and adoptNS in more places https://bugs.webkit.org/show_bug.cgi?id=115657 Reviewed by Sam Weinig. * Shared/Downloads/cfnet/DownloadCFNet.cpp: (WebKit::Download::useCredential): (WebKit::Download::start): (WebKit::Download::startWithHandle): (WebKit::Download::cancel): (WebKit::Download::didDecideDestination): Use adoptCF and adoptNS. Tools: Use adoptCF and adoptNS in more places, test code and code not compiled on Mac https://bugs.webkit.org/show_bug.cgi?id=115657 Reviewed by Sam Weinig. This is similar to my last set of changes, but covers code that I missed with global replace using the Safari Xcode workspace. * DumpRenderTree/cf/WebArchiveDumpSupport.cpp: (convertWebResourceDataToString): (convertWebResourceResponseToDictionary): (createXMLStringFromWebArchiveData): * DumpRenderTree/cg/ImageDiffCG.cpp: (createImageFromStdin): (createDifferenceImage): (main): * DumpRenderTree/cg/PixelDumpSupportCG.cpp: (printPNG): (dumpBitmap): * DumpRenderTree/cg/PixelDumpSupportCG.h: (BitmapContext::BitmapContext): * DumpRenderTree/mac/MockWebNotificationProvider.mm: (-[MockWebNotificationProvider init]): * DumpRenderTree/mac/PixelDumpSupportMac.mm: (createBitmapContext): * DumpRenderTree/mac/TestRunnerMac.mm: (TestRunner::addDisallowedURL): (TestRunner::applicationCacheDiskUsageForOrigin): (TestRunner::localStorageDiskUsageForOrigin): (TestRunner::clearApplicationCacheForOrigin): (TestRunner::deleteLocalStorageForOrigin): (TestRunner::copyDecodedHostName): (TestRunner::copyEncodedHostName): (TestRunner::queueLoad): (TestRunner::setDomainRelaxationForbiddenForURLScheme): (TestRunner::setMockGeolocationPositionUnavailableError): (TestRunner::setUserStyleSheetLocation): (TestRunner::setValueForUser): (TestRunner::overridePreference): (TestRunner::setPersistentUserStyleSheetLocation): (TestRunner::execCommand): (TestRunner::findString): (TestRunner::isCommandEnabled): (TestRunner::addOriginAccessWhitelistEntry): (TestRunner::removeOriginAccessWhitelistEntry): (TestRunner::addUserScript): (TestRunner::addUserStyleSheet): (TestRunner::evaluateInWebInspector): (TestRunner::evaluateScriptInIsolatedWorld): (TestRunner::apiTestNewWindowDataLoadBaseURL): (-[SynchronousLoader connection:didReceiveAuthenticationChallenge:]): (TestRunner::authenticateSession): (TestRunner::grantWebNotificationPermission): (TestRunner::denyWebNotificationPermission): * DumpRenderTree/mac/WebArchiveDumpSupportMac.mm: (createCFURLResponseFromResponseData): * DumpRenderTree/mac/WorkQueueItemMac.mm: (LoadItem::invoke): (LoadHTMLStringItem::invoke): (ScriptItem::invoke): * DumpRenderTree/win/DumpRenderTree.cpp: (substringFromIndex): (urlSuitableForTestResult): (lastPathComponent): (sharedCFURLCache): * DumpRenderTree/win/ImageDiffCairo.cpp: (createImageFromStdin): (main): * DumpRenderTree/win/PixelDumpSupportWin.cpp: (createBitmapContextFromWebView): * DumpRenderTree/win/TestRunnerWin.cpp: (TestRunner::setUserStyleSheetLocation): (TestRunner::setPersistentUserStyleSheetLocation): * TestWebKitAPI/Tests/CustomProtocolsSyncXHRTest.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/TestWebKitAPI/mac/InstanceMethodSwizzler.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WTF/cf/RetainPtrHashing.cpp: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit2/FindMatches.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit2/WebArchive.cpp: (TestWebKitAPI::didReceiveMessageFromInjectedBundle): * TestWebKitAPI/Tests/WebKit2/mac/GetBackingScaleFactor.mm: (TestWebKitAPI::createWindow): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit2/win/DoNotCopyANullCFURLResponse.cpp: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm: (TestWebKitAPI::AcceptsFirstMouse::runTest): * TestWebKitAPI/Tests/mac/AttributedString.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/BackForwardList.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/CancelLoadFromResourceLoadDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/ContextMenuCanCopyURL.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/DOMHTMLTableCellCellAbove.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/DOMRangeOfString.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/DeviceScaleFactorInDashboardRegions.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/DeviceScaleFactorOnBack.mm: (TestWebKitAPI::DeviceScaleFactorOnBack::createWindow): * TestWebKitAPI/Tests/mac/DynamicDeviceScaleFactor.mm: (TestWebKitAPI::DynamicDeviceScaleFactor::createWindow): * TestWebKitAPI/Tests/mac/HTMLCollectionNamedItem.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/HTMLFormCollectionNamedItem.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/InspectorBar.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/MemoryCacheDisableWithinResourceLoadDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/MemoryCachePruneWithinResourceLoadDelegate.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/PageVisibilityStateWithWindowChanges.mm: (TestWebKitAPI::PageVisibilityStateWithWindowChanges::runTest): * TestWebKitAPI/Tests/mac/RenderedImageFromDOMRange.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/SetAndUpdateCacheModel.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/SetDocumentURI.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/SimplifyMarkup.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/StringByEvaluatingJavaScriptFromString.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/WillSendSubmitEvent.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/mac/WindowlessWebViewWithMedia.mm: (TestWebKitAPI::TEST): * TestWebKitAPI/mac/PlatformUtilitiesMac.mm: (TestWebKitAPI::Util::MIMETypeForWKURLResponse): * TestWebKitAPI/mac/WebKitAgnosticTest.mm: (TestWebKitAPI::WebKitAgnosticTest::runWebKit1Test): (TestWebKitAPI::WebKitAgnosticTest::runWebKit2Test): * WebKitTestRunner/InjectedBundle/mac/InjectedBundlePageMac.mm: (WTR::testPathFromURL): * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm: (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded): * WebKitTestRunner/cg/TestInvocationCG.cpp: (WTR::createCGContextFromImage): (WTR::dumpBitmap): (WTR::TestInvocation::dumpPixelsAndCompareWithExpected): * WebKitTestRunner/mac/EventSenderProxy.mm: (WTR::EventSenderProxy::mouseScrollBy): * WebKitTestRunner/mac/PlatformWebViewMac.mm: (WTR::PlatformWebView::windowSnapshotImage): * WebKitTestRunner/win/TestControllerWin.cpp: (WTR::TestController::initializeTestPluginDirectory): Use adoptCF and adoptNS. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f00480b5