<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[202242] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/202242">202242</a></dd>
<dt>Author</dt> <dd>krollin@apple.com</dd>
<dt>Date</dt> <dd>2016-06-20 13:52:45 -0700 (Mon, 20 Jun 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Remove RefPtr::release() and change calls sites to use WTFMove()
https://bugs.webkit.org/show_bug.cgi?id=158369
Reviewed by Chris Dumez.
RefPtr::release() releases its managed pointer awkwardly. It's more
direct and clearer to use WTFMove to transfer ownership of the managed
pointer.
As part of this cleanup, also change a lot of explicit data types to
'auto'.
Source/JavaScriptCore:
* API/JSObjectRef.cpp:
(JSClassCreate):
* API/JSScriptRef.cpp:
* API/JSValueRef.cpp:
(JSValueToStringCopy):
* bytecompiler/StaticPropertyAnalyzer.h:
(JSC::StaticPropertyAnalyzer::newObject):
(JSC::StaticPropertyAnalyzer::mov):
* debugger/DebuggerCallFrame.cpp:
(JSC::DebuggerCallFrame::invalidate):
* dfg/DFGJITCompiler.cpp:
(JSC::DFG::JITCompiler::compile):
(JSC::DFG::JITCompiler::compileFunction):
* inspector/InspectorValues.cpp:
(Inspector::InspectorValue::parseJSON):
* inspector/agents/InspectorAgent.cpp:
(Inspector::InspectorAgent::activateExtraDomain):
(Inspector::InspectorAgent::activateExtraDomains):
* inspector/agents/InspectorDebuggerAgent.cpp:
(Inspector::InspectorDebuggerAgent::breakpointActionProbe):
* inspector/remote/RemoteInspector.mm:
(Inspector::RemoteInspector::receivedSetupMessage):
* jit/Repatch.cpp:
(JSC::linkPolymorphicCall):
* runtime/GenericTypedArrayViewInlines.h:
(JSC::GenericTypedArrayView<Adaptor>::create):
(JSC::GenericTypedArrayView<Adaptor>::createUninitialized):
* runtime/JSArrayBufferConstructor.cpp:
(JSC::constructArrayBuffer):
* runtime/PropertyNameArray.h:
(JSC::PropertyNameArray::releaseData):
* runtime/Structure.cpp:
(JSC::Structure::toStructureShape):
* runtime/TypeSet.cpp:
(JSC::StructureShape::merge):
* tools/FunctionOverrides.cpp:
(JSC::initializeOverrideInfo):
Source/WebCore:
No new tests: there's no new functionality, just a refactoring of
existing code.
* Modules/mediasource/SourceBuffer.cpp:
(WebCore::removeSamplesFromTrackBuffer):
(WebCore::SourceBuffer::provideMediaData):
* Modules/mediastream/UserMediaRequest.cpp:
(WebCore::UserMediaRequest::start):
* Modules/webdatabase/SQLCallbackWrapper.h:
(WebCore::SQLCallbackWrapper::clear):
* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::handlePostMessage):
* bindings/js/JSHistoryCustom.cpp:
(WebCore::JSHistory::pushState):
(WebCore::JSHistory::replaceState):
* bindings/js/JSMessagePortCustom.h:
(WebCore::handlePostMessage):
* bindings/js/ScriptControllerMac.mm:
(WebCore::ScriptController::createScriptInstanceForWidget):
* bindings/js/SerializedScriptValue.cpp:
(WebCore::CloneDeserializer::readTerminal):
* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::copyPropertiesInSet):
* css/SVGCSSParser.cpp:
(WebCore::CSSParser::parseSVGValue):
* css/StyleBuilderConverter.h:
(WebCore::StyleBuilderConverter::convertShapeValue):
* css/StyleProperties.cpp:
(WebCore::StyleProperties::copyPropertiesInSet):
* css/StyleResolver.cpp:
(WebCore::StyleResolver::loadPendingImages):
* dom/InlineStyleSheetOwner.cpp:
(WebCore::InlineStyleSheetOwner::clearSheet):
* editing/ApplyStyleCommand.cpp:
(WebCore::ApplyStyleCommand::applyInlineStyleToNodeRange):
* editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::removeChildrenInRange):
(WebCore::CompositeEditCommand::removeNodeAndPruneAncestors):
(WebCore::CompositeEditCommand::prune):
(WebCore::CompositeEditCommand::replaceSelectedTextInNode):
(WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring):
* editing/CreateLinkCommand.cpp:
(WebCore::CreateLinkCommand::doApply):
* editing/EditingStyle.cpp:
(WebCore::EditingStyle::mergeStyle):
(WebCore::EditingStyle::mergeStyleFromRulesForSerialization):
* editing/Editor.cpp:
(WebCore::ClearTextCommand::CreateAndApply):
(WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
* editing/EditorCommand.cpp:
(WebCore::executeInsertNode):
* editing/InsertTextCommand.cpp:
(WebCore::InsertTextCommand::performOverwrite):
(WebCore::InsertTextCommand::insertTab):
* editing/RemoveNodePreservingChildrenCommand.cpp:
(WebCore::RemoveNodePreservingChildrenCommand::doApply):
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplacementFragment::removeNodePreservingChildren):
(WebCore::ReplaceSelectionCommand::moveNodeOutOfAncestor):
* html/FTPDirectoryDocument.cpp:
(WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
* html/HTMLFontElement.cpp:
(WebCore::HTMLFontElement::collectStyleForPresentationAttribute):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::prepareForSubmission):
* html/HTMLTableElement.cpp:
(WebCore::leakBorderStyle):
(WebCore::leakGroupBorderStyle):
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
* html/track/InbandDataTextTrack.cpp:
(WebCore::InbandDataTextTrack::addDataCue):
* html/track/InbandGenericTextTrack.cpp:
(WebCore::InbandGenericTextTrack::newCuesParsed):
* html/track/InbandWebVTTTextTrack.cpp:
(WebCore::InbandWebVTTTextTrack::newCuesParsed):
* html/track/TextTrackCueList.cpp:
(WebCore::TextTrackCueList::add):
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::getInlineStylesForNode):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
* inspector/InspectorIndexedDBAgent.cpp:
* inspector/InspectorNetworkAgent.cpp:
(WebCore::InspectorNetworkAgent::loadResource):
* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::buildObjectForSelectorList):
* loader/FormSubmission.cpp:
(WebCore::FormSubmission::create):
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::loadURLIntoChildFrame):
(WebCore::FrameLoader::loadURL):
(WebCore::FrameLoader::loadPostRequest):
* loader/ProgressTracker.cpp:
(WebCore::ProgressTracker::finalProgressComplete):
* loader/appcache/ApplicationCacheGroup.cpp:
(WebCore::ApplicationCacheGroup::disassociateDocumentLoader):
(WebCore::ApplicationCacheGroup::didFinishLoading):
(WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
* loader/appcache/ApplicationCacheStorage.cpp:
(WebCore::ApplicationCacheStorage::loadCacheGroup):
(WebCore::ApplicationCacheStorage::cacheGroupForURL):
(WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL):
(WebCore::ApplicationCacheStorage::loadCache):
* loader/archive/ArchiveResourceCollection.cpp:
(WebCore::ArchiveResourceCollection::popSubframeArchive):
* loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::extract):
(WebCore::LegacyWebArchive::create):
(WebCore::LegacyWebArchive::createFromSelection):
* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::createImage):
* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::setIconDataForIconURL):
(WebCore::IconDatabase::getOrCreateIconRecord):
(WebCore::IconDatabase::readFromDatabase):
(WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
* page/DOMWindow.cpp:
(WebCore::DOMWindow::sessionStorage):
(WebCore::DOMWindow::localStorage):
* page/EventHandler.cpp:
(WebCore::EventHandler::updateDragAndDrop):
* page/animation/CompositeAnimation.cpp:
(WebCore::CompositeAnimation::updateTransitions):
* page/csp/ContentSecurityPolicy.cpp:
(WebCore::ContentSecurityPolicy::reportViolation):
* page/mac/ServicesOverlayController.mm:
(WebCore::ServicesOverlayController::createOverlayIfNeeded):
(WebCore::ServicesOverlayController::determineActiveHighlight):
* page/scrolling/AsyncScrollingCoordinator.h:
(WebCore::AsyncScrollingCoordinator::releaseScrollingTree):
* page/scrolling/ScrollingStateNode.cpp:
(WebCore::ScrollingStateNode::cloneAndReset):
* page/scrolling/ScrollingStateTree.cpp:
(WebCore::ScrollingStateTree::attachNode):
* platform/audio/HRTFElevation.cpp:
(WebCore::getConcatenatedImpulseResponsesForSubject):
* platform/graphics/DisplayRefreshMonitorManager.cpp:
(WebCore::DisplayRefreshMonitorManager::createMonitorForClient):
* platform/graphics/FontCascadeFonts.cpp:
(WebCore::FontCascadeFonts::glyphDataForSystemFallback):
* platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
(WebCore::InbandTextTrackPrivateAVF::processAttributedStrings):
* platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm:
(WebCore::MediaSelectionGroupAVFObjC::updateOptions):
* platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
(WebCore::SourceBufferPrivateAVFObjC::processCodedFrame):
* platform/graphics/ca/GraphicsLayerCA.cpp:
* platform/graphics/ca/PlatformCALayer.cpp:
(WebCore::PlatformCALayer::createCompatibleLayerOrTakeFromPool):
* platform/graphics/cg/ImageBufferDataCG.cpp:
(WebCore::ImageBufferData::getData):
* platform/graphics/filters/FilterEffect.cpp:
(WebCore::FilterEffect::asUnmultipliedImage):
(WebCore::FilterEffect::asPremultipliedImage):
* platform/graphics/mac/ImageMac.mm:
(WebCore::Image::loadPlatformResource):
* platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
(WebCore::GraphicsContext3D::createForCurrentGLContext):
(WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
* platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp:
(WebCore::RealtimeMediaSourceCenterMac::createMediaStream):
* platform/mock/MockRealtimeMediaSourceCenter.cpp:
(WebCore::MockRealtimeMediaSourceCenter::validateRequestConstraints):
(WebCore::MockRealtimeMediaSourceCenter::createMediaStream):
* platform/network/BlobRegistryImpl.cpp:
(WebCore::BlobRegistryImpl::registerBlobURL):
(WebCore::BlobRegistryImpl::registerBlobURLForSlice):
* platform/network/ResourceHandle.cpp:
(WebCore::ResourceHandle::create):
* platform/network/cf/FormDataStreamCFNet.cpp:
(WebCore::formCreate):
* platform/text/BidiContext.cpp:
(WebCore::BidiContext::copyStackRemovingUnicodeEmbeddingContexts):
* rendering/FilterEffectRenderer.cpp:
(WebCore::FilterEffectRenderer::build):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::createScrollbar):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::createScrollbar):
* rendering/RenderMenuList.cpp:
(RenderMenuList::createScrollbar):
* rendering/RenderSearchField.cpp:
(WebCore::RenderSearchField::createScrollbar):
* replay/ReplayController.cpp:
(WebCore::ReplayController::unloadSegment):
* svg/SVGFEDiffuseLightingElement.cpp:
(WebCore::SVGFEDiffuseLightingElement::build):
* svg/SVGFESpecularLightingElement.cpp:
(WebCore::SVGFESpecularLightingElement::build):
* svg/properties/SVGListProperty.h:
(WebCore::SVGListProperty::getItemValuesAndWrappers):
(WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers):
(WebCore::SVGListProperty::removeItemValuesAndWrappers):
* workers/WorkerThread.cpp:
(WebCore::WorkerThread::workerThread):
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::internalAbort):
* xml/XPathStep.cpp:
(WebCore::XPath::Step::nodesInAxis):
Source/WebKit:
* Storage/StorageAreaImpl.cpp:
(WebCore::StorageAreaImpl::setItem):
(WebCore::StorageAreaImpl::removeItem):
Source/WebKit/mac:
* Plugins/Hosted/NetscapePluginHostManager.mm:
(WebKit::NetscapePluginHostManager::instantiatePlugin):
* Plugins/Hosted/NetscapePluginInstanceProxy.mm:
(WebKit::NetscapePluginInstanceProxy::create):
(WebKit::NetscapePluginInstanceProxy::loadRequest):
(WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
* WebCoreSupport/WebFrameLoaderClient.mm:
(-[WebFramePolicyListener receivedPolicyDecision:]):
* WebCoreSupport/WebSecurityOrigin.mm:
(-[WebSecurityOrigin initWithURL:]):
* WebView/WebArchive.mm:
(-[WebArchive initWithMainResource:subresources:subframeArchives:]):
(-[WebArchive initWithData:]):
* WebView/WebDataSource.mm:
(-[WebDataSource mainResource]):
* WebView/WebFrame.mm:
(-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
Source/WebKit2:
* DatabaseProcess/DatabaseProcess.cpp:
(WebKit::DatabaseProcess::createDatabaseToWebProcessConnection):
* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
* NetworkProcess/NetworkResourceLoadParameters.cpp:
(WebKit::NetworkResourceLoadParameters::decode):
* NetworkProcess/cache/NetworkCacheEntry.cpp:
(WebKit::NetworkCache::Entry::initializeShareableResourceHandleFromStorageRecord):
* Platform/mac/SharedMemoryMac.cpp:
(WebKit::SharedMemory::allocate):
(WebKit::SharedMemory::create):
(WebKit::SharedMemory::map):
* PluginProcess/PluginProcess.cpp:
(WebKit::PluginProcess::createWebProcessConnection):
* Shared/API/Cocoa/WKRemoteObjectCoder.mm:
(encodeToObjectStream):
* Shared/API/c/WKImage.cpp:
(WKImageCreate):
* Shared/API/c/WKNumber.cpp:
(WKBooleanCreate):
(WKDoubleCreate):
(WKUInt64Create):
* Shared/API/c/WKSecurityOriginRef.cpp:
(WKSecurityOriginCreate):
* Shared/API/c/WKSerializedScriptValue.cpp:
(WKSerializedScriptValueCreate):
(WKSerializedScriptValueCreateWithInternalRepresentation):
* Shared/API/c/cairo/WKImageCairo.cpp:
(WKImageCreateFromCairoSurface):
* Shared/API/c/cg/WKImageCG.cpp:
(WKImageCreateFromCGImage):
* Shared/API/c/mac/WKCertificateInfoMac.mm:
(WKCertificateInfoCreateWithCertficateChain):
* Shared/API/c/mac/WKObjCTypeWrapperRef.mm:
(WKObjCTypeWrapperCreate):
* Shared/API/c/mac/WKWebArchive.cpp:
(WKWebArchiveCreate):
(WKWebArchiveCreateWithData):
(WKWebArchiveCreateFromRange):
(WKWebArchiveCopyMainResource):
(WKWebArchiveCopySubresources):
(WKWebArchiveCopySubframeArchives):
* Shared/API/c/mac/WKWebArchiveResource.cpp:
(WKWebArchiveResourceCreate):
* Shared/APIWebArchive.mm:
(API::WebArchive::WebArchive):
* Shared/Plugins/Netscape/NetscapePluginModule.cpp:
(WebKit::NetscapePluginModule::getOrCreate):
* Shared/ShareableBitmap.cpp:
(WebKit::ShareableBitmap::create):
* Shared/ShareableResource.cpp:
(WebKit::ShareableResource::map):
* Shared/gtk/ArgumentCodersGtk.cpp:
(IPC::ArgumentCoder<DragData>::decode):
* UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
(WKViewCreate):
* UIProcess/API/C/WKBatteryStatus.cpp:
(WKBatteryStatusCreate):
* UIProcess/API/C/WKGeolocationPosition.cpp:
(WKGeolocationPositionCreate_b):
* UIProcess/API/C/WKGrammarDetail.cpp:
(WKGrammarDetailCreate):
* UIProcess/API/C/WKPage.cpp:
(WKPageCopySessionState):
* UIProcess/API/C/WKPageGroup.cpp:
(WKPageGroupCreateWithIdentifier):
* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesCreate):
(WKPreferencesCreateWithIdentifier):
(WKPreferencesCreateCopy):
* UIProcess/API/C/WKSessionRef.cpp:
(WKSessionCreate):
* UIProcess/API/C/WKSessionStateRef.cpp:
(WKSessionStateCopyData):
* UIProcess/API/C/mac/WKContextPrivateMac.mm:
(WKContextCopyPlugInInfoForBundleIdentifier):
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView loadRequest:]):
(-[WKWebView loadFileURL:allowingReadAccessToURL:]):
(-[WKWebView loadData:MIMEType:characterEncodingName:baseURL:]):
(-[WKWebView goToBackForwardListItem:]):
(-[WKWebView goBack]):
(-[WKWebView goForward]):
(-[WKWebView reload]):
(-[WKWebView reloadFromOrigin]):
(-[WKWebView _loadData:MIMEType:characterEncodingName:baseURL:userData:]):
(-[WKWebView _reloadWithoutContentBlockers]):
(-[WKWebView _sessionStateData]):
(-[WKWebView _restoreSessionState:andNavigate:]):
* UIProcess/API/efl/ewk_database_manager.cpp:
(EwkDatabaseManager::createOriginList):
* UIProcess/API/efl/ewk_storage_manager.cpp:
(EwkStorageManager::createOriginList):
* UIProcess/API/gtk/WebKitWebView.cpp:
(webkitWebViewCreateNewPage):
(webkitWebViewPrintFrame):
(getContentsAsMHTMLDataCallback):
* UIProcess/Cocoa/SessionStateCoding.mm:
(WebKit::encodeSessionState):
* UIProcess/GenericCallback.h:
(WebKit::CallbackMap::take):
* UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
(WebKit::GeolocationPermissionRequestManagerProxy::createRequest):
* UIProcess/Network/NetworkProcessProxy.cpp:
(WebKit::NetworkProcessProxy::didReceiveAuthenticationChallenge):
* UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:
(WebKit::NotificationPermissionRequestManagerProxy::createRequest):
* UIProcess/Plugins/PluginProcessManager.cpp:
(WebKit::PluginProcessManager::getOrCreatePluginProcess):
* UIProcess/Storage/StorageManager.cpp:
(WebKit::StorageManager::StorageArea::setItem):
(WebKit::StorageManager::StorageArea::removeItem):
(WebKit::StorageManager::createLocalStorageMap):
* UIProcess/WebBackForwardList.cpp:
(WebKit::WebBackForwardList::addItem):
(WebKit::WebBackForwardList::clear):
* UIProcess/WebCookieManagerProxy.cpp:
(WebKit::WebCookieManagerProxy::getHostnamesWithCookies):
(WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::installViewStateChangeCompletionHandler):
* UIProcess/WebPreferences.cpp:
(WebKit::WebPreferences::createWithLegacyDefaults):
(WebKit::WebPreferences::copy):
* UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::~WebProcessPool):
* UIProcess/mac/ViewSnapshotStore.mm:
(WebKit::ViewSnapshotStore::recordSnapshot):
* UIProcess/mac/WKImmediateActionController.mm:
(-[WKImmediateActionController _webHitTestResult]):
* UIProcess/mac/WKPrintingView.mm:
(-[WKPrintingView _askPageToComputePageRects]):
* UIProcess/mac/WebPageProxyMac.mm:
(WebKit::WebPageProxy::setDragImage):
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
(-[WKWebProcessPlugInFrame hitTest:]):
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm:
(-[WKWebProcessPlugInHitTestResult nodeHandle]):
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
(+[WKWebProcessPlugInNodeHandle nodeHandleWithJSValue:inContext:]):
(-[WKWebProcessPlugInNodeHandle htmlIFrameElementContentFrame]):
* WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm:
(+[WKWebProcessPlugInScriptWorld world]):
* WebProcess/InjectedBundle/API/c/WKBundle.cpp:
(WKBundlePostSynchronousMessage):
* WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp:
(WKBundleDOMWindowExtensionCreate):
* WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
(WKBundleHitTestResultCopyNodeHandle):
(WKBundleHitTestResultCopyURLElementHandle):
* WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp:
(WKBundleNavigationActionCopyHitTestResult):
(WKBundleNavigationActionCopyFormElement):
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
(WKBundleNodeHandleCreate):
(WKBundleNodeHandleCopyDocument):
(WKBundleNodeHandleCopySnapshotWithOptions):
(WKBundleNodeHandleCopyVisibleRange):
(WKBundleNodeHandleCopyHTMLTableCellElementCellAbove):
(WKBundleNodeHandleCopyDocumentFrame):
(WKBundleNodeHandleCopyHTMLFrameElementContentFrame):
(WKBundleNodeHandleCopyHTMLIFrameElementContentFrame):
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageCreateSnapshotWithOptions):
(WKBundlePageCreateSnapshotInViewCoordinates):
(WKBundlePageCreateSnapshotInDocumentCoordinates):
(WKBundlePageCreateScaledSnapshotInDocumentCoordinates):
(WKBundlePagePostSynchronousMessageForTesting):
* WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
(WKBundleRangeHandleCreate):
(WKBundleRangeHandleCopySnapshotWithOptions):
* WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
(WKBundleScriptWorldCreateWorld):
* WebProcess/InjectedBundle/API/mac/WKDOMNode.mm:
(-[WKDOMNode _copyBundleNodeHandleRef]):
* WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
(-[WKDOMRange _copyBundleRangeHandleRef]):
* WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp:
(WebKit::InjectedBundleCSSStyleDeclarationHandle::getOrCreate):
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::imageForRect):
(WebKit::InjectedBundleNodeHandle::renderedImage):
* WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
(WebKit::InjectedBundleRangeHandle::getOrCreate):
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::create):
* WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
(WebKit::NetscapePlugin::loadURL):
* WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
(WebKit::PDFPlugin::createScrollbar):
* WebProcess/Storage/StorageAreaMap.cpp:
(WebKit::StorageAreaMap::applyChange):
* WebProcess/WebCoreSupport/SessionStateConversion.cpp:
(WebKit::toFormData):
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::createPlugin):
(WebKit::WebFrameLoaderClient::recreatePlugin):
(WebKit::WebFrameLoaderClient::createJavaAppletWidget):
(WebKit::WebFrameLoaderClient::createNetworkingContext):
* WebProcess/WebCoreSupport/WebInspectorClient.cpp:
(WebKit::WebInspectorClient::highlight):
* WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
(WebKit::convertImageToBitmap):
* WebProcess/WebPage/FindController.cpp:
(WebKit::FindController::updateFindUIAfterPageScroll):
* WebProcess/WebPage/VisitedLinkTableController.cpp:
(WebKit::VisitedLinkTableController::getOrCreate):
(WebKit::VisitedLinkTableController::setVisitedLinkTable):
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::createWithCoreMainFrame):
(WebKit::WebFrame::createSubframe):
(WebKit::WebFrame::create):
(WebKit::WebFrame::createSelectionSnapshot):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::createPlugin):
(WebKit::WebPage::snapshotAtSize):
(WebKit::WebPage::snapshotNode):
(WebKit::WebPage::willPerformLoadDragDestinationAction):
(WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad):
(WebKit::WebPage::SandboxExtensionTracker::didCommitProvisionalLoad):
(WebKit::WebPage::drawRectToImage):
* WebProcess/WebPage/WebPageGroupProxy.cpp:
(WebKit::WebPageGroupProxy::create):
* WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
(WebKit::PlatformCAAnimationRemote::Properties::decode):
* WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
(WebKit::PlatformCALayerRemote::create):
(WebKit::PlatformCALayerRemote::clone):
* WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:
(WebKit::PlatformCALayerRemoteCustom::create):
(WebKit::PlatformCALayerRemoteCustom::clone):
* WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
(WebKit::RemoteLayerTreeDrawingArea::createDisplayRefreshMonitor):
Tools:
* DumpRenderTree/mac/PixelDumpSupportMac.mm:
(createBitmapContextFromWebView):
(createPagedBitmapContext):
* DumpRenderTree/mac/TestRunnerMac.mm:
(TestRunner::setMockGeolocationPosition):
* TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WTF/HashMap.cpp:
(TestWebKitAPI::TEST):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreAPIJSObjectRefcpp">trunk/Source/JavaScriptCore/API/JSObjectRef.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreAPIJSScriptRefcpp">trunk/Source/JavaScriptCore/API/JSScriptRef.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreAPIJSValueRefcpp">trunk/Source/JavaScriptCore/API/JSValueRef.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCorebytecompilerStaticPropertyAnalyzerh">trunk/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalyzer.h</a></li>
<li><a href="#trunkSourceJavaScriptCoredebuggerDebuggerCallFramecpp">trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoredfgDFGJITCompilercpp">trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorInspectorValuescpp">trunk/Source/JavaScriptCore/inspector/InspectorValues.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorAgentcpp">trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectoragentsInspectorDebuggerAgentcpp">trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreinspectorremoteRemoteInspectormm">trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm</a></li>
<li><a href="#trunkSourceJavaScriptCorejitRepatchcpp">trunk/Source/JavaScriptCore/jit/Repatch.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeGenericTypedArrayViewInlinesh">trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSArrayBufferConstructorcpp">trunk/Source/JavaScriptCore/runtime/JSArrayBufferConstructor.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimePropertyNameArrayh">trunk/Source/JavaScriptCore/runtime/PropertyNameArray.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeStructurecpp">trunk/Source/JavaScriptCore/runtime/Structure.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeTypeSetcpp">trunk/Source/JavaScriptCore/runtime/TypeSet.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoretoolsFunctionOverridescpp">trunk/Source/JavaScriptCore/tools/FunctionOverrides.cpp</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesmediasourceSourceBuffercpp">trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp</a></li>
<li><a href="#trunkSourceWebCoreModulesmediastreamUserMediaRequestcpp">trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp</a></li>
<li><a href="#trunkSourceWebCoreModuleswebdatabaseSQLCallbackWrapperh">trunk/Source/WebCore/Modules/webdatabase/SQLCallbackWrapper.h</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSDOMWindowCustomcpp">trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSHistoryCustomcpp">trunk/Source/WebCore/bindings/js/JSHistoryCustom.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsjsJSMessagePortCustomh">trunk/Source/WebCore/bindings/js/JSMessagePortCustom.h</a></li>
<li><a href="#trunkSourceWebCorebindingsjsScriptControllerMacmm">trunk/Source/WebCore/bindings/js/ScriptControllerMac.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsjsSerializedScriptValuecpp">trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssSVGCSSParsercpp">trunk/Source/WebCore/css/SVGCSSParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleBuilderConverterh">trunk/Source/WebCore/css/StyleBuilderConverter.h</a></li>
<li><a href="#trunkSourceWebCorecssStylePropertiescpp">trunk/Source/WebCore/css/StyleProperties.cpp</a></li>
<li><a href="#trunkSourceWebCorecssStyleResolvercpp">trunk/Source/WebCore/css/StyleResolver.cpp</a></li>
<li><a href="#trunkSourceWebCoredomInlineStyleSheetOwnercpp">trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingApplyStyleCommandcpp">trunk/Source/WebCore/editing/ApplyStyleCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingCompositeEditCommandcpp">trunk/Source/WebCore/editing/CompositeEditCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingCreateLinkCommandcpp">trunk/Source/WebCore/editing/CreateLinkCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingEditingStylecpp">trunk/Source/WebCore/editing/EditingStyle.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorcpp">trunk/Source/WebCore/editing/Editor.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingEditorCommandcpp">trunk/Source/WebCore/editing/EditorCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingInsertTextCommandcpp">trunk/Source/WebCore/editing/InsertTextCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingRemoveNodePreservingChildrenCommandcpp">trunk/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp</a></li>
<li><a href="#trunkSourceWebCoreeditingReplaceSelectionCommandcpp">trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlFTPDirectoryDocumentcpp">trunk/Source/WebCore/html/FTPDirectoryDocument.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFontElementcpp">trunk/Source/WebCore/html/HTMLFontElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLFormElementcpp">trunk/Source/WebCore/html/HTMLFormElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTableElementcpp">trunk/Source/WebCore/html/HTMLTableElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLDocumentParsercpp">trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackInbandDataTextTrackcpp">trunk/Source/WebCore/html/track/InbandDataTextTrack.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackInbandGenericTextTrackcpp">trunk/Source/WebCore/html/track/InbandGenericTextTrack.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackInbandWebVTTTextTrackcpp">trunk/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTextTrackCueListcpp">trunk/Source/WebCore/html/track/TextTrackCueList.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorCSSAgentcpp">trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorDOMAgentcpp">trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorIndexedDBAgentcpp">trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorNetworkAgentcpp">trunk/Source/WebCore/inspector/InspectorNetworkAgent.cpp</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorStyleSheetcpp">trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderFormSubmissioncpp">trunk/Source/WebCore/loader/FormSubmission.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderFrameLoadercpp">trunk/Source/WebCore/loader/FrameLoader.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderProgressTrackercpp">trunk/Source/WebCore/loader/ProgressTracker.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderappcacheApplicationCacheGroupcpp">trunk/Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderappcacheApplicationCacheStoragecpp">trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderarchiveArchiveResourceCollectioncpp">trunk/Source/WebCore/loader/archive/ArchiveResourceCollection.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderarchivecfLegacyWebArchivecpp">trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedImagecpp">trunk/Source/WebCore/loader/cache/CachedImage.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadericonIconDatabasecpp">trunk/Source/WebCore/loader/icon/IconDatabase.cpp</a></li>
<li><a href="#trunkSourceWebCorepageDOMWindowcpp">trunk/Source/WebCore/page/DOMWindow.cpp</a></li>
<li><a href="#trunkSourceWebCorepageEventHandlercpp">trunk/Source/WebCore/page/EventHandler.cpp</a></li>
<li><a href="#trunkSourceWebCorepageanimationCompositeAnimationcpp">trunk/Source/WebCore/page/animation/CompositeAnimation.cpp</a></li>
<li><a href="#trunkSourceWebCorepagecspContentSecurityPolicycpp">trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp</a></li>
<li><a href="#trunkSourceWebCorepagemacServicesOverlayControllermm">trunk/Source/WebCore/page/mac/ServicesOverlayController.mm</a></li>
<li><a href="#trunkSourceWebCorepagescrollingAsyncScrollingCoordinatorh">trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.h</a></li>
<li><a href="#trunkSourceWebCorepagescrollingScrollingStateNodecpp">trunk/Source/WebCore/page/scrolling/ScrollingStateNode.cpp</a></li>
<li><a href="#trunkSourceWebCorepagescrollingScrollingStateTreecpp">trunk/Source/WebCore/page/scrolling/ScrollingStateTree.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioHRTFElevationcpp">trunk/Source/WebCore/platform/audio/HRTFElevation.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsDisplayRefreshMonitorManagercpp">trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitorManager.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsFontCascadeFontscpp">trunk/Source/WebCore/platform/graphics/FontCascadeFonts.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationInbandTextTrackPrivateAVFcpp">trunk/Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationMediaSelectionGroupAVFObjCmm">trunk/Source/WebCore/platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationobjcSourceBufferPrivateAVFObjCmm">trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp">trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscaPlatformCALayercpp">trunk/Source/WebCore/platform/graphics/ca/PlatformCALayer.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscgImageBufferDataCGcpp">trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFilterEffectcpp">trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsmacImageMacmm">trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsopenglGraphicsContext3DOpenGLCommoncpp">trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreammacRealtimeMediaSourceCenterMaccpp">trunk/Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmockMockRealtimeMediaSourceCentercpp">trunk/Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkBlobRegistryImplcpp">trunk/Source/WebCore/platform/network/BlobRegistryImpl.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkResourceHandlecpp">trunk/Source/WebCore/platform/network/ResourceHandle.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkcfFormDataStreamCFNetcpp">trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformtextBidiContextcpp">trunk/Source/WebCore/platform/text/BidiContext.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingFilterEffectRenderercpp">trunk/Source/WebCore/rendering/FilterEffectRenderer.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayercpp">trunk/Source/WebCore/rendering/RenderLayer.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderListBoxcpp">trunk/Source/WebCore/rendering/RenderListBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderMenuListcpp">trunk/Source/WebCore/rendering/RenderMenuList.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderSearchFieldcpp">trunk/Source/WebCore/rendering/RenderSearchField.cpp</a></li>
<li><a href="#trunkSourceWebCorereplayReplayControllercpp">trunk/Source/WebCore/replay/ReplayController.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGFEDiffuseLightingElementcpp">trunk/Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgSVGFESpecularLightingElementcpp">trunk/Source/WebCore/svg/SVGFESpecularLightingElement.cpp</a></li>
<li><a href="#trunkSourceWebCoresvgpropertiesSVGListPropertyh">trunk/Source/WebCore/svg/properties/SVGListProperty.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerThreadcpp">trunk/Source/WebCore/workers/WorkerThread.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXMLHttpRequestcpp">trunk/Source/WebCore/xml/XMLHttpRequest.cpp</a></li>
<li><a href="#trunkSourceWebCorexmlXPathStepcpp">trunk/Source/WebCore/xml/XPathStep.cpp</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitStorageStorageAreaImplcpp">trunk/Source/WebKit/Storage/StorageAreaImpl.cpp</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacPluginsHostedNetscapePluginHostManagermm">trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm</a></li>
<li><a href="#trunkSourceWebKitmacPluginsHostedNetscapePluginInstanceProxymm">trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebFrameLoaderClientmm">trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebCoreSupportWebSecurityOriginmm">trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebArchivemm">trunk/Source/WebKit/mac/WebView/WebArchive.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebDataSourcemm">trunk/Source/WebKit/mac/WebView/WebDataSource.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebFramemm">trunk/Source/WebKit/mac/WebView/WebFrame.mm</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2DatabaseProcessDatabaseProcesscpp">trunk/Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcessNetworkProcesscpp">trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcessNetworkResourceLoadParameterscpp">trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoadParameters.cpp</a></li>
<li><a href="#trunkSourceWebKit2NetworkProcesscacheNetworkCacheEntrycpp">trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEntry.cpp</a></li>
<li><a href="#trunkSourceWebKit2PlatformmacSharedMemoryMaccpp">trunk/Source/WebKit2/Platform/mac/SharedMemoryMac.cpp</a></li>
<li><a href="#trunkSourceWebKit2PluginProcessPluginProcesscpp">trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPICocoaWKRemoteObjectCodermm">trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKImagecpp">trunk/Source/WebKit2/Shared/API/c/WKImage.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKNumbercpp">trunk/Source/WebKit2/Shared/API/c/WKNumber.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKSecurityOriginRefcpp">trunk/Source/WebKit2/Shared/API/c/WKSecurityOriginRef.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcWKSerializedScriptValuecpp">trunk/Source/WebKit2/Shared/API/c/WKSerializedScriptValue.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIccairoWKImageCairocpp">trunk/Source/WebKit2/Shared/API/c/cairo/WKImageCairo.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIccgWKImageCGcpp">trunk/Source/WebKit2/Shared/API/c/cg/WKImageCG.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcmacWKCertificateInfoMacmm">trunk/Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcmacWKObjCTypeWrapperRefmm">trunk/Source/WebKit2/Shared/API/c/mac/WKObjCTypeWrapperRef.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcmacWKWebArchivecpp">trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchive.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIcmacWKWebArchiveResourcecpp">trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchiveResource.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedAPIWebArchivemm">trunk/Source/WebKit2/Shared/APIWebArchive.mm</a></li>
<li><a href="#trunkSourceWebKit2SharedPluginsNetscapeNetscapePluginModulecpp">trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedShareableBitmapcpp">trunk/Source/WebKit2/Shared/ShareableBitmap.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedShareableResourcecpp">trunk/Source/WebKit2/Shared/ShareableResource.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedgtkArgumentCodersGtkcpp">trunk/Source/WebKit2/Shared/gtk/ArgumentCodersGtk.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICCoordinatedGraphicsWKViewcpp">trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKBatteryStatuscpp">trunk/Source/WebKit2/UIProcess/API/C/WKBatteryStatus.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKGeolocationPositioncpp">trunk/Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKGrammarDetailcpp">trunk/Source/WebKit2/UIProcess/API/C/WKGrammarDetail.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPagecpp">trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPageGroupcpp">trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKPreferencescpp">trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKSessionRefcpp">trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICWKSessionStateRefcpp">trunk/Source/WebKit2/UIProcess/API/C/WKSessionStateRef.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMacmm">trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPICocoaWKWebViewmm">trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflewk_database_managercpp">trunk/Source/WebKit2/UIProcess/API/efl/ewk_database_manager.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIeflewk_storage_managercpp">trunk/Source/WebKit2/UIProcess/API/efl/ewk_storage_manager.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessAPIgtkWebKitWebViewcpp">trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessCocoaSessionStateCodingmm">trunk/Source/WebKit2/UIProcess/Cocoa/SessionStateCoding.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessGenericCallbackh">trunk/Source/WebKit2/UIProcess/GenericCallback.h</a></li>
<li><a href="#trunkSourceWebKit2UIProcessGeolocationPermissionRequestManagerProxycpp">trunk/Source/WebKit2/UIProcess/GeolocationPermissionRequestManagerProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessNetworkNetworkProcessProxycpp">trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessNotificationsNotificationPermissionRequestManagerProxycpp">trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessPluginsPluginProcessManagercpp">trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessStorageStorageManagercpp">trunk/Source/WebKit2/UIProcess/Storage/StorageManager.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebBackForwardListcpp">trunk/Source/WebKit2/UIProcess/WebBackForwardList.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebCookieManagerProxycpp">trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPageProxycpp">trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebPreferencescpp">trunk/Source/WebKit2/UIProcess/WebPreferences.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessWebProcessPoolcpp">trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacViewSnapshotStoremm">trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKImmediateActionControllermm">trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWKPrintingViewmm">trunk/Source/WebKit2/UIProcess/mac/WKPrintingView.mm</a></li>
<li><a href="#trunkSourceWebKit2UIProcessmacWebPageProxyMacmm">trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInFramemm">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInHitTestResultmm">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlemm">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInScriptWorldmm">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleDOMWindowExtensioncpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleHitTestResultcpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleNavigationActioncpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleNodeHandlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePagecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleRangeHandlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleScriptWorldcpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPImacWKDOMNodemm">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMNode.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleAPImacWKDOMRangemm">trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMRange.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleCSSStyleDeclarationHandlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleNodeHandlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleRangeHandlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp">trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessPluginsNetscapeNetscapePlugincpp">trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessPluginsPDFDeprecatedPDFPluginmm">trunk/Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessStorageStorageAreaMapcpp">trunk/Source/WebKit2/WebProcess/Storage/StorageAreaMap.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportSessionStateConversioncpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportWebFrameLoaderClientcpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportWebInspectorClientcpp">trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebCoreSupportmacWebDragClientMacmm">trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebDragClientMac.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageFindControllercpp">trunk/Source/WebKit2/WebProcess/WebPage/FindController.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageVisitedLinkTableControllercpp">trunk/Source/WebKit2/WebProcess/WebPage/VisitedLinkTableController.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebFramecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPagecpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPageWebPageGroupProxycpp">trunk/Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacPlatformCAAnimationRemotemm">trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacPlatformCALayerRemotecpp">trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemote.cpp</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacPlatformCALayerRemoteCustommm">trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm</a></li>
<li><a href="#trunkSourceWebKit2WebProcessWebPagemacRemoteLayerTreeDrawingAreamm">trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsDumpRenderTreemacPixelDumpSupportMacmm">trunk/Tools/DumpRenderTree/mac/PixelDumpSupportMac.mm</a></li>
<li><a href="#trunkToolsDumpRenderTreemacTestRunnerMacmm">trunk/Tools/DumpRenderTree/mac/TestRunnerMac.mm</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWTFHashCountedSetcpp">trunk/Tools/TestWebKitAPI/Tests/WTF/HashCountedSet.cpp</a></li>
<li><a href="#trunkToolsTestWebKitAPITestsWTFHashMapcpp">trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreAPIJSObjectRefcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/API/JSObjectRef.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/API/JSObjectRef.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/API/JSObjectRef.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -66,11 +66,11 @@
</span><span class="cx"> JSClassRef JSClassCreate(const JSClassDefinition* definition)
</span><span class="cx"> {
</span><span class="cx"> initializeThreading();
</span><del>- RefPtr<OpaqueJSClass> jsClass = (definition->attributes & kJSClassAttributeNoAutomaticPrototype)
</del><ins>+ auto jsClass = (definition->attributes & kJSClassAttributeNoAutomaticPrototype)
</ins><span class="cx"> ? OpaqueJSClass::createNoAutomaticPrototype(definition)
</span><span class="cx"> : OpaqueJSClass::create(definition);
</span><span class="cx">
</span><del>- return jsClass.release().leakRef();
</del><ins>+ return &jsClass.leakRef();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSClassRef JSClassRetain(JSClassRef jsClass)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreAPIJSScriptRefcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/API/JSScriptRef.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/API/JSScriptRef.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/API/JSScriptRef.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx">
</span><span class="cx"> startingLineNumber = std::max(1, startingLineNumber);
</span><span class="cx">
</span><del>- RefPtr<OpaqueJSScript> result = OpaqueJSScript::create(vm, url ? url->string() : String(), startingLineNumber, String(StringImpl::createFromLiteral(source, length)));
</del><ins>+ auto result = OpaqueJSScript::create(vm, url ? url->string() : String(), startingLineNumber, String(StringImpl::createFromLiteral(source, length)));
</ins><span class="cx">
</span><span class="cx"> ParserError error;
</span><span class="cx"> if (!parseScript(vm, SourceCode(result), error)) {
</span><span class="lines">@@ -104,7 +104,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return result.release().leakRef();
</del><ins>+ return result.leakRef();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSScriptRef JSScriptCreateFromString(JSContextGroupRef contextGroup, JSStringRef url, int startingLineNumber, JSStringRef source, JSStringRef* errorMessage, int* errorLine)
</span><span class="lines">@@ -114,7 +114,7 @@
</span><span class="cx">
</span><span class="cx"> startingLineNumber = std::max(1, startingLineNumber);
</span><span class="cx">
</span><del>- RefPtr<OpaqueJSScript> result = OpaqueJSScript::create(vm, url ? url->string() : String(), startingLineNumber, source->string());
</del><ins>+ auto result = OpaqueJSScript::create(vm, url ? url->string() : String(), startingLineNumber, source->string());
</ins><span class="cx">
</span><span class="cx"> ParserError error;
</span><span class="cx"> if (!parseScript(vm, SourceCode(result), error)) {
</span><span class="lines">@@ -125,7 +125,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return result.release().leakRef();
</del><ins>+ return result.leakRef();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void JSScriptRetain(JSScriptRef script)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreAPIJSValueRefcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/API/JSValueRef.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/API/JSValueRef.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/API/JSValueRef.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -401,10 +401,10 @@
</span><span class="cx">
</span><span class="cx"> JSValue jsValue = toJS(exec, value);
</span><span class="cx">
</span><del>- RefPtr<OpaqueJSString> stringRef(OpaqueJSString::create(jsValue.toString(exec)->value(exec)));
</del><ins>+ auto stringRef(OpaqueJSString::create(jsValue.toString(exec)->value(exec)));
</ins><span class="cx"> if (handleExceptionIfNeeded(exec, exception) == ExceptionStatus::DidThrow)
</span><span class="cx"> stringRef = nullptr;
</span><del>- return stringRef.release().leakRef();
</del><ins>+ return stringRef.leakRef();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSObjectRef JSValueToObject(JSContextRef ctx, JSValueRef value, JSValueRef* exception)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/ChangeLog        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1,3 +1,55 @@
</span><ins>+2016-06-20 Keith Rollin <krollin@apple.com>
+
+ Remove RefPtr::release() and change calls sites to use WTFMove()
+ https://bugs.webkit.org/show_bug.cgi?id=158369
+
+ Reviewed by Chris Dumez.
+
+ RefPtr::release() releases its managed pointer awkwardly. It's more
+ direct and clearer to use WTFMove to transfer ownership of the managed
+ pointer.
+
+ As part of this cleanup, also change a lot of explicit data types to
+ 'auto'.
+
+ * API/JSObjectRef.cpp:
+ (JSClassCreate):
+ * API/JSScriptRef.cpp:
+ * API/JSValueRef.cpp:
+ (JSValueToStringCopy):
+ * bytecompiler/StaticPropertyAnalyzer.h:
+ (JSC::StaticPropertyAnalyzer::newObject):
+ (JSC::StaticPropertyAnalyzer::mov):
+ * debugger/DebuggerCallFrame.cpp:
+ (JSC::DebuggerCallFrame::invalidate):
+ * dfg/DFGJITCompiler.cpp:
+ (JSC::DFG::JITCompiler::compile):
+ (JSC::DFG::JITCompiler::compileFunction):
+ * inspector/InspectorValues.cpp:
+ (Inspector::InspectorValue::parseJSON):
+ * inspector/agents/InspectorAgent.cpp:
+ (Inspector::InspectorAgent::activateExtraDomain):
+ (Inspector::InspectorAgent::activateExtraDomains):
+ * inspector/agents/InspectorDebuggerAgent.cpp:
+ (Inspector::InspectorDebuggerAgent::breakpointActionProbe):
+ * inspector/remote/RemoteInspector.mm:
+ (Inspector::RemoteInspector::receivedSetupMessage):
+ * jit/Repatch.cpp:
+ (JSC::linkPolymorphicCall):
+ * runtime/GenericTypedArrayViewInlines.h:
+ (JSC::GenericTypedArrayView<Adaptor>::create):
+ (JSC::GenericTypedArrayView<Adaptor>::createUninitialized):
+ * runtime/JSArrayBufferConstructor.cpp:
+ (JSC::constructArrayBuffer):
+ * runtime/PropertyNameArray.h:
+ (JSC::PropertyNameArray::releaseData):
+ * runtime/Structure.cpp:
+ (JSC::Structure::toStructureShape):
+ * runtime/TypeSet.cpp:
+ (JSC::StructureShape::merge):
+ * tools/FunctionOverrides.cpp:
+ (JSC::initializeOverrideInfo):
+
</ins><span class="cx"> 2016-06-20 Joseph Pecoraro <pecoraro@apple.com>
</span><span class="cx">
</span><span class="cx"> Web Inspector: console.profile should use the new Sampling Profiler
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorebytecompilerStaticPropertyAnalyzerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalyzer.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalyzer.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/bytecompiler/StaticPropertyAnalyzer.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx"> AnalysisMap::AddResult addResult = m_analyses.add(dst, analysis);
</span><span class="cx"> if (!addResult.isNewEntry) {
</span><span class="cx"> kill(addResult.iterator->value.get());
</span><del>- addResult.iterator->value = analysis.release();
</del><ins>+ addResult.iterator->value = WTFMove(analysis);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> AnalysisMap::AddResult addResult = m_analyses.add(dst, analysis);
</span><span class="cx"> if (!addResult.isNewEntry) {
</span><span class="cx"> kill(addResult.iterator->value.get());
</span><del>- addResult.iterator->value = analysis.release();
</del><ins>+ addResult.iterator->value = WTFMove(analysis);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoredebuggerDebuggerCallFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/debugger/DebuggerCallFrame.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx"> frame->m_scope->invalidateChain();
</span><span class="cx"> frame->m_scope.clear();
</span><span class="cx"> }
</span><del>- frame = frame->m_caller.release();
</del><ins>+ frame = WTFMove(frame->m_caller);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoredfgDFGJITCompilercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/dfg/DFGJITCompiler.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -390,7 +390,7 @@
</span><span class="cx"> disassemble(*linkBuffer);
</span><span class="cx">
</span><span class="cx"> m_graph.m_plan.finalizer = std::make_unique<JITFinalizer>(
</span><del>- m_graph.m_plan, m_jitCode.release(), WTFMove(linkBuffer));
</del><ins>+ m_graph.m_plan, WTFMove(m_jitCode), WTFMove(linkBuffer));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void JITCompiler::compileFunction()
</span><span class="lines">@@ -487,7 +487,7 @@
</span><span class="cx"> MacroAssemblerCodePtr withArityCheck = linkBuffer->locationOf(m_arityCheck);
</span><span class="cx">
</span><span class="cx"> m_graph.m_plan.finalizer = std::make_unique<JITFinalizer>(
</span><del>- m_graph.m_plan, m_jitCode.release(), WTFMove(linkBuffer), withArityCheck);
</del><ins>+ m_graph.m_plan, WTFMove(m_jitCode), WTFMove(linkBuffer), withArityCheck);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void JITCompiler::disassemble(LinkBuffer& linkBuffer)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorInspectorValuescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/InspectorValues.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/InspectorValues.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/inspector/InspectorValues.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -459,7 +459,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx"> *valueTokenEnd = tokenEnd;
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> inline bool escapeChar(UChar c, StringBuilder& dst)
</span><span class="lines">@@ -551,11 +551,11 @@
</span><span class="cx"> const UChar* start = characters;
</span><span class="cx"> const UChar* end = start + jsonInput.length();
</span><span class="cx"> const UChar* tokenEnd;
</span><del>- RefPtr<InspectorValue> result = buildValue(start, end, &tokenEnd, 0);
</del><ins>+ auto result = buildValue(start, end, &tokenEnd, 0);
</ins><span class="cx"> if (!result || tokenEnd != end)
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- output = result.release();
</del><ins>+ output = WTFMove(result);
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorAgent.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -121,7 +121,7 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- Ref<Inspector::Protocol::Array<String>> domainNames = Inspector::Protocol::Array<String>::create();
</del><ins>+ auto domainNames = Inspector::Protocol::Array<String>::create();
</ins><span class="cx"> domainNames->addItem(domainName);
</span><span class="cx"> m_frontendDispatcher->activateExtraDomains(WTFMove(domainNames));
</span><span class="cx"> }
</span><span class="lines">@@ -131,14 +131,14 @@
</span><span class="cx"> if (extraDomains.isEmpty())
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- RefPtr<Inspector::Protocol::Array<String>> domainNames = Inspector::Protocol::Array<String>::create();
</del><ins>+ auto domainNames = Inspector::Protocol::Array<String>::create();
</ins><span class="cx"> for (auto domainName : extraDomains)
</span><span class="cx"> domainNames->addItem(domainName);
</span><span class="cx">
</span><span class="cx"> if (!m_enabled)
</span><del>- m_pendingExtraDomainsData = domainNames.release();
</del><ins>+ m_pendingExtraDomainsData = WTFMove(domainNames);
</ins><span class="cx"> else
</span><del>- m_frontendDispatcher->activateExtraDomains(domainNames.release());
</del><ins>+ m_frontendDispatcher->activateExtraDomains(WTFMove(domainNames));
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectoragentsInspectorDebuggerAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -755,7 +755,7 @@
</span><span class="cx"> .setBatchId(batchId)
</span><span class="cx"> .setSampleId(sampleId)
</span><span class="cx"> .setTimestamp(m_injectedScriptManager.inspectorEnvironment().executionStopwatch()->elapsedTime())
</span><del>- .setPayload(payload.release())
</del><ins>+ .setPayload(WTFMove(payload))
</ins><span class="cx"> .release();
</span><span class="cx"> m_frontendDispatcher->didSampleProbe(WTFMove(result));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinspectorremoteRemoteInspectormm"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/inspector/remote/RemoteInspector.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -629,7 +629,7 @@
</span><span class="cx">
</span><span class="cx"> // Attempt to create a connection. This may fail if the page already has an inspector or if it disallows inspection.
</span><span class="cx"> RemoteControllableTarget* target = findResult->value;
</span><del>- RefPtr<RemoteConnectionToTarget> connectionToTarget = adoptRef(new RemoteConnectionToTarget(target, connectionIdentifier, sender));
</del><ins>+ auto connectionToTarget = adoptRef(*new RemoteConnectionToTarget(target, connectionIdentifier, sender));
</ins><span class="cx">
</span><span class="cx"> if (is<RemoteInspectionTarget>(target)) {
</span><span class="cx"> bool isAutomaticInspection = m_automaticInspectionCandidateTargetIdentifier == target->targetIdentifier();
</span><span class="lines">@@ -639,7 +639,7 @@
</span><span class="cx"> connectionToTarget->close();
</span><span class="cx"> return;
</span><span class="cx"> }
</span><del>- m_targetConnectionMap.set(targetIdentifier, connectionToTarget.release());
</del><ins>+ m_targetConnectionMap.set(targetIdentifier, WTFMove(connectionToTarget));
</ins><span class="cx"> updateHasActiveDebugSession();
</span><span class="cx"> } else if (is<RemoteAutomationTarget>(target)) {
</span><span class="cx"> if (!connectionToTarget->setup()) {
</span><span class="lines">@@ -646,7 +646,7 @@
</span><span class="cx"> connectionToTarget->close();
</span><span class="cx"> return;
</span><span class="cx"> }
</span><del>- m_targetConnectionMap.set(targetIdentifier, connectionToTarget.release());
</del><ins>+ m_targetConnectionMap.set(targetIdentifier, WTFMove(connectionToTarget));
</ins><span class="cx"> updateHasActiveDebugSession();
</span><span class="cx"> } else
</span><span class="cx"> ASSERT_NOT_REACHED();
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitRepatchcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/Repatch.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/Repatch.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/jit/Repatch.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -865,7 +865,7 @@
</span><span class="cx"> patchBuffer.link(done, callLinkInfo.hotPathOther().labelAtOffset(0));
</span><span class="cx"> patchBuffer.link(slow, CodeLocationLabel(vm->getCTIStub(linkPolymorphicCallThunkGenerator).code()));
</span><span class="cx">
</span><del>- RefPtr<PolymorphicCallStubRoutine> stubRoutine = adoptRef(new PolymorphicCallStubRoutine(
</del><ins>+ auto stubRoutine = adoptRef(*new PolymorphicCallStubRoutine(
</ins><span class="cx"> FINALIZE_CODE_FOR(
</span><span class="cx"> callerCodeBlock, patchBuffer,
</span><span class="cx"> ("Polymorphic call stub for %s, return point %p, targets %s",
</span><span class="lines">@@ -884,7 +884,7 @@
</span><span class="cx">
</span><span class="cx"> // If there had been a previous stub routine, that one will die as soon as the GC runs and sees
</span><span class="cx"> // that it's no longer on stack.
</span><del>- callLinkInfo.setStub(stubRoutine.release());
</del><ins>+ callLinkInfo.setStub(WTFMove(stubRoutine));
</ins><span class="cx">
</span><span class="cx"> // The call link info no longer has a call cache apart from the jump to the polymorphic call
</span><span class="cx"> // stub.
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeGenericTypedArrayViewInlinesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/runtime/GenericTypedArrayViewInlines.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> auto buffer = ArrayBuffer::tryCreate(length, sizeof(typename Adaptor::Type));
</span><span class="cx"> if (!buffer)
</span><span class="cx"> return nullptr;
</span><del>- return create(buffer.release(), 0, length);
</del><ins>+ return create(WTFMove(buffer), 0, length);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> template<typename Adaptor>
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return adoptRef(new GenericTypedArrayView(buffer.release(), byteOffset, length));
</del><ins>+ return adoptRef(new GenericTypedArrayView(WTFMove(buffer), byteOffset, length));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> template<typename Adaptor>
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx"> ArrayBuffer::tryCreateUninitialized(length, sizeof(typename Adaptor::Type));
</span><span class="cx"> if (!buffer)
</span><span class="cx"> return nullptr;
</span><del>- return create(buffer.release(), 0, length);
</del><ins>+ return create(WTFMove(buffer), 0, length);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> template<typename Adaptor>
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSArrayBufferConstructorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSArrayBufferConstructor.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSArrayBufferConstructor.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/runtime/JSArrayBufferConstructor.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx"> Structure* arrayBufferStructure = InternalFunction::createSubclassStructure(exec, exec->newTarget(), constructor->globalObject()->arrayBufferStructure());
</span><span class="cx"> if (exec->hadException())
</span><span class="cx"> return JSValue::encode(JSValue());
</span><del>- JSArrayBuffer* result = JSArrayBuffer::create(exec->vm(), arrayBufferStructure, buffer.release());
</del><ins>+ JSArrayBuffer* result = JSArrayBuffer::create(exec->vm(), arrayBufferStructure, WTFMove(buffer));
</ins><span class="cx">
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimePropertyNameArrayh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/PropertyNameArray.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/PropertyNameArray.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/runtime/PropertyNameArray.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -76,7 +76,7 @@
</span><span class="cx">
</span><span class="cx"> void setData(PassRefPtr<PropertyNameArrayData> data) { m_data = data; }
</span><span class="cx"> PropertyNameArrayData* data() { return m_data.get(); }
</span><del>- PassRefPtr<PropertyNameArrayData> releaseData() { return m_data.release(); }
</del><ins>+ PassRefPtr<PropertyNameArrayData> releaseData() { return WTFMove(m_data); }
</ins><span class="cx">
</span><span class="cx"> // FIXME: Remove these functions.
</span><span class="cx"> bool canAddKnownUniqueForStructure() const { return m_data->propertyNameVector().isEmpty(); }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeStructurecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/Structure.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/Structure.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/runtime/Structure.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1197,9 +1197,9 @@
</span><span class="cx"> curShape->markAsFinal();
</span><span class="cx">
</span><span class="cx"> if (curStructure->storedPrototypeStructure()) {
</span><del>- RefPtr<StructureShape> newShape = StructureShape::create();
- curShape->setProto(newShape);
- curShape = newShape.release();
</del><ins>+ auto newShape = StructureShape::create();
+ curShape->setProto(newShape.ptr());
+ curShape = WTFMove(newShape);
</ins><span class="cx"> curValue = curStructure->storedPrototype();
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1206,7 +1206,7 @@
</span><span class="cx"> curStructure = curStructure->storedPrototypeStructure();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return baseShape.release();
</del><ins>+ return WTFMove(baseShape);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool Structure::canUseForAllocationsOf(Structure* other)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeTypeSetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/TypeSet.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/TypeSet.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/runtime/TypeSet.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -548,7 +548,7 @@
</span><span class="cx"> RefPtr<StructureShape> b = prpB;
</span><span class="cx"> ASSERT(a->hasSamePrototypeChain(b));
</span><span class="cx">
</span><del>- RefPtr<StructureShape> merged = StructureShape::create();
</del><ins>+ auto merged = StructureShape::create();
</ins><span class="cx"> for (auto field : a->m_fields) {
</span><span class="cx"> if (b->m_fields.contains(field))
</span><span class="cx"> merged->m_fields.add(field);
</span><span class="lines">@@ -578,7 +578,7 @@
</span><span class="cx">
</span><span class="cx"> merged->markAsFinal();
</span><span class="cx">
</span><del>- return merged.release();
</del><ins>+ return WTFMove(merged);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void StructureShape::enterDictionaryMode()
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoretoolsFunctionOverridescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/tools/FunctionOverrides.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/tools/FunctionOverrides.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/JavaScriptCore/tools/FunctionOverrides.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -116,7 +116,7 @@
</span><span class="cx"> newProviderStr.append(origHeader);
</span><span class="cx"> newProviderStr.append(newBody);
</span><span class="cx">
</span><del>- RefPtr<SourceProvider> newProvider = StringSourceProvider::create(newProviderStr, "<overridden>");
</del><ins>+ auto newProvider = StringSourceProvider::create(newProviderStr, "<overridden>");
</ins><span class="cx">
</span><span class="cx"> info.firstLine = 1;
</span><span class="cx"> info.lineCount = 1; // Faking it. This doesn't really matter for now.
</span><span class="lines">@@ -127,7 +127,7 @@
</span><span class="cx"> info.typeProfilingEndOffset = newProviderStr.length() - 1;
</span><span class="cx">
</span><span class="cx"> info.sourceCode =
</span><del>- SourceCode(newProvider.release(), info.typeProfilingStartOffset, info.typeProfilingEndOffset + 1, 1, 1);
</del><ins>+ SourceCode(WTFMove(newProvider), info.typeProfilingStartOffset, info.typeProfilingEndOffset + 1, 1, 1);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool FunctionOverrides::initializeOverrideFor(const SourceCode& origCode, FunctionOverrides::OverrideInfo& result)
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/ChangeLog        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1,3 +1,218 @@
</span><ins>+2016-06-20 Keith Rollin <krollin@apple.com>
+
+ Remove RefPtr::release() and change calls sites to use WTFMove()
+ https://bugs.webkit.org/show_bug.cgi?id=158369
+
+ Reviewed by Chris Dumez.
+
+ RefPtr::release() releases its managed pointer awkwardly. It's more
+ direct and clearer to use WTFMove to transfer ownership of the managed
+ pointer.
+
+ As part of this cleanup, also change a lot of explicit data types to
+ 'auto'.
+
+ No new tests: there's no new functionality, just a refactoring of
+ existing code.
+
+ * Modules/mediasource/SourceBuffer.cpp:
+ (WebCore::removeSamplesFromTrackBuffer):
+ (WebCore::SourceBuffer::provideMediaData):
+ * Modules/mediastream/UserMediaRequest.cpp:
+ (WebCore::UserMediaRequest::start):
+ * Modules/webdatabase/SQLCallbackWrapper.h:
+ (WebCore::SQLCallbackWrapper::clear):
+ * bindings/js/JSDOMWindowCustom.cpp:
+ (WebCore::handlePostMessage):
+ * bindings/js/JSHistoryCustom.cpp:
+ (WebCore::JSHistory::pushState):
+ (WebCore::JSHistory::replaceState):
+ * bindings/js/JSMessagePortCustom.h:
+ (WebCore::handlePostMessage):
+ * bindings/js/ScriptControllerMac.mm:
+ (WebCore::ScriptController::createScriptInstanceForWidget):
+ * bindings/js/SerializedScriptValue.cpp:
+ (WebCore::CloneDeserializer::readTerminal):
+ * css/CSSComputedStyleDeclaration.cpp:
+ (WebCore::ComputedStyleExtractor::copyPropertiesInSet):
+ * css/SVGCSSParser.cpp:
+ (WebCore::CSSParser::parseSVGValue):
+ * css/StyleBuilderConverter.h:
+ (WebCore::StyleBuilderConverter::convertShapeValue):
+ * css/StyleProperties.cpp:
+ (WebCore::StyleProperties::copyPropertiesInSet):
+ * css/StyleResolver.cpp:
+ (WebCore::StyleResolver::loadPendingImages):
+ * dom/InlineStyleSheetOwner.cpp:
+ (WebCore::InlineStyleSheetOwner::clearSheet):
+ * editing/ApplyStyleCommand.cpp:
+ (WebCore::ApplyStyleCommand::applyInlineStyleToNodeRange):
+ * editing/CompositeEditCommand.cpp:
+ (WebCore::CompositeEditCommand::removeChildrenInRange):
+ (WebCore::CompositeEditCommand::removeNodeAndPruneAncestors):
+ (WebCore::CompositeEditCommand::prune):
+ (WebCore::CompositeEditCommand::replaceSelectedTextInNode):
+ (WebCore::CompositeEditCommand::rebalanceWhitespaceOnTextSubstring):
+ * editing/CreateLinkCommand.cpp:
+ (WebCore::CreateLinkCommand::doApply):
+ * editing/EditingStyle.cpp:
+ (WebCore::EditingStyle::mergeStyle):
+ (WebCore::EditingStyle::mergeStyleFromRulesForSerialization):
+ * editing/Editor.cpp:
+ (WebCore::ClearTextCommand::CreateAndApply):
+ (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges):
+ * editing/EditorCommand.cpp:
+ (WebCore::executeInsertNode):
+ * editing/InsertTextCommand.cpp:
+ (WebCore::InsertTextCommand::performOverwrite):
+ (WebCore::InsertTextCommand::insertTab):
+ * editing/RemoveNodePreservingChildrenCommand.cpp:
+ (WebCore::RemoveNodePreservingChildrenCommand::doApply):
+ * editing/ReplaceSelectionCommand.cpp:
+ (WebCore::ReplacementFragment::removeNodePreservingChildren):
+ (WebCore::ReplaceSelectionCommand::moveNodeOutOfAncestor):
+ * html/FTPDirectoryDocument.cpp:
+ (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
+ * html/HTMLFontElement.cpp:
+ (WebCore::HTMLFontElement::collectStyleForPresentationAttribute):
+ * html/HTMLFormElement.cpp:
+ (WebCore::HTMLFormElement::prepareForSubmission):
+ * html/HTMLTableElement.cpp:
+ (WebCore::leakBorderStyle):
+ (WebCore::leakGroupBorderStyle):
+ * html/parser/HTMLDocumentParser.cpp:
+ (WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
+ * html/track/InbandDataTextTrack.cpp:
+ (WebCore::InbandDataTextTrack::addDataCue):
+ * html/track/InbandGenericTextTrack.cpp:
+ (WebCore::InbandGenericTextTrack::newCuesParsed):
+ * html/track/InbandWebVTTTextTrack.cpp:
+ (WebCore::InbandWebVTTTextTrack::newCuesParsed):
+ * html/track/TextTrackCueList.cpp:
+ (WebCore::TextTrackCueList::add):
+ * inspector/InspectorCSSAgent.cpp:
+ (WebCore::InspectorCSSAgent::getInlineStylesForNode):
+ * inspector/InspectorDOMAgent.cpp:
+ (WebCore::InspectorDOMAgent::pushChildNodesToFrontend):
+ * inspector/InspectorIndexedDBAgent.cpp:
+ * inspector/InspectorNetworkAgent.cpp:
+ (WebCore::InspectorNetworkAgent::loadResource):
+ * inspector/InspectorStyleSheet.cpp:
+ (WebCore::InspectorStyleSheet::buildObjectForSelectorList):
+ * loader/FormSubmission.cpp:
+ (WebCore::FormSubmission::create):
+ * loader/FrameLoader.cpp:
+ (WebCore::FrameLoader::loadURLIntoChildFrame):
+ (WebCore::FrameLoader::loadURL):
+ (WebCore::FrameLoader::loadPostRequest):
+ * loader/ProgressTracker.cpp:
+ (WebCore::ProgressTracker::finalProgressComplete):
+ * loader/appcache/ApplicationCacheGroup.cpp:
+ (WebCore::ApplicationCacheGroup::disassociateDocumentLoader):
+ (WebCore::ApplicationCacheGroup::didFinishLoading):
+ (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
+ * loader/appcache/ApplicationCacheStorage.cpp:
+ (WebCore::ApplicationCacheStorage::loadCacheGroup):
+ (WebCore::ApplicationCacheStorage::cacheGroupForURL):
+ (WebCore::ApplicationCacheStorage::fallbackCacheGroupForURL):
+ (WebCore::ApplicationCacheStorage::loadCache):
+ * loader/archive/ArchiveResourceCollection.cpp:
+ (WebCore::ArchiveResourceCollection::popSubframeArchive):
+ * loader/archive/cf/LegacyWebArchive.cpp:
+ (WebCore::LegacyWebArchive::extract):
+ (WebCore::LegacyWebArchive::create):
+ (WebCore::LegacyWebArchive::createFromSelection):
+ * loader/cache/CachedImage.cpp:
+ (WebCore::CachedImage::createImage):
+ * loader/icon/IconDatabase.cpp:
+ (WebCore::IconDatabase::setIconDataForIconURL):
+ (WebCore::IconDatabase::getOrCreateIconRecord):
+ (WebCore::IconDatabase::readFromDatabase):
+ (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
+ * page/DOMWindow.cpp:
+ (WebCore::DOMWindow::sessionStorage):
+ (WebCore::DOMWindow::localStorage):
+ * page/EventHandler.cpp:
+ (WebCore::EventHandler::updateDragAndDrop):
+ * page/animation/CompositeAnimation.cpp:
+ (WebCore::CompositeAnimation::updateTransitions):
+ * page/csp/ContentSecurityPolicy.cpp:
+ (WebCore::ContentSecurityPolicy::reportViolation):
+ * page/mac/ServicesOverlayController.mm:
+ (WebCore::ServicesOverlayController::createOverlayIfNeeded):
+ (WebCore::ServicesOverlayController::determineActiveHighlight):
+ * page/scrolling/AsyncScrollingCoordinator.h:
+ (WebCore::AsyncScrollingCoordinator::releaseScrollingTree):
+ * page/scrolling/ScrollingStateNode.cpp:
+ (WebCore::ScrollingStateNode::cloneAndReset):
+ * page/scrolling/ScrollingStateTree.cpp:
+ (WebCore::ScrollingStateTree::attachNode):
+ * platform/audio/HRTFElevation.cpp:
+ (WebCore::getConcatenatedImpulseResponsesForSubject):
+ * platform/graphics/DisplayRefreshMonitorManager.cpp:
+ (WebCore::DisplayRefreshMonitorManager::createMonitorForClient):
+ * platform/graphics/FontCascadeFonts.cpp:
+ (WebCore::FontCascadeFonts::glyphDataForSystemFallback):
+ * platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp:
+ (WebCore::InbandTextTrackPrivateAVF::processAttributedStrings):
+ * platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm:
+ (WebCore::MediaSelectionGroupAVFObjC::updateOptions):
+ * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
+ (WebCore::SourceBufferPrivateAVFObjC::processCodedFrame):
+ * platform/graphics/ca/GraphicsLayerCA.cpp:
+ * platform/graphics/ca/PlatformCALayer.cpp:
+ (WebCore::PlatformCALayer::createCompatibleLayerOrTakeFromPool):
+ * platform/graphics/cg/ImageBufferDataCG.cpp:
+ (WebCore::ImageBufferData::getData):
+ * platform/graphics/filters/FilterEffect.cpp:
+ (WebCore::FilterEffect::asUnmultipliedImage):
+ (WebCore::FilterEffect::asPremultipliedImage):
+ * platform/graphics/mac/ImageMac.mm:
+ (WebCore::Image::loadPlatformResource):
+ * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:
+ (WebCore::GraphicsContext3D::createForCurrentGLContext):
+ (WebCore::GraphicsContext3D::paintRenderingResultsToImageData):
+ * platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp:
+ (WebCore::RealtimeMediaSourceCenterMac::createMediaStream):
+ * platform/mock/MockRealtimeMediaSourceCenter.cpp:
+ (WebCore::MockRealtimeMediaSourceCenter::validateRequestConstraints):
+ (WebCore::MockRealtimeMediaSourceCenter::createMediaStream):
+ * platform/network/BlobRegistryImpl.cpp:
+ (WebCore::BlobRegistryImpl::registerBlobURL):
+ (WebCore::BlobRegistryImpl::registerBlobURLForSlice):
+ * platform/network/ResourceHandle.cpp:
+ (WebCore::ResourceHandle::create):
+ * platform/network/cf/FormDataStreamCFNet.cpp:
+ (WebCore::formCreate):
+ * platform/text/BidiContext.cpp:
+ (WebCore::BidiContext::copyStackRemovingUnicodeEmbeddingContexts):
+ * rendering/FilterEffectRenderer.cpp:
+ (WebCore::FilterEffectRenderer::build):
+ * rendering/RenderLayer.cpp:
+ (WebCore::RenderLayer::createScrollbar):
+ * rendering/RenderListBox.cpp:
+ (WebCore::RenderListBox::createScrollbar):
+ * rendering/RenderMenuList.cpp:
+ (RenderMenuList::createScrollbar):
+ * rendering/RenderSearchField.cpp:
+ (WebCore::RenderSearchField::createScrollbar):
+ * replay/ReplayController.cpp:
+ (WebCore::ReplayController::unloadSegment):
+ * svg/SVGFEDiffuseLightingElement.cpp:
+ (WebCore::SVGFEDiffuseLightingElement::build):
+ * svg/SVGFESpecularLightingElement.cpp:
+ (WebCore::SVGFESpecularLightingElement::build):
+ * svg/properties/SVGListProperty.h:
+ (WebCore::SVGListProperty::getItemValuesAndWrappers):
+ (WebCore::SVGListProperty::insertItemBeforeValuesAndWrappers):
+ (WebCore::SVGListProperty::removeItemValuesAndWrappers):
+ * workers/WorkerThread.cpp:
+ (WebCore::WorkerThread::workerThread):
+ * xml/XMLHttpRequest.cpp:
+ (WebCore::XMLHttpRequest::internalAbort):
+ * xml/XPathStep.cpp:
+ (WebCore::XPath::Step::nodesInAxis):
+
</ins><span class="cx"> 2016-06-20 Eric Carlson <eric.carlson@apple.com>
</span><span class="cx">
</span><span class="cx"> Crash in PlatformMediaSession::clientWillPausePlayback
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediasourceSourceBuffercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -663,7 +663,7 @@
</span><span class="cx"> UNUSED_PARAM(buffer);
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>- RefPtr<TimeRanges> erasedRanges = TimeRanges::create();
</del><ins>+ auto erasedRanges = TimeRanges::create();
</ins><span class="cx"> MediaTime microsecond(1, 1000000);
</span><span class="cx"> for (auto sampleIt : samples) {
</span><span class="cx"> const DecodeOrderSampleMap::KeyType& decodeKey = sampleIt.first;
</span><span class="lines">@@ -698,7 +698,7 @@
</span><span class="cx"> LOG(MediaSource, "SourceBuffer::%s(%p) removed %zu bytes, start(%lf), end(%lf)", logPrefix, buffer, bytesRemoved, earliestSample, latestSample);
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>- return erasedRanges.release();
</del><ins>+ return WTFMove(erasedRanges);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void SourceBuffer::removeCodedFrames(const MediaTime& start, const MediaTime& end)
</span><span class="lines">@@ -1751,7 +1751,7 @@
</span><span class="cx"> // FIXME(rdar://problem/20635969): Remove this re-entrancy protection when the aforementioned radar is resolved; protecting
</span><span class="cx"> // against re-entrancy introduces a small inefficency when removing appended samples from the decode queue one at a time
</span><span class="cx"> // rather than when all samples have been enqueued.
</span><del>- RefPtr<MediaSample> sample = trackBuffer.decodeQueue.begin()->second;
</del><ins>+ auto sample = trackBuffer.decodeQueue.begin()->second;
</ins><span class="cx"> trackBuffer.decodeQueue.erase(trackBuffer.decodeQueue.begin());
</span><span class="cx">
</span><span class="cx"> // Do not enqueue samples spanning a significant unbuffered gap.
</span><span class="lines">@@ -1767,7 +1767,7 @@
</span><span class="cx">
</span><span class="cx"> trackBuffer.lastEnqueuedPresentationTime = sample->presentationTime();
</span><span class="cx"> trackBuffer.lastEnqueuedDecodeEndTime = sample->decodeTime() + sample->duration();
</span><del>- m_private->enqueueSample(sample.release(), trackID);
</del><ins>+ m_private->enqueueSample(WTFMove(sample), trackID);
</ins><span class="cx"> #if !LOG_DISABLED
</span><span class="cx"> ++enqueuedSamples;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediastreamUserMediaRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/Modules/mediastream/UserMediaRequest.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -80,8 +80,8 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<MediaConstraints> audioConstraints = parseOptions(options, AtomicString("audio", AtomicString::ConstructFromLiteral));
- RefPtr<MediaConstraints> videoConstraints = parseOptions(options, AtomicString("video", AtomicString::ConstructFromLiteral));
</del><ins>+ auto audioConstraints = parseOptions(options, AtomicString("audio", AtomicString::ConstructFromLiteral));
+ auto videoConstraints = parseOptions(options, AtomicString("video", AtomicString::ConstructFromLiteral));
</ins><span class="cx">
</span><span class="cx"> if (!audioConstraints && !videoConstraints) {
</span><span class="cx"> ec = NOT_SUPPORTED_ERR;
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- Ref<UserMediaRequest> request = adoptRef(*new UserMediaRequest(document, userMedia, audioConstraints.release(), videoConstraints.release(), WTFMove(promise)));
</del><ins>+ auto request = adoptRef(*new UserMediaRequest(document, userMedia, WTFMove(audioConstraints), WTFMove(videoConstraints), WTFMove(promise)));
</ins><span class="cx"> request->start();
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreModuleswebdatabaseSQLCallbackWrapperh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/webdatabase/SQLCallbackWrapper.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/webdatabase/SQLCallbackWrapper.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/Modules/webdatabase/SQLCallbackWrapper.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -68,8 +68,8 @@
</span><span class="cx"> m_scriptExecutionContext = nullptr;
</span><span class="cx"> return;
</span><span class="cx"> }
</span><del>- scriptExecutionContextPtr = m_scriptExecutionContext.release().leakRef();
- callback = m_callback.release().leakRef();
</del><ins>+ scriptExecutionContextPtr = m_scriptExecutionContext.leakRef();
+ callback = m_callback.leakRef();
</ins><span class="cx"> }
</span><span class="cx"> scriptExecutionContextPtr->postTask({
</span><span class="cx"> ScriptExecutionContext::Task::CleanupTask,
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSDOMWindowCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -539,9 +539,7 @@
</span><span class="cx"> if (state.hadException())
</span><span class="cx"> return jsUndefined();
</span><span class="cx">
</span><del>- RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(&state, state.argument(0),
- &messagePorts,
- &arrayBuffers);
</del><ins>+ auto message = SerializedScriptValue::create(&state, state.argument(0), &messagePorts, &arrayBuffers);
</ins><span class="cx">
</span><span class="cx"> if (state.hadException())
</span><span class="cx"> return jsUndefined();
</span><span class="lines">@@ -551,7 +549,7 @@
</span><span class="cx"> return jsUndefined();
</span><span class="cx">
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- impl.postMessage(message.release(), &messagePorts, targetOrigin, callerDOMWindow(&state), ec);
</del><ins>+ impl.postMessage(WTFMove(message), &messagePorts, targetOrigin, callerDOMWindow(&state), ec);
</ins><span class="cx"> setDOMException(&state, ec);
</span><span class="cx">
</span><span class="cx"> return jsUndefined();
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSHistoryCustomcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSHistoryCustom.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSHistoryCustom.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/bindings/js/JSHistoryCustom.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">
</span><span class="cx"> JSValue JSHistory::pushState(ExecState& state)
</span><span class="cx"> {
</span><del>- RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(&state, state.argument(0), 0, 0);
</del><ins>+ auto historyState = SerializedScriptValue::create(&state, state.argument(0), 0, 0);
</ins><span class="cx"> if (state.hadException())
</span><span class="cx"> return jsUndefined();
</span><span class="cx">
</span><span class="lines">@@ -71,7 +71,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ExceptionCodeWithMessage ec;
</span><del>- wrapped().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Push, ec);
</del><ins>+ wrapped().stateObjectAdded(WTFMove(historyState), title, url, History::StateObjectType::Push, ec);
</ins><span class="cx"> setDOMException(&state, ec);
</span><span class="cx">
</span><span class="cx"> m_state.clear();
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx">
</span><span class="cx"> JSValue JSHistory::replaceState(ExecState& state)
</span><span class="cx"> {
</span><del>- RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(&state, state.argument(0), 0, 0);
</del><ins>+ auto historyState = SerializedScriptValue::create(&state, state.argument(0), 0, 0);
</ins><span class="cx"> if (state.hadException())
</span><span class="cx"> return jsUndefined();
</span><span class="cx">
</span><span class="lines">@@ -97,7 +97,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ExceptionCodeWithMessage ec;
</span><del>- wrapped().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Replace, ec);
</del><ins>+ wrapped().stateObjectAdded(WTFMove(historyState), title, url, History::StateObjectType::Replace, ec);
</ins><span class="cx"> setDOMException(&state, ec);
</span><span class="cx">
</span><span class="cx"> m_state.clear();
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsJSMessagePortCustomh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/JSMessagePortCustom.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/JSMessagePortCustom.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/bindings/js/JSMessagePortCustom.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -56,12 +56,12 @@
</span><span class="cx"> MessagePortArray portArray;
</span><span class="cx"> ArrayBufferArray arrayBufferArray;
</span><span class="cx"> fillMessagePortArray(state, state.argument(1), portArray, arrayBufferArray);
</span><del>- RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(&state, state.uncheckedArgument(0), &portArray, &arrayBufferArray);
</del><ins>+ auto message = SerializedScriptValue::create(&state, state.uncheckedArgument(0), &portArray, &arrayBufferArray);
</ins><span class="cx"> if (state.hadException())
</span><span class="cx"> return JSC::jsUndefined();
</span><span class="cx">
</span><span class="cx"> ExceptionCode ec = 0;
</span><del>- impl->postMessage(message.release(), &portArray, ec);
</del><ins>+ impl->postMessage(WTFMove(message), &portArray, ec);
</ins><span class="cx"> setDOMException(&state, ec);
</span><span class="cx"> return JSC::jsUndefined();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsScriptControllerMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/ScriptControllerMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/ScriptControllerMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/bindings/js/ScriptControllerMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -66,10 +66,10 @@
</span><span class="cx"> if (!widgetView)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<RootObject> rootObject = createRootObject(widgetView);
</del><ins>+ auto rootObject = createRootObject(widgetView);
</ins><span class="cx">
</span><span class="cx"> if ([widgetView respondsToSelector:@selector(createPluginBindingsInstance:)])
</span><del>- return [widgetView createPluginBindingsInstance:rootObject.release()];
</del><ins>+ return [widgetView createPluginBindingsInstance:WTFMove(rootObject)];
</ins><span class="cx">
</span><span class="cx"> if ([widgetView respondsToSelector:@selector(objectForWebScript)]) {
</span><span class="cx"> id objectForWebScript = [widgetView objectForWebScript];
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsjsSerializedScriptValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -2354,7 +2354,7 @@
</span><span class="cx"> fail();
</span><span class="cx"> return JSValue();
</span><span class="cx"> }
</span><del>- JSValue result = JSArrayBuffer::create(m_exec->vm(), m_globalObject->arrayBufferStructure(), arrayBuffer.release());
</del><ins>+ JSValue result = JSArrayBuffer::create(m_exec->vm(), m_globalObject->arrayBufferStructure(), WTFMove(arrayBuffer));
</ins><span class="cx"> m_gcBuffer.append(result);
</span><span class="cx"> return result;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -4056,9 +4056,9 @@
</span><span class="cx"> Vector<CSSProperty, 256> list;
</span><span class="cx"> list.reserveInitialCapacity(length);
</span><span class="cx"> for (unsigned i = 0; i < length; ++i) {
</span><del>- RefPtr<CSSValue> value = propertyValue(set[i]);
</del><ins>+ auto value = propertyValue(set[i]);
</ins><span class="cx"> if (value)
</span><del>- list.append(CSSProperty(set[i], value.release(), false));
</del><ins>+ list.append(CSSProperty(set[i], WTFMove(value), false));
</ins><span class="cx"> }
</span><span class="cx"> return MutableStyleProperties::create(list.data(), list.size());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssSVGCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/SVGCSSParser.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/SVGCSSParser.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/css/SVGCSSParser.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -272,9 +272,9 @@
</span><span class="cx"> if (id == CSSValueNone)
</span><span class="cx"> valid_primitive = true;
</span><span class="cx"> else {
</span><del>- RefPtr<CSSValueList> shadowValueList = parseShadow(*m_valueList, propId);
</del><ins>+ auto shadowValueList = parseShadow(*m_valueList, propId);
</ins><span class="cx"> if (shadowValueList) {
</span><del>- addProperty(propId, shadowValueList.release(), important);
</del><ins>+ addProperty(propId, WTFMove(shadowValueList), important);
</ins><span class="cx"> m_valueList->next();
</span><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="lines">@@ -336,7 +336,7 @@
</span><span class="cx"> if (!parsedValue || (m_valueList->current() && !inShorthand()))
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- addProperty(propId, parsedValue.release(), important);
</del><ins>+ addProperty(propId, WTFMove(parsedValue), important);
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleBuilderConverterh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleBuilderConverter.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleBuilderConverter.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/css/StyleBuilderConverter.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -762,7 +762,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (shape)
</span><del>- return ShapeValue::createShapeValue(shape.release(), referenceBox);
</del><ins>+ return ShapeValue::createShapeValue(WTFMove(shape), referenceBox);
</ins><span class="cx">
</span><span class="cx"> if (referenceBox != BoxMissing)
</span><span class="cx"> return ShapeValue::createBoxShapeValue(referenceBox);
</span></span></pre></div>
<a id="trunkSourceWebCorecssStylePropertiescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleProperties.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleProperties.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/css/StyleProperties.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1313,9 +1313,9 @@
</span><span class="cx"> Vector<CSSProperty, 256> list;
</span><span class="cx"> list.reserveInitialCapacity(length);
</span><span class="cx"> for (unsigned i = 0; i < length; ++i) {
</span><del>- RefPtr<CSSValue> value = getPropertyCSSValueInternal(set[i]);
</del><ins>+ auto value = getPropertyCSSValueInternal(set[i]);
</ins><span class="cx"> if (value)
</span><del>- list.append(CSSProperty(set[i], value.release(), false));
</del><ins>+ list.append(CSSProperty(set[i], WTFMove(value), false));
</ins><span class="cx"> }
</span><span class="cx"> return MutableStyleProperties::create(list.data(), list.size());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleResolver.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleResolver.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/css/StyleResolver.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -2193,8 +2193,8 @@
</span><span class="cx"> if (is<ImageContentData>(*contentData)) {
</span><span class="cx"> auto& styleImage = downcast<ImageContentData>(*contentData).image();
</span><span class="cx"> if (is<StylePendingImage>(styleImage)) {
</span><del>- if (RefPtr<StyleImage> loadedImage = loadPendingImage(downcast<StylePendingImage>(styleImage)))
- downcast<ImageContentData>(*contentData).setImage(loadedImage.release());
</del><ins>+ if (auto loadedImage = loadPendingImage(downcast<StylePendingImage>(styleImage)))
+ downcast<ImageContentData>(*contentData).setImage(WTFMove(loadedImage));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -2228,8 +2228,8 @@
</span><span class="cx"> const NinePieceImage& maskImage = reflection->mask();
</span><span class="cx"> auto* styleImage = maskImage.image();
</span><span class="cx"> if (is<StylePendingImage>(styleImage)) {
</span><del>- RefPtr<StyleImage> loadedImage = loadPendingImage(downcast<StylePendingImage>(*styleImage));
- reflection->setMask(NinePieceImage(loadedImage.release(), maskImage.imageSlices(), maskImage.fill(), maskImage.borderSlices(), maskImage.outset(), maskImage.horizontalRule(), maskImage.verticalRule()));
</del><ins>+ auto loadedImage = loadPendingImage(downcast<StylePendingImage>(*styleImage));
+ reflection->setMask(NinePieceImage(WTFMove(loadedImage), maskImage.imageSlices(), maskImage.fill(), maskImage.borderSlices(), maskImage.outset(), maskImage.horizontalRule(), maskImage.verticalRule()));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> break;
</span></span></pre></div>
<a id="trunkSourceWebCoredomInlineStyleSheetOwnercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -109,7 +109,8 @@
</span><span class="cx"> void InlineStyleSheetOwner::clearSheet()
</span><span class="cx"> {
</span><span class="cx"> ASSERT(m_sheet);
</span><del>- m_sheet.release()->clearOwnerNode();
</del><ins>+ auto sheet = WTFMove(m_sheet);
+ sheet->clearOwnerNode();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> inline bool isValidCSSContentType(Element& element, const AtomicString& type)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingApplyStyleCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ApplyStyleCommand.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ApplyStyleCommand.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/ApplyStyleCommand.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -840,7 +840,7 @@
</span><span class="cx"> if (run.dummyElement)
</span><span class="cx"> removeNode(run.dummyElement);
</span><span class="cx"> if (run.startAndEndAreStillInDocument())
</span><del>- applyInlineStyleChange(run.start.release(), run.end.release(), run.change, AddStyledElement);
</del><ins>+ applyInlineStyleChange(WTFMove(run.start), WTFMove(run.end), run.change, AddStyledElement);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingCompositeEditCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/CompositeEditCommand.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/CompositeEditCommand.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/CompositeEditCommand.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -522,7 +522,7 @@
</span><span class="cx"> children.append(child);
</span><span class="cx">
</span><span class="cx"> for (auto& child : children)
</span><del>- removeNode(child.release());
</del><ins>+ removeNode(WTFMove(child));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CompositeEditCommand::removeNode(PassRefPtr<Node> node, ShouldAssumeContentIsAlwaysEditable shouldAssumeContentIsAlwaysEditable)
</span><span class="lines">@@ -541,7 +541,7 @@
</span><span class="cx"> {
</span><span class="cx"> RefPtr<ContainerNode> parent = node->parentNode();
</span><span class="cx"> removeNode(node);
</span><del>- prune(parent.release());
</del><ins>+ prune(WTFMove(parent));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CompositeEditCommand::moveRemainingSiblingsToNewParent(Node* node, Node* pastLastNodeToMove, PassRefPtr<Element> prpNewParent)
</span><span class="lines">@@ -583,7 +583,7 @@
</span><span class="cx"> void CompositeEditCommand::prune(PassRefPtr<Node> node)
</span><span class="cx"> {
</span><span class="cx"> if (RefPtr<Node> highestNodeToRemove = highestNodeToRemoveInPruning(node.get()))
</span><del>- removeNode(highestNodeToRemove.release());
</del><ins>+ removeNode(WTFMove(highestNodeToRemove));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CompositeEditCommand::splitTextNode(PassRefPtr<Text> node, unsigned offset)
</span><span class="lines">@@ -688,7 +688,7 @@
</span><span class="cx"> RefPtr<Text> textNode = start.containerText();
</span><span class="cx"> replaceTextInNode(textNode, start.offsetInContainerNode(), end.offsetInContainerNode() - start.offsetInContainerNode(), text);
</span><span class="cx">
</span><del>- return Position(textNode.release(), start.offsetInContainerNode() + text.length());
</del><ins>+ return Position(WTFMove(textNode), start.offsetInContainerNode() + text.length());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static Vector<RenderedDocumentMarker> copyMarkers(const Vector<RenderedDocumentMarker*>& markerPointers)
</span><span class="lines">@@ -872,7 +872,7 @@
</span><span class="cx"> isEndOfParagraph(visibleDownstreamPos) || (unsigned)downstream == text.length());
</span><span class="cx">
</span><span class="cx"> if (string != rebalancedString)
</span><del>- replaceTextInNodePreservingMarkers(textNode.release(), upstream, length, rebalancedString);
</del><ins>+ replaceTextInNodePreservingMarkers(WTFMove(textNode), upstream, length, rebalancedString);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void CompositeEditCommand::prepareWhitespaceAtPositionForSplit(Position& position)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingCreateLinkCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/CreateLinkCommand.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/CreateLinkCommand.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/CreateLinkCommand.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -43,16 +43,16 @@
</span><span class="cx"> if (endingSelection().isNone())
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- RefPtr<HTMLAnchorElement> anchorElement = HTMLAnchorElement::create(document());
</del><ins>+ auto anchorElement = HTMLAnchorElement::create(document());
</ins><span class="cx"> anchorElement->setHref(m_url);
</span><span class="cx">
</span><span class="cx"> if (endingSelection().isRange())
</span><del>- applyStyledElement(anchorElement.release());
</del><ins>+ applyStyledElement(WTFMove(anchorElement));
</ins><span class="cx"> else {
</span><del>- insertNodeAt(anchorElement.get(), endingSelection().start());
- RefPtr<Text> textNode = Text::create(document(), m_url);
- appendNode(textNode.release(), anchorElement.get());
- setEndingSelection(VisibleSelection(positionInParentBeforeNode(anchorElement.get()), positionInParentAfterNode(anchorElement.get()), DOWNSTREAM, endingSelection().isDirectional()));
</del><ins>+ insertNodeAt(anchorElement.ptr(), endingSelection().start());
+ auto textNode = Text::create(document(), m_url);
+ appendNode(WTFMove(textNode), anchorElement.ptr());
+ setEndingSelection(VisibleSelection(positionInParentBeforeNode(anchorElement.ptr()), positionInParentAfterNode(anchorElement.ptr()), DOWNSTREAM, endingSelection().isDirectional()));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditingStylecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/EditingStyle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/EditingStyle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/EditingStyle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1248,9 +1248,9 @@
</span><span class="cx"> if ((property.id() == CSSPropertyTextDecoration || property.id() == CSSPropertyWebkitTextDecorationsInEffect)
</span><span class="cx"> && is<CSSValueList>(*property.value()) && value) {
</span><span class="cx"> if (is<CSSValueList>(*value)) {
</span><del>- RefPtr<CSSValueList> newValue = downcast<CSSValueList>(*value).copy();
- mergeTextDecorationValues(*newValue, downcast<CSSValueList>(*property.value()));
- m_mutableStyle->setProperty(property.id(), newValue.release(), property.isImportant());
</del><ins>+ auto newValue = downcast<CSSValueList>(*value).copy();
+ mergeTextDecorationValues(newValue, downcast<CSSValueList>(*property.value()));
+ m_mutableStyle->setProperty(property.id(), WTFMove(newValue), property.isImportant());
</ins><span class="cx"> continue;
</span><span class="cx"> }
</span><span class="cx"> value = nullptr; // text-decoration: none is equivalent to not having the property.
</span><span class="lines">@@ -1307,8 +1307,8 @@
</span><span class="cx"> if (!is<CSSPrimitiveValue>(*value))
</span><span class="cx"> continue;
</span><span class="cx"> if (downcast<CSSPrimitiveValue>(*value).isPercentage()) {
</span><del>- if (RefPtr<CSSValue> computedPropertyValue = computedStyle.propertyValue(property.id()))
- fromComputedStyle->addParsedProperty(CSSProperty(property.id(), computedPropertyValue.release()));
</del><ins>+ if (auto computedPropertyValue = computedStyle.propertyValue(property.id()))
+ fromComputedStyle->addParsedProperty(CSSProperty(property.id(), WTFMove(computedPropertyValue)));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/Editor.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/Editor.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/Editor.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -136,9 +136,9 @@
</span><span class="cx">
</span><span class="cx"> const VisibleSelection oldSelection = frame->selection().selection();
</span><span class="cx"> frame->selection().selectAll();
</span><del>- RefPtr<ClearTextCommand> clearCommand = adoptRef(new ClearTextCommand(*frame->document()));
</del><ins>+ auto clearCommand = adoptRef(*new ClearTextCommand(*frame->document()));
</ins><span class="cx"> clearCommand->setStartingSelection(oldSelection);
</span><del>- applyCommand(clearCommand.release());
</del><ins>+ applyCommand(WTFMove(clearCommand));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> using namespace HTMLNames;
</span><span class="lines">@@ -2433,16 +2433,16 @@
</span><span class="cx"> bool asynchronous = m_frame.settings().asynchronousSpellCheckingEnabled() && !shouldShowCorrectionPanel;
</span><span class="cx">
</span><span class="cx"> // In asynchronous mode, we intentionally check paragraph-wide sentence.
</span><del>- RefPtr<SpellCheckRequest> request = SpellCheckRequest::create(resolveTextCheckingTypeMask(textCheckingOptions), TextCheckingProcessIncremental, asynchronous ? paragraphRange : rangeToCheck, paragraphRange);
</del><ins>+ auto request = SpellCheckRequest::create(resolveTextCheckingTypeMask(textCheckingOptions), TextCheckingProcessIncremental, asynchronous ? paragraphRange : rangeToCheck, paragraphRange);
</ins><span class="cx">
</span><span class="cx"> if (asynchronous) {
</span><del>- m_spellChecker->requestCheckingFor(request.release());
</del><ins>+ m_spellChecker->requestCheckingFor(WTFMove(request));
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Vector<TextCheckingResult> results;
</span><span class="cx"> checkTextOfParagraph(*textChecker(), paragraphToCheck.text(), resolveTextCheckingTypeMask(textCheckingOptions), results, m_frame.selection().selection());
</span><del>- markAndReplaceFor(request.release(), results);
</del><ins>+ markAndReplaceFor(WTFMove(request), results);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static bool isAutomaticTextReplacementType(TextCheckingType type)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingEditorCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/EditorCommand.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/EditorCommand.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/EditorCommand.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -165,12 +165,12 @@
</span><span class="cx">
</span><span class="cx"> static bool executeInsertNode(Frame& frame, Ref<Node>&& content)
</span><span class="cx"> {
</span><del>- RefPtr<DocumentFragment> fragment = DocumentFragment::create(*frame.document());
</del><ins>+ auto fragment = DocumentFragment::create(*frame.document());
</ins><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> fragment->appendChild(content, ec);
</span><span class="cx"> if (ec)
</span><span class="cx"> return false;
</span><del>- return executeInsertFragment(frame, fragment.release());
</del><ins>+ return executeInsertFragment(frame, WTFMove(fragment));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static bool expandSelectionToGranularity(Frame& frame, TextGranularity granularity)
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingInsertTextCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/InsertTextCommand.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/InsertTextCommand.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/InsertTextCommand.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx">
</span><span class="cx"> replaceTextInNode(textNode, start.offsetInContainerNode(), count, text);
</span><span class="cx">
</span><del>- Position endPosition = Position(textNode.release(), start.offsetInContainerNode() + text.length());
</del><ins>+ Position endPosition = Position(WTFMove(textNode), start.offsetInContainerNode() + text.length());
</ins><span class="cx"> setEndingSelectionWithoutValidation(start, endPosition);
</span><span class="cx"> if (!selectInsertedText)
</span><span class="cx"> setEndingSelection(VisibleSelection(endingSelection().visibleEnd(), endingSelection().isDirectional()));
</span><span class="lines">@@ -245,7 +245,7 @@
</span><span class="cx"> if (isTabSpanTextNode(node)) {
</span><span class="cx"> RefPtr<Text> textNode = downcast<Text>(node);
</span><span class="cx"> insertTextIntoNode(textNode, offset, "\t");
</span><del>- return Position(textNode.release(), offset + 1);
</del><ins>+ return Position(WTFMove(textNode), offset + 1);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // create new tab span
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingRemoveNodePreservingChildrenCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -47,9 +47,9 @@
</span><span class="cx">
</span><span class="cx"> size_t size = children.size();
</span><span class="cx"> for (size_t i = 0; i < size; ++i) {
</span><del>- RefPtr<Node> child = WTFMove(children[i]);
</del><ins>+ auto child = WTFMove(children[i]);
</ins><span class="cx"> removeNode(child, m_shouldAssumeContentIsAlwaysEditable);
</span><del>- insertNodeBefore(child.release(), m_node, m_shouldAssumeContentIsAlwaysEditable);
</del><ins>+ insertNodeBefore(WTFMove(child), m_node, m_shouldAssumeContentIsAlwaysEditable);
</ins><span class="cx"> }
</span><span class="cx"> removeNode(m_node, m_shouldAssumeContentIsAlwaysEditable);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingReplaceSelectionCommandcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -229,9 +229,9 @@
</span><span class="cx">
</span><span class="cx"> while (RefPtr<Node> n = node->firstChild()) {
</span><span class="cx"> removeNode(n);
</span><del>- insertNodeBefore(n.release(), node.get());
</del><ins>+ insertNodeBefore(WTFMove(n), node.get());
</ins><span class="cx"> }
</span><del>- removeNode(node);
</del><ins>+ removeNode(WTFMove(node));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void ReplacementFragment::removeNode(PassRefPtr<Node> node)
</span><span class="lines">@@ -678,7 +678,7 @@
</span><span class="cx"> }
</span><span class="cx"> if (!ancestor->firstChild()) {
</span><span class="cx"> insertedNodes.willRemoveNode(ancestor.get());
</span><del>- removeNode(ancestor.release());
</del><ins>+ removeNode(WTFMove(ancestor));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlFTPDirectoryDocumentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/FTPDirectoryDocument.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/FTPDirectoryDocument.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -280,7 +280,7 @@
</span><span class="cx">
</span><span class="cx"> bool FTPDirectoryDocumentParser::loadDocumentTemplate()
</span><span class="cx"> {
</span><del>- static SharedBuffer* templateDocumentData = createTemplateDocumentData(document()->settings()).release().leakRef();
</del><ins>+ static SharedBuffer* templateDocumentData = createTemplateDocumentData(document()->settings()).leakRef();
</ins><span class="cx"> // FIXME: Instead of storing the data, it would be more efficient if we could parse the template data into the
</span><span class="cx"> // template Document once, store that document, then "copy" it whenever we get an FTP directory listing.
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFontElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFontElement.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFontElement.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/HTMLFontElement.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -194,8 +194,8 @@
</span><span class="cx"> } else if (name == colorAttr)
</span><span class="cx"> addHTMLColorToStyle(style, CSSPropertyColor, value);
</span><span class="cx"> else if (name == faceAttr) {
</span><del>- if (RefPtr<CSSValueList> fontFaceValue = CSSValuePool::singleton().createFontFaceValue(value))
- style.setProperty(CSSProperty(CSSPropertyFontFamily, fontFaceValue.release()));
</del><ins>+ if (auto fontFaceValue = CSSValuePool::singleton().createFontFaceValue(value))
+ style.setProperty(CSSProperty(CSSPropertyFontFamily, WTFMove(fontFaceValue)));
</ins><span class="cx"> } else
</span><span class="cx"> HTMLElement::collectStyleForPresentationAttribute(name, value, style);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLFormElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLFormElement.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLFormElement.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/HTMLFormElement.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -284,8 +284,8 @@
</span><span class="cx">
</span><span class="cx"> StringPairVector controlNamesAndValues;
</span><span class="cx"> getTextFieldValues(controlNamesAndValues);
</span><del>- RefPtr<FormState> formState = FormState::create(this, controlNamesAndValues, &document(), NotSubmittedByJavaScript);
- frame->loader().client().dispatchWillSendSubmitEvent(formState.release());
</del><ins>+ auto formState = FormState::create(this, controlNamesAndValues, &document(), NotSubmittedByJavaScript);
+ frame->loader().client().dispatchWillSendSubmitEvent(WTFMove(formState));
</ins><span class="cx">
</span><span class="cx"> Ref<HTMLFormElement> protectedThis(*this);
</span><span class="cx"> // Event handling can result in m_shouldSubmit becoming true, regardless of dispatchEvent() return value.
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTableElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTableElement.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTableElement.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/HTMLTableElement.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -435,12 +435,12 @@
</span><span class="cx">
</span><span class="cx"> static StyleProperties* leakBorderStyle(CSSValueID value)
</span><span class="cx"> {
</span><del>- RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
</del><ins>+ auto style = MutableStyleProperties::create();
</ins><span class="cx"> style->setProperty(CSSPropertyBorderTopStyle, value);
</span><span class="cx"> style->setProperty(CSSPropertyBorderBottomStyle, value);
</span><span class="cx"> style->setProperty(CSSPropertyBorderLeftStyle, value);
</span><span class="cx"> style->setProperty(CSSPropertyBorderRightStyle, value);
</span><del>- return style.release().leakRef();
</del><ins>+ return &style.leakRef();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const StyleProperties* HTMLTableElement::additionalPresentationAttributeStyle() const
</span><span class="lines">@@ -539,7 +539,7 @@
</span><span class="cx">
</span><span class="cx"> static StyleProperties* leakGroupBorderStyle(int rows)
</span><span class="cx"> {
</span><del>- RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
</del><ins>+ auto style = MutableStyleProperties::create();
</ins><span class="cx"> if (rows) {
</span><span class="cx"> style->setProperty(CSSPropertyBorderTopWidth, CSSValueThin);
</span><span class="cx"> style->setProperty(CSSPropertyBorderBottomWidth, CSSValueThin);
</span><span class="lines">@@ -551,7 +551,7 @@
</span><span class="cx"> style->setProperty(CSSPropertyBorderLeftStyle, CSSValueSolid);
</span><span class="cx"> style->setProperty(CSSPropertyBorderRightStyle, CSSValueSolid);
</span><span class="cx"> }
</span><del>- return style.release().leakRef();
</del><ins>+ return &style.leakRef();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> const StyleProperties* HTMLTableElement::additionalGroupStyle(bool rows)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLDocumentParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -210,7 +210,7 @@
</span><span class="cx"> ASSERT(!m_treeBuilder->hasParserBlockingScriptWork());
</span><span class="cx"> // We will not have a scriptRunner when parsing a DocumentFragment.
</span><span class="cx"> if (m_scriptRunner)
</span><del>- m_scriptRunner->execute(scriptElement.release(), scriptStartPosition);
</del><ins>+ m_scriptRunner->execute(WTFMove(scriptElement), scriptStartPosition);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackInbandDataTextTrackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/InbandDataTextTrack.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/InbandDataTextTrack.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/track/InbandDataTextTrack.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -54,8 +54,8 @@
</span><span class="cx">
</span><span class="cx"> void InbandDataTextTrack::addDataCue(InbandTextTrackPrivate*, const MediaTime& start, const MediaTime& end, const void* data, unsigned length)
</span><span class="cx"> {
</span><del>- RefPtr<DataCue> cue = DataCue::create(*scriptExecutionContext(), start, end, data, length);
- addCue(cue.release(), ASSERT_NO_EXCEPTION);
</del><ins>+ auto cue = DataCue::create(*scriptExecutionContext(), start, end, data, length);
+ addCue(WTFMove(cue), ASSERT_NO_EXCEPTION);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(DATACUE_VALUE)
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackInbandGenericTextTrackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/InbandGenericTextTrack.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/InbandGenericTextTrack.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/track/InbandGenericTextTrack.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -221,13 +221,13 @@
</span><span class="cx"> parser().getNewCues(cues);
</span><span class="cx">
</span><span class="cx"> for (auto& cueData : cues) {
</span><del>- RefPtr<VTTCue> vttCue = VTTCue::create(*scriptExecutionContext(), *cueData);
</del><ins>+ auto vttCue = VTTCue::create(*scriptExecutionContext(), *cueData);
</ins><span class="cx">
</span><del>- if (hasCue(vttCue.get(), TextTrackCue::IgnoreDuration)) {
</del><ins>+ if (hasCue(vttCue.ptr(), TextTrackCue::IgnoreDuration)) {
</ins><span class="cx"> LOG(Media, "InbandGenericTextTrack::newCuesParsed ignoring already added cue: start=%.2f, end=%.2f, content=\"%s\"\n", vttCue->startTime(), vttCue->endTime(), vttCue->text().utf8().data());
</span><span class="cx"> return;
</span><span class="cx"> }
</span><del>- addCue(vttCue.release(), ASSERT_NO_EXCEPTION);
</del><ins>+ addCue(WTFMove(vttCue), ASSERT_NO_EXCEPTION);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackInbandWebVTTTextTrackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/track/InbandWebVTTTextTrack.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -76,13 +76,13 @@
</span><span class="cx"> parser().getNewCues(cues);
</span><span class="cx">
</span><span class="cx"> for (auto& cueData : cues) {
</span><del>- RefPtr<VTTCue> vttCue = VTTCue::create(*scriptExecutionContext(), *cueData);
</del><ins>+ auto vttCue = VTTCue::create(*scriptExecutionContext(), *cueData);
</ins><span class="cx">
</span><del>- if (hasCue(vttCue.get(), TextTrackCue::IgnoreDuration)) {
</del><ins>+ if (hasCue(vttCue.ptr(), TextTrackCue::IgnoreDuration)) {
</ins><span class="cx"> LOG(Media, "InbandWebVTTTextTrack::newCuesParsed ignoring already added cue: start=%.2f, end=%.2f, content=\"%s\"\n", vttCue->startTime(), vttCue->endTime(), vttCue->text().utf8().data());
</span><span class="cx"> return;
</span><span class="cx"> }
</span><del>- addCue(vttCue.release(), ASSERT_NO_EXCEPTION);
</del><ins>+ addCue(WTFMove(vttCue), ASSERT_NO_EXCEPTION);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTextTrackCueListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TextTrackCueList.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TextTrackCueList.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/html/track/TextTrackCueList.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -101,9 +101,9 @@
</span><span class="cx">
</span><span class="cx"> size_t index = (start + end) / 2;
</span><span class="cx"> if (cue->isOrderedBefore(m_list[index].get()))
</span><del>- return add(cue.release(), start, index);
</del><ins>+ return add(WTFMove(cue), start, index);
</ins><span class="cx">
</span><del>- return add(cue.release(), index + 1, end);
</del><ins>+ return add(WTFMove(cue), index + 1, end);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool TextTrackCueList::remove(TextTrackCue* cue)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorCSSAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -631,8 +631,10 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> inlineStyle = styleSheet->buildObjectForStyle(element->cssomStyle());
</span><del>- RefPtr<Inspector::Protocol::CSS::CSSStyle> attributes = buildObjectForAttributesStyle(element);
- attributesStyle = attributes ? attributes.release() : nullptr;
</del><ins>+ if (auto attributes = buildObjectForAttributesStyle(element))
+ attributesStyle = WTFMove(attributes);
+ else
+ attributesStyle = nullptr;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void InspectorCSSAgent::getComputedStyleForNode(ErrorString& errorString, int nodeId, RefPtr<Inspector::Protocol::Array<Inspector::Protocol::CSS::CSSComputedStyleProperty>>& style)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorDOMAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -462,8 +462,8 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<Inspector::Protocol::Array<Inspector::Protocol::DOM::Node>> children = buildArrayForContainerChildren(node, depth, nodeMap);
- m_frontendDispatcher->setChildNodes(nodeId, children.release());
</del><ins>+ auto children = buildArrayForContainerChildren(node, depth, nodeMap);
+ m_frontendDispatcher->setChildNodes(nodeId, WTFMove(children));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void InspectorDOMAgent::discardBindings()
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorIndexedDBAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/inspector/InspectorIndexedDBAgent.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -330,7 +330,7 @@
</span><span class="cx"> } else
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- return idbKey.release();
</del><ins>+ return idbKey;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static RefPtr<IDBKeyRange> idbKeyRangeFromKeyRange(const InspectorObject* keyRange)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorNetworkAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorNetworkAgent.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorNetworkAgent.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/inspector/InspectorNetworkAgent.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -682,7 +682,7 @@
</span><span class="cx"> // InspectorThreadableLoaderClient deletes itself when the load completes.
</span><span class="cx"> InspectorThreadableLoaderClient* inspectorThreadableLoaderClient = new InspectorThreadableLoaderClient(callback.copyRef());
</span><span class="cx">
</span><del>- RefPtr<DocumentThreadableLoader> loader = DocumentThreadableLoader::create(*document, *inspectorThreadableLoaderClient, request, options);
</del><ins>+ auto loader = DocumentThreadableLoader::create(*document, *inspectorThreadableLoaderClient, request, options);
</ins><span class="cx"> if (!loader) {
</span><span class="cx"> inspectorThreadableLoaderClient->didFailLoaderCreation();
</span><span class="cx"> return;
</span><span class="lines">@@ -692,7 +692,7 @@
</span><span class="cx"> if (!callback->isActive())
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- inspectorThreadableLoaderClient->setLoader(loader.release());
</del><ins>+ inspectorThreadableLoaderClient->setLoader(WTFMove(loader));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static Ref<Inspector::Protocol::Page::SearchResult> buildObjectForSearchResult(const String& requestId, const String& frameId, const String& url, int matchesCount)
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorStyleSheetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -925,7 +925,7 @@
</span><span class="cx"> selectors->addItem(buildObjectForSelector(selector, element));
</span><span class="cx"> }
</span><span class="cx"> auto result = Inspector::Protocol::CSS::SelectorList::create()
</span><del>- .setSelectors(selectors.release())
</del><ins>+ .setSelectors(WTFMove(selectors))
</ins><span class="cx"> .setText(selectorText)
</span><span class="cx"> .release();
</span><span class="cx"> if (sourceData)
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFormSubmissioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FormSubmission.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FormSubmission.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/FormSubmission.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -238,8 +238,8 @@
</span><span class="cx"> formData->setIdentifier(generateFormDataIdentifier());
</span><span class="cx"> formData->setContainsPasswordData(containsPasswordData);
</span><span class="cx"> String targetOrBaseTarget = copiedAttributes.target().isEmpty() ? document.baseTarget() : copiedAttributes.target();
</span><del>- RefPtr<FormState> formState = FormState::create(form, formValues, &document, trigger);
- return adoptRef(*new FormSubmission(copiedAttributes.method(), actionURL, targetOrBaseTarget, encodingType, formState.release(), formData.release(), boundary, lockHistory, event));
</del><ins>+ auto formState = FormState::create(form, formValues, &document, trigger);
+ return adoptRef(*new FormSubmission(copiedAttributes.method(), actionURL, targetOrBaseTarget, encodingType, WTFMove(formState), WTFMove(formData), boundary, lockHistory, event));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> URL FormSubmission::requestURL() const
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderFrameLoadercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/FrameLoader.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/FrameLoader.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/FrameLoader.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -874,9 +874,9 @@
</span><span class="cx"> ASSERT(childFrame);
</span><span class="cx">
</span><span class="cx"> #if ENABLE(WEB_ARCHIVE) || ENABLE(MHTML)
</span><del>- RefPtr<Archive> subframeArchive = activeDocumentLoader()->popArchiveForSubframe(childFrame->tree().uniqueName(), url);
</del><ins>+ auto subframeArchive = activeDocumentLoader()->popArchiveForSubframe(childFrame->tree().uniqueName(), url);
</ins><span class="cx"> if (subframeArchive) {
</span><del>- childFrame->loader().loadArchive(subframeArchive.release());
</del><ins>+ childFrame->loader().loadArchive(WTFMove(subframeArchive));
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx"> #endif // ENABLE(WEB_ARCHIVE)
</span><span class="lines">@@ -1214,7 +1214,7 @@
</span><span class="cx"> if (targetFrame && targetFrame != &m_frame) {
</span><span class="cx"> FrameLoadRequest newFrameLoadRequest(frameLoadRequest);
</span><span class="cx"> newFrameLoadRequest.setFrameName("_self");
</span><del>- targetFrame->loader().loadURL(newFrameLoadRequest, referrer, newLoadType, event, formState.release());
</del><ins>+ targetFrame->loader().loadURL(newFrameLoadRequest, referrer, newLoadType, event, WTFMove(formState));
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1225,7 +1225,7 @@
</span><span class="cx">
</span><span class="cx"> if (!targetFrame && !frameName.isEmpty()) {
</span><span class="cx"> action = action.copyWithShouldOpenExternalURLsPolicy(shouldOpenExternalURLsPolicyToApply(m_frame, frameLoadRequest.shouldOpenExternalURLsPolicy()));
</span><del>- policyChecker().checkNewWindowPolicy(action, request, formState.release(), frameName, [this, allowNavigationToInvalidURL, openerPolicy](const ResourceRequest& request, PassRefPtr<FormState> formState, const String& frameName, const NavigationAction& action, bool shouldContinue) {
</del><ins>+ policyChecker().checkNewWindowPolicy(action, request, WTFMove(formState), frameName, [this, allowNavigationToInvalidURL, openerPolicy](const ResourceRequest& request, PassRefPtr<FormState> formState, const String& frameName, const NavigationAction& action, bool shouldContinue) {
</ins><span class="cx"> continueLoadAfterNewWindowPolicy(request, formState, frameName, action, shouldContinue, allowNavigationToInvalidURL, openerPolicy);
</span><span class="cx"> });
</span><span class="cx"> return;
</span><span class="lines">@@ -1244,7 +1244,7 @@
</span><span class="cx"> oldDocumentLoader->setLastCheckedRequest(ResourceRequest());
</span><span class="cx"> policyChecker().stopCheck();
</span><span class="cx"> policyChecker().setLoadType(newLoadType);
</span><del>- policyChecker().checkNavigationPolicy(request, false /* didReceiveRedirectResponse */, oldDocumentLoader.get(), formState.release(), [this](const ResourceRequest& request, PassRefPtr<FormState>, bool shouldContinue) {
</del><ins>+ policyChecker().checkNavigationPolicy(request, false /* didReceiveRedirectResponse */, oldDocumentLoader.get(), WTFMove(formState), [this](const ResourceRequest& request, PassRefPtr<FormState>, bool shouldContinue) {
</ins><span class="cx"> continueFragmentScrollAfterNavigationPolicy(request, shouldContinue);
</span><span class="cx"> });
</span><span class="cx"> return;
</span><span class="lines">@@ -1252,7 +1252,7 @@
</span><span class="cx">
</span><span class="cx"> // must grab this now, since this load may stop the previous load and clear this flag
</span><span class="cx"> bool isRedirect = m_quickRedirectComing;
</span><del>- loadWithNavigationAction(request, action, lockHistory, newLoadType, formState.release(), allowNavigationToInvalidURL);
</del><ins>+ loadWithNavigationAction(request, action, lockHistory, newLoadType, WTFMove(formState), allowNavigationToInvalidURL);
</ins><span class="cx"> if (isRedirect) {
</span><span class="cx"> m_quickRedirectComing = false;
</span><span class="cx"> if (m_provisionalDocumentLoader)
</span><span class="lines">@@ -2698,11 +2698,11 @@
</span><span class="cx"> if (!frameName.isEmpty()) {
</span><span class="cx"> // The search for a target frame is done earlier in the case of form submission.
</span><span class="cx"> if (Frame* targetFrame = formState ? 0 : findFrameForNavigation(frameName)) {
</span><del>- targetFrame->loader().loadWithNavigationAction(workingResourceRequest, action, lockHistory, loadType, formState.release(), allowNavigationToInvalidURL);
</del><ins>+ targetFrame->loader().loadWithNavigationAction(workingResourceRequest, action, lockHistory, loadType, WTFMove(formState), allowNavigationToInvalidURL);
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- policyChecker().checkNewWindowPolicy(action, workingResourceRequest, formState.release(), frameName, [this, allowNavigationToInvalidURL, openerPolicy](const ResourceRequest& request, PassRefPtr<FormState> formState, const String& frameName, const NavigationAction& action, bool shouldContinue) {
</del><ins>+ policyChecker().checkNewWindowPolicy(action, workingResourceRequest, WTFMove(formState), frameName, [this, allowNavigationToInvalidURL, openerPolicy](const ResourceRequest& request, PassRefPtr<FormState> formState, const String& frameName, const NavigationAction& action, bool shouldContinue) {
</ins><span class="cx"> continueLoadAfterNewWindowPolicy(request, formState, frameName, action, shouldContinue, allowNavigationToInvalidURL, openerPolicy);
</span><span class="cx"> });
</span><span class="cx"> return;
</span><span class="lines">@@ -2710,7 +2710,7 @@
</span><span class="cx">
</span><span class="cx"> // must grab this now, since this load may stop the previous load and clear this flag
</span><span class="cx"> bool isRedirect = m_quickRedirectComing;
</span><del>- loadWithNavigationAction(workingResourceRequest, action, lockHistory, loadType, formState.release(), allowNavigationToInvalidURL);
</del><ins>+ loadWithNavigationAction(workingResourceRequest, action, lockHistory, loadType, WTFMove(formState), allowNavigationToInvalidURL);
</ins><span class="cx"> if (isRedirect) {
</span><span class="cx"> m_quickRedirectComing = false;
</span><span class="cx"> if (m_provisionalDocumentLoader)
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderProgressTrackercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/ProgressTracker.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/ProgressTracker.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/ProgressTracker.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -168,7 +168,7 @@
</span><span class="cx"> {
</span><span class="cx"> LOG(Progress, "Final progress complete (%p)", this);
</span><span class="cx">
</span><del>- RefPtr<Frame> frame = m_originatingProgressFrame.release();
</del><ins>+ auto frame = WTFMove(m_originatingProgressFrame);
</ins><span class="cx">
</span><span class="cx"> // Before resetting progress value be sure to send client a least one notification
</span><span class="cx"> // with final progress value.
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderappcacheApplicationCacheGroupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -369,7 +369,7 @@
</span><span class="cx">
</span><span class="cx"> // Release our reference to the newest cache. This could cause us to be deleted.
</span><span class="cx"> // Any ongoing updates will be stopped from destructor.
</span><del>- m_newestCache.release();
</del><ins>+ m_newestCache = nullptr;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void ApplicationCacheGroup::cacheDestroyed(ApplicationCache* cache)
</span><span class="lines">@@ -594,7 +594,7 @@
</span><span class="cx">
</span><span class="cx"> ASSERT(m_cacheBeingUpdated);
</span><span class="cx">
</span><del>- m_cacheBeingUpdated->addResource(m_currentResource.release());
</del><ins>+ m_cacheBeingUpdated->addResource(WTFMove(m_currentResource));
</ins><span class="cx"> m_currentHandle = nullptr;
</span><span class="cx">
</span><span class="cx"> // While downloading check to see if we have exceeded the available quota.
</span><span class="lines">@@ -868,7 +868,7 @@
</span><span class="cx">
</span><span class="cx"> ASSERT(m_cacheBeingUpdated);
</span><span class="cx"> if (m_manifestResource)
</span><del>- m_cacheBeingUpdated->setManifestResource(m_manifestResource.release());
</del><ins>+ m_cacheBeingUpdated->setManifestResource(WTFMove(m_manifestResource));
</ins><span class="cx"> else {
</span><span class="cx"> // We can get here as a result of retrying the Complete step, following
</span><span class="cx"> // a failure of the cache storage to save the newest cache due to hitting
</span><span class="lines">@@ -888,7 +888,7 @@
</span><span class="cx"> didReachOriginQuota(totalSpaceNeeded);
</span><span class="cx">
</span><span class="cx"> ApplicationCacheStorage::FailureReason failureReason;
</span><del>- setNewestCache(m_cacheBeingUpdated.release());
</del><ins>+ setNewestCache(WTFMove(m_cacheBeingUpdated));
</ins><span class="cx"> if (m_storage->storeNewestCache(this, oldNewestCache.get(), failureReason)) {
</span><span class="cx"> // New cache stored, now remove the old cache.
</span><span class="cx"> if (oldNewestCache)
</span><span class="lines">@@ -919,10 +919,10 @@
</span><span class="cx"> // save the new cache.
</span><span class="cx">
</span><span class="cx"> // Save a reference to the new cache.
</span><del>- m_cacheBeingUpdated = m_newestCache.release();
</del><ins>+ m_cacheBeingUpdated = WTFMove(m_newestCache);
</ins><span class="cx"> if (oldNewestCache) {
</span><span class="cx"> // Reinstate the oldNewestCache.
</span><del>- setNewestCache(oldNewestCache.release());
</del><ins>+ setNewestCache(WTFMove(oldNewestCache));
</ins><span class="cx"> }
</span><span class="cx"> scheduleReachedMaxAppCacheSizeCallback();
</span><span class="cx"> return;
</span><span class="lines">@@ -945,7 +945,7 @@
</span><span class="cx"> // Reinstate the oldNewestCache, if there was one.
</span><span class="cx"> if (oldNewestCache) {
</span><span class="cx"> // This will discard the failed new cache.
</span><del>- setNewestCache(oldNewestCache.release());
</del><ins>+ setNewestCache(WTFMove(oldNewestCache));
</ins><span class="cx"> } else {
</span><span class="cx"> // We must have been deleted by the last call to disassociateDocumentLoader().
</span><span class="cx"> return;
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderappcacheApplicationCacheStoragecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -121,7 +121,7 @@
</span><span class="cx">
</span><span class="cx"> unsigned newestCacheStorageID = static_cast<unsigned>(statement.getColumnInt64(2));
</span><span class="cx">
</span><del>- RefPtr<ApplicationCache> cache = loadCache(newestCacheStorageID);
</del><ins>+ auto cache = loadCache(newestCacheStorageID);
</ins><span class="cx"> if (!cache)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="lines">@@ -128,7 +128,7 @@
</span><span class="cx"> ApplicationCacheGroup* group = new ApplicationCacheGroup(*this, manifestURL);
</span><span class="cx">
</span><span class="cx"> group->setStorageID(static_cast<unsigned>(statement.getColumnInt64(0)));
</span><del>- group->setNewestCache(cache.release());
</del><ins>+ group->setNewestCache(WTFMove(cache));
</ins><span class="cx">
</span><span class="cx"> return group;
</span><span class="cx"> }
</span><span class="lines">@@ -239,7 +239,7 @@
</span><span class="cx"> // We found a cache group that matches. Now check if the newest cache has a resource with
</span><span class="cx"> // a matching URL.
</span><span class="cx"> unsigned newestCacheID = static_cast<unsigned>(statement.getColumnInt64(2));
</span><del>- RefPtr<ApplicationCache> cache = loadCache(newestCacheID);
</del><ins>+ auto cache = loadCache(newestCacheID);
</ins><span class="cx"> if (!cache)
</span><span class="cx"> continue;
</span><span class="cx">
</span><span class="lines">@@ -252,7 +252,7 @@
</span><span class="cx"> ApplicationCacheGroup* group = new ApplicationCacheGroup(*this, manifestURL);
</span><span class="cx">
</span><span class="cx"> group->setStorageID(static_cast<unsigned>(statement.getColumnInt64(0)));
</span><del>- group->setNewestCache(cache.release());
</del><ins>+ group->setNewestCache(WTFMove(cache));
</ins><span class="cx">
</span><span class="cx"> m_cachesInMemory.set(group->manifestURL(), group);
</span><span class="cx">
</span><span class="lines">@@ -309,7 +309,7 @@
</span><span class="cx"> // We found a cache group that matches. Now check if the newest cache has a resource with
</span><span class="cx"> // a matching fallback namespace.
</span><span class="cx"> unsigned newestCacheID = static_cast<unsigned>(statement.getColumnInt64(2));
</span><del>- RefPtr<ApplicationCache> cache = loadCache(newestCacheID);
</del><ins>+ auto cache = loadCache(newestCacheID);
</ins><span class="cx">
</span><span class="cx"> URL fallbackURL;
</span><span class="cx"> if (cache->isURLInOnlineWhitelist(url))
</span><span class="lines">@@ -322,7 +322,7 @@
</span><span class="cx"> ApplicationCacheGroup* group = new ApplicationCacheGroup(*this, manifestURL);
</span><span class="cx">
</span><span class="cx"> group->setStorageID(static_cast<unsigned>(statement.getColumnInt64(0)));
</span><del>- group->setNewestCache(cache.release());
</del><ins>+ group->setNewestCache(WTFMove(cache));
</ins><span class="cx">
</span><span class="cx"> m_cachesInMemory.set(group->manifestURL(), group);
</span><span class="cx">
</span><span class="lines">@@ -1119,7 +1119,7 @@
</span><span class="cx">
</span><span class="cx"> cacheStatement.bindInt64(1, storageID);
</span><span class="cx">
</span><del>- RefPtr<ApplicationCache> cache = ApplicationCache::create();
</del><ins>+ auto cache = ApplicationCache::create();
</ins><span class="cx">
</span><span class="cx"> String flatFileDirectory = pathByAppendingComponent(m_cacheDirectory, m_flatFileSubdirectoryName);
</span><span class="cx">
</span><span class="lines">@@ -1134,7 +1134,7 @@
</span><span class="cx"> Vector<char> blob;
</span><span class="cx"> cacheStatement.getColumnBlobAsVector(6, blob);
</span><span class="cx">
</span><del>- RefPtr<SharedBuffer> data = SharedBuffer::adoptVector(blob);
</del><ins>+ auto data = SharedBuffer::adoptVector(blob);
</ins><span class="cx">
</span><span class="cx"> String path = cacheStatement.getColumnText(7);
</span><span class="cx"> long long size = 0;
</span><span class="lines">@@ -1154,12 +1154,12 @@
</span><span class="cx"> String headers = cacheStatement.getColumnText(5);
</span><span class="cx"> parseHeaders(headers, response);
</span><span class="cx">
</span><del>- RefPtr<ApplicationCacheResource> resource = ApplicationCacheResource::create(url, response, type, data.release(), path);
</del><ins>+ auto resource = ApplicationCacheResource::create(url, response, type, WTFMove(data), path);
</ins><span class="cx">
</span><span class="cx"> if (type & ApplicationCacheResource::Manifest)
</span><del>- cache->setManifestResource(resource.release());
</del><ins>+ cache->setManifestResource(WTFMove(resource));
</ins><span class="cx"> else
</span><del>- cache->addResource(resource.release());
</del><ins>+ cache->addResource(WTFMove(resource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (result != SQLITE_DONE)
</span><span class="lines">@@ -1217,7 +1217,7 @@
</span><span class="cx">
</span><span class="cx"> cache->setStorageID(storageID);
</span><span class="cx">
</span><del>- return cache.release();
</del><ins>+ return WTFMove(cache);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void ApplicationCacheStorage::remove(ApplicationCache* cache)
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderarchiveArchiveResourceCollectioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/archive/ArchiveResourceCollection.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/archive/ArchiveResourceCollection.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/archive/ArchiveResourceCollection.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -76,9 +76,9 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<Archive> ArchiveResourceCollection::popSubframeArchive(const String& frameName, const URL& url)
</span><span class="cx"> {
</span><del>- RefPtr<Archive> archive = m_subframes.take(frameName);
</del><ins>+ auto archive = m_subframes.take(frameName);
</ins><span class="cx"> if (archive)
</span><del>- return archive.release();
</del><ins>+ return WTFMove(archive);
</ins><span class="cx">
</span><span class="cx"> return m_subframes.take(url.string());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderarchivecfLegacyWebArchivecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -334,8 +334,8 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- if (RefPtr<ArchiveResource> subresource = createResource(subresourceDict))
- addSubresource(subresource.release());
</del><ins>+ if (auto subresource = createResource(subresourceDict))
+ addSubresource(WTFMove(subresource));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -354,9 +354,9 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<LegacyWebArchive> subframeArchive = create();
</del><ins>+ auto subframeArchive = create();
</ins><span class="cx"> if (subframeArchive->extract(subframeDict))
</span><del>- addSubframeArchive(subframeArchive.release());
</del><ins>+ addSubframeArchive(WTFMove(subframeArchive));
</ins><span class="cx"> else
</span><span class="cx"> LOG(Archives, "LegacyWebArchive - Invalid subframe archive skipped");
</span><span class="cx"> }
</span><span class="lines">@@ -547,8 +547,8 @@
</span><span class="cx"> const String& iconURL = iconDatabase().synchronousIconURLForPageURL(responseURL);
</span><span class="cx"> if (!iconURL.isEmpty() && iconDatabase().synchronousIconDataKnownForIconURL(iconURL)) {
</span><span class="cx"> if (Image* iconImage = iconDatabase().synchronousIconForPageURL(responseURL, IntSize(16, 16))) {
</span><del>- if (RefPtr<ArchiveResource> resource = ArchiveResource::create(iconImage->data(), URL(ParsedURLString, iconURL), "image/x-icon", "", ""))
- subresources.append(resource.release());
</del><ins>+ if (auto resource = ArchiveResource::create(iconImage->data(), URL(ParsedURLString, iconURL), "image/x-icon", "", ""))
+ subresources.append(WTFMove(resource));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -582,9 +582,9 @@
</span><span class="cx"> // Wrap the frameset document in an iframe so it can be pasted into
</span><span class="cx"> // another document (which will have a body or frameset of its own).
</span><span class="cx"> String iframeMarkup = "<iframe frameborder=\"no\" marginwidth=\"0\" marginheight=\"0\" width=\"98%%\" height=\"98%%\" src=\"" + frame->loader().documentLoader()->response().url().string() + "\"></iframe>";
</span><del>- RefPtr<ArchiveResource> iframeResource = ArchiveResource::create(utf8Buffer(iframeMarkup), blankURL(), "text/html", "UTF-8", String());
</del><ins>+ auto iframeResource = ArchiveResource::create(utf8Buffer(iframeMarkup), blankURL(), "text/html", "UTF-8", String());
</ins><span class="cx">
</span><del>- return create(iframeResource.release(), Vector<RefPtr<ArchiveResource>>(), Vector<RefPtr<LegacyWebArchive>> { archive });
</del><ins>+ return create(WTFMove(iframeResource), Vector<RefPtr<ArchiveResource>>(), Vector<RefPtr<LegacyWebArchive>> { archive });
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedImage.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedImage.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/cache/CachedImage.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -334,9 +334,9 @@
</span><span class="cx"> m_image = PDFDocumentImage::create(this);
</span><span class="cx"> #endif
</span><span class="cx"> else if (m_response.mimeType() == "image/svg+xml") {
</span><del>- RefPtr<SVGImage> svgImage = SVGImage::create(*this, url());
- m_svgImageCache = std::make_unique<SVGImageCache>(svgImage.get());
- m_image = svgImage.release();
</del><ins>+ auto svgImage = SVGImage::create(*this, url());
+ m_svgImageCache = std::make_unique<SVGImageCache>(svgImage.ptr());
+ m_image = WTFMove(svgImage);
</ins><span class="cx"> } else {
</span><span class="cx"> m_image = BitmapImage::create(this);
</span><span class="cx"> downcast<BitmapImage>(*m_image).setAllowSubsampling(m_loader && m_loader->frameLoader()->frame().settings().imageSubsamplingEnabled());
</span></span></pre></div>
<a id="trunkSourceWebCoreloadericonIconDatabasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/icon/IconDatabase.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/icon/IconDatabase.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/loader/icon/IconDatabase.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -558,7 +558,7 @@
</span><span class="cx"> icon = getOrCreateIconRecord(iconURL);
</span><span class="cx">
</span><span class="cx"> // Update the data and set the time stamp
</span><del>- icon->setImageData(data.release());
</del><ins>+ icon->setImageData(WTFMove(data));
</ins><span class="cx"> icon->setTimestamp((int)currentTime());
</span><span class="cx">
</span><span class="cx"> // Copy the current retaining pageURLs - if any - to notify them of the change
</span><span class="lines">@@ -893,10 +893,10 @@
</span><span class="cx"> if (IconRecord* icon = m_iconURLToRecordMap.get(iconURL))
</span><span class="cx"> return icon;
</span><span class="cx">
</span><del>- RefPtr<IconRecord> newIcon = IconRecord::create(iconURL);
- m_iconURLToRecordMap.set(iconURL, newIcon.get());
</del><ins>+ auto newIcon = IconRecord::create(iconURL);
+ m_iconURLToRecordMap.set(iconURL, newIcon.ptr());
</ins><span class="cx">
</span><del>- return newIcon.release();
</del><ins>+ return WTFMove(newIcon);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // This method retrieves the existing PageURLRecord, or creates a new one and marks it as "interested in the import" for later notification
</span><span class="lines">@@ -1493,7 +1493,7 @@
</span><span class="cx">
</span><span class="cx"> for (unsigned i = 0; i < icons.size(); ++i) {
</span><span class="cx"> didAnyWork = true;
</span><del>- RefPtr<SharedBuffer> imageData = getImageDataForIconURLFromSQLDatabase(icons[i]->iconURL());
</del><ins>+ auto imageData = getImageDataForIconURLFromSQLDatabase(icons[i]->iconURL());
</ins><span class="cx">
</span><span class="cx"> // Verify this icon still wants to be read from disk
</span><span class="cx"> {
</span><span class="lines">@@ -1503,7 +1503,7 @@
</span><span class="cx">
</span><span class="cx"> if (m_iconsPendingReading.contains(icons[i])) {
</span><span class="cx"> // Set the new data
</span><del>- icons[i]->setImageData(imageData.release());
</del><ins>+ icons[i]->setImageData(WTFMove(imageData));
</ins><span class="cx">
</span><span class="cx"> // Remove this icon from the set that needs to be read
</span><span class="cx"> m_iconsPendingReading.remove(icons[i]);
</span><span class="lines">@@ -1936,7 +1936,7 @@
</span><span class="cx">
</span><span class="cx"> m_getImageDataForIconURLStatement->reset();
</span><span class="cx">
</span><del>- return imageData.release();
</del><ins>+ return WTFMove(imageData);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void IconDatabase::removeIconFromSQLDatabase(const String& iconURL)
</span></span></pre></div>
<a id="trunkSourceWebCorepageDOMWindowcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/DOMWindow.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/DOMWindow.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/DOMWindow.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -812,13 +812,13 @@
</span><span class="cx"> if (!page)
</span><span class="cx"> return 0;
</span><span class="cx">
</span><del>- RefPtr<StorageArea> storageArea = page->sessionStorage()->storageArea(document->securityOrigin());
</del><ins>+ auto storageArea = page->sessionStorage()->storageArea(document->securityOrigin());
</ins><span class="cx"> if (!storageArea->canAccessStorage(m_frame)) {
</span><span class="cx"> ec = SECURITY_ERR;
</span><span class="cx"> return 0;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_sessionStorage = Storage::create(m_frame, storageArea.release());
</del><ins>+ m_sessionStorage = Storage::create(m_frame, WTFMove(storageArea));
</ins><span class="cx"> return m_sessionStorage.get();
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -858,7 +858,7 @@
</span><span class="cx"> if (!page->settings().localStorageEnabled())
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<StorageArea> storageArea = page->storageNamespaceProvider().localStorageArea(*document);
</del><ins>+ auto storageArea = page->storageNamespaceProvider().localStorageArea(*document);
</ins><span class="cx">
</span><span class="cx"> if (!storageArea->canAccessStorage(m_frame)) {
</span><span class="cx"> ec = SECURITY_ERR;
</span><span class="lines">@@ -865,7 +865,7 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_localStorage = Storage::create(m_frame, storageArea.release());
</del><ins>+ m_localStorage = Storage::create(m_frame, WTFMove(storageArea));
</ins><span class="cx"> return m_localStorage.get();
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorepageEventHandlercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/EventHandler.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/EventHandler.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/EventHandler.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -2278,7 +2278,7 @@
</span><span class="cx"> m_shouldOnlyFireDragOverEvent = false;
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>- m_dragTarget = newTarget.release();
</del><ins>+ m_dragTarget = WTFMove(newTarget);
</ins><span class="cx"> return accept;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorepageanimationCompositeAnimationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/animation/CompositeAnimation.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/animation/CompositeAnimation.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/animation/CompositeAnimation.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -168,9 +168,9 @@
</span><span class="cx"> // <https://bugs.webkit.org/show_bug.cgi?id=24787>
</span><span class="cx"> if (!equal && isActiveTransition) {
</span><span class="cx"> // Add the new transition
</span><del>- RefPtr<ImplicitAnimation> implicitAnimation = ImplicitAnimation::create(animation, prop, renderer, this, modifiedCurrentStyle ? modifiedCurrentStyle.get() : fromStyle);
- LOG(Animations, "Created ImplicitAnimation %p on renderer %p for property %s duration %.2f delay %.2f", implicitAnimation.get(), renderer, getPropertyName(prop), animation.duration(), animation.delay());
- m_transitions.set(prop, implicitAnimation.release());
</del><ins>+ auto implicitAnimation = ImplicitAnimation::create(animation, prop, renderer, this, modifiedCurrentStyle ? modifiedCurrentStyle.get() : fromStyle);
+ LOG(Animations, "Created ImplicitAnimation %p on renderer %p for property %s duration %.2f delay %.2f", implicitAnimation.ptr(), renderer, getPropertyName(prop), animation.duration(), animation.delay());
+ m_transitions.set(prop, WTFMove(implicitAnimation));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // We only need one pass for the single prop case
</span></span></pre></div>
<a id="trunkSourceWebCorepagecspContentSecurityPolicycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/csp/ContentSecurityPolicy.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -628,7 +628,7 @@
</span><span class="cx"> // sent explicitly. As for which directive was violated, that's pretty
</span><span class="cx"> // harmless information.
</span><span class="cx">
</span><del>- RefPtr<InspectorObject> cspReport = InspectorObject::create();
</del><ins>+ auto cspReport = InspectorObject::create();
</ins><span class="cx"> cspReport->setString(ASCIILiteral("document-uri"), documentURI);
</span><span class="cx"> cspReport->setString(ASCIILiteral("referrer"), referrer);
</span><span class="cx"> cspReport->setString(ASCIILiteral("violated-directive"), violatedDirectiveText);
</span><span class="lines">@@ -643,7 +643,7 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> RefPtr<InspectorObject> reportObject = InspectorObject::create();
</span><del>- reportObject->setObject(ASCIILiteral("csp-report"), cspReport.release());
</del><ins>+ reportObject->setObject(ASCIILiteral("csp-report"), WTFMove(cspReport));
</ins><span class="cx">
</span><span class="cx"> RefPtr<FormData> report = FormData::create(reportObject->toJSONString().utf8());
</span><span class="cx"> for (const auto& url : reportURIs)
</span></span></pre></div>
<a id="trunkSourceWebCorepagemacServicesOverlayControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/mac/ServicesOverlayController.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/mac/ServicesOverlayController.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/mac/ServicesOverlayController.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -620,9 +620,9 @@
</span><span class="cx"> if (!m_mainFrame.settings().serviceControlsEnabled())
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- RefPtr<PageOverlay> overlay = PageOverlay::create(*this, PageOverlay::OverlayType::Document);
- m_servicesOverlay = overlay.get();
- m_mainFrame.pageOverlayController().installPageOverlay(overlay.release(), PageOverlay::FadeMode::DoNotFade);
</del><ins>+ auto overlay = PageOverlay::create(*this, PageOverlay::OverlayType::Document);
+ m_servicesOverlay = overlay.ptr();
+ m_mainFrame.pageOverlayController().installPageOverlay(WTFMove(overlay), PageOverlay::FadeMode::DoNotFade);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Vector<RefPtr<Range>> ServicesOverlayController::telephoneNumberRangesForFocusedFrame()
</span><span class="lines">@@ -739,7 +739,7 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_activeHighlight = m_nextActiveHighlight.release();
</del><ins>+ m_activeHighlight = WTFMove(m_nextActiveHighlight);
</ins><span class="cx">
</span><span class="cx"> if (m_activeHighlight) {
</span><span class="cx"> m_servicesOverlay->layer().addChild(m_activeHighlight->layer());
</span></span></pre></div>
<a id="trunkSourceWebCorepagescrollingAsyncScrollingCoordinatorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/scrolling/AsyncScrollingCoordinator.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -73,7 +73,7 @@
</span><span class="cx">
</span><span class="cx"> ScrollingStateTree* scrollingStateTree() { return m_scrollingStateTree.get(); }
</span><span class="cx">
</span><del>- PassRefPtr<ScrollingTree> releaseScrollingTree() { return m_scrollingTree.release(); }
</del><ins>+ PassRefPtr<ScrollingTree> releaseScrollingTree() { return WTFMove(m_scrollingTree); }
</ins><span class="cx">
</span><span class="cx"> void updateScrollPositionAfterAsyncScroll(ScrollingNodeID, const FloatPoint&, bool programmaticScroll, SetOrSyncScrollingLayerPosition);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorepagescrollingScrollingStateNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/scrolling/ScrollingStateNode.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/scrolling/ScrollingStateNode.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/scrolling/ScrollingStateNode.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -74,13 +74,13 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<ScrollingStateNode> ScrollingStateNode::cloneAndReset(ScrollingStateTree& adoptiveTree)
</span><span class="cx"> {
</span><del>- RefPtr<ScrollingStateNode> clone = this->clone(adoptiveTree);
</del><ins>+ auto clone = this->clone(adoptiveTree);
</ins><span class="cx">
</span><span class="cx"> // Now that this node is cloned, reset our change properties.
</span><span class="cx"> resetChangedProperties();
</span><span class="cx">
</span><del>- cloneAndResetChildren(*clone, adoptiveTree);
- return clone.release();
</del><ins>+ cloneAndResetChildren(clone.get(), adoptiveTree);
+ return WTFMove(clone);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void ScrollingStateNode::cloneAndResetChildren(ScrollingStateNode& clone, ScrollingStateTree& adoptiveTree)
</span></span></pre></div>
<a id="trunkSourceWebCorepagescrollingScrollingStateTreecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/scrolling/ScrollingStateTree.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/scrolling/ScrollingStateTree.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/page/scrolling/ScrollingStateTree.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -115,16 +115,16 @@
</span><span class="cx"> return 0;
</span><span class="cx">
</span><span class="cx"> if (nodeType == FrameScrollingNode && parentID) {
</span><del>- if (RefPtr<ScrollingStateNode> orphanedNode = m_orphanedSubframeNodes.take(newNodeID)) {
</del><ins>+ if (auto orphanedNode = m_orphanedSubframeNodes.take(newNodeID)) {
</ins><span class="cx"> newNode = orphanedNode.get();
</span><del>- parent->appendChild(orphanedNode.release());
</del><ins>+ parent->appendChild(WTFMove(orphanedNode));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (!newNode) {
</span><del>- RefPtr<ScrollingStateNode> stateNode = createNode(nodeType, newNodeID);
</del><ins>+ auto stateNode = createNode(nodeType, newNodeID);
</ins><span class="cx"> newNode = stateNode.get();
</span><del>- parent->appendChild(stateNode.release());
</del><ins>+ parent->appendChild(WTFMove(stateNode));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioHRTFElevationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/HRTFElevation.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/HRTFElevation.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/audio/HRTFElevation.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -74,12 +74,12 @@
</span><span class="cx"> AudioBus* bus;
</span><span class="cx"> AudioBusMap::iterator iterator = audioBusMap.get().find(subjectName);
</span><span class="cx"> if (iterator == audioBusMap.get().end()) {
</span><del>- RefPtr<AudioBus> concatenatedImpulseResponses = AudioBus::loadPlatformResource(subjectName.utf8().data(), ResponseSampleRate);
</del><ins>+ auto concatenatedImpulseResponses = AudioBus::loadPlatformResource(subjectName.utf8().data(), ResponseSampleRate);
</ins><span class="cx"> ASSERT(concatenatedImpulseResponses);
</span><span class="cx"> if (!concatenatedImpulseResponses)
</span><span class="cx"> return 0;
</span><span class="cx">
</span><del>- bus = concatenatedImpulseResponses.release().leakRef();
</del><ins>+ bus = concatenatedImpulseResponses.leakRef();
</ins><span class="cx"> audioBusMap.get().set(subjectName, bus);
</span><span class="cx"> } else
</span><span class="cx"> bus = iterator->value;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsDisplayRefreshMonitorManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitorManager.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitorManager.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitorManager.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -54,13 +54,13 @@
</span><span class="cx"> return monitor.get();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<DisplayRefreshMonitor> monitor = DisplayRefreshMonitor::create(client);
</del><ins>+ auto monitor = DisplayRefreshMonitor::create(client);
</ins><span class="cx"> if (!monitor)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="cx"> monitor->addClient(client);
</span><span class="cx"> DisplayRefreshMonitor* result = monitor.get();
</span><del>- m_monitors.append(monitor.release());
</del><ins>+ m_monitors.append(WTFMove(monitor));
</ins><span class="cx"> return result;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsFontCascadeFontscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/FontCascadeFonts.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/FontCascadeFonts.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/FontCascadeFonts.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -324,7 +324,7 @@
</span><span class="cx"> if (!originalFont)
</span><span class="cx"> originalFont = &primaryRanges.fontForFirstRange();
</span><span class="cx">
</span><del>- RefPtr<Font> systemFallbackFont = originalFont->systemFallbackFontForCharacter(c, description, m_isForPlatformFont);
</del><ins>+ auto systemFallbackFont = originalFont->systemFallbackFontForCharacter(c, description, m_isForPlatformFont);
</ins><span class="cx"> if (!systemFallbackFont)
</span><span class="cx"> return GlyphData();
</span><span class="cx">
</span><span class="lines">@@ -348,7 +348,7 @@
</span><span class="cx">
</span><span class="cx"> // Keep the system fallback fonts we use alive.
</span><span class="cx"> if (fallbackGlyphData.glyph)
</span><del>- m_systemFallbackFontSet.add(systemFallbackFont.release());
</del><ins>+ m_systemFallbackFontSet.add(WTFMove(systemFallbackFont));
</ins><span class="cx">
</span><span class="cx"> return fallbackGlyphData;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationInbandTextTrackPrivateAVFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -405,7 +405,7 @@
</span><span class="cx">
</span><span class="cx"> LOG(Media, "InbandTextTrackPrivateAVF::processCue(%p) - adding cue \"%s\" for time = %.2f, end = %.2f, position = %.2f, line = %.2f", this, cueData->content().utf8().data(), cueData->startTime().toDouble(), cueData->endTime().toDouble(), cueData->position(), cueData->line());
</span><span class="cx">
</span><del>- client()->addGenericCue(this, cueData.release());
</del><ins>+ client()->addGenericCue(this, WTFMove(cueData));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> m_pendingCueStatus = seeking() ? DeliveredDuringSeek : Valid;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationMediaSelectionGroupAVFObjCmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -129,10 +129,10 @@
</span><span class="cx"> AVMediaSelectionOption* selectedOption = [m_playerItem selectedMediaOptionInMediaSelectionGroup:m_mediaSelectionGroup.get()];
</span><span class="cx">
</span><span class="cx"> for (AVMediaSelectionOption* addedAVOption in addedAVOptions.get()) {
</span><del>- RefPtr<MediaSelectionOptionAVFObjC> addedOption = MediaSelectionOptionAVFObjC::create(*this, addedAVOption);
</del><ins>+ auto addedOption = MediaSelectionOptionAVFObjC::create(*this, addedAVOption);
</ins><span class="cx"> if (addedAVOption == selectedOption)
</span><span class="cx"> m_selectedOption = addedOption.get();
</span><del>- m_options.set(addedAVOption, addedOption.release());
</del><ins>+ m_options.set(addedAVOption, WTFMove(addedOption));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (!m_shouldSelectOptionAutomatically)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationobjcSourceBufferPrivateAVFObjCmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -696,7 +696,7 @@
</span><span class="cx"> if (m_client) {
</span><span class="cx"> RefPtr<MediaSample> mediaSample = MediaSampleAVFObjC::create(sampleBuffer, trackID);
</span><span class="cx"> LOG(MediaSourceSamples, "SourceBufferPrivateAVFObjC::processCodedFrame(%p) - sample(%s)", this, toString(*mediaSample).utf8().data());
</span><del>- m_client->sourceBufferPrivateDidReceiveSample(this, mediaSample.release());
</del><ins>+ m_client->sourceBufferPrivateDidReceiveSample(this, WTFMove(mediaSample));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return true;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscaGraphicsLayerCAcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -3815,8 +3815,8 @@
</span><span class="cx">
</span><span class="cx"> for (auto* childLayer : childLayers) {
</span><span class="cx"> GraphicsLayerCA& childLayerCA = downcast<GraphicsLayerCA>(*childLayer);
</span><del>- if (RefPtr<PlatformCALayer> platformLayer = childLayerCA.fetchCloneLayers(replicaRoot, replicaState, IntermediateCloneLevel))
- clonalSublayers.append(platformLayer.release());
</del><ins>+ if (auto platformLayer = childLayerCA.fetchCloneLayers(replicaRoot, replicaState, IntermediateCloneLevel))
+ clonalSublayers.append(WTFMove(platformLayer));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> replicaState.pop();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscaPlatformCALayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/ca/PlatformCALayer.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/ca/PlatformCALayer.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/ca/PlatformCALayer.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -135,13 +135,13 @@
</span><span class="cx">
</span><span class="cx"> if ((layer = layerPool().takeLayerWithSize(size))) {
</span><span class="cx"> layer->setOwner(client);
</span><del>- return layer.release();
</del><ins>+ return WTFMove(layer);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> layer = createCompatibleLayer(layerType, client);
</span><span class="cx"> layer->setBounds(FloatRect(FloatPoint(), size));
</span><span class="cx">
</span><del>- return layer.release();
</del><ins>+ return WTFMove(layer);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void PlatformCALayer::moveToLayerPool()
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscgImageBufferDataCGcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> if (area.hasOverflowed())
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<Uint8ClampedArray> result = Uint8ClampedArray::createUninitialized(area.unsafeGet());
</del><ins>+ auto result = Uint8ClampedArray::createUninitialized(area.unsafeGet());
</ins><span class="cx"> unsigned char* resultData = result->data();
</span><span class="cx"> if (!resultData) {
</span><span class="cx"> WTFLogAlways("ImageBufferData: Unable to create buffer. Requested size was %d x %d = %u\n", rect.width(), rect.height(), area.unsafeGet());
</span><span class="lines">@@ -139,7 +139,7 @@
</span><span class="cx"> Checked<int> height = endy - originy;
</span><span class="cx">
</span><span class="cx"> if (width.unsafeGet() <= 0 || height.unsafeGet() <= 0)
</span><del>- return result.release();
</del><ins>+ return result;
</ins><span class="cx">
</span><span class="cx"> unsigned destBytesPerRow = 4 * rect.width();
</span><span class="cx"> unsigned char* destRows = resultData + desty * destBytesPerRow + destx * 4;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFilterEffectcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/filters/FilterEffect.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -237,9 +237,9 @@
</span><span class="cx"> IntSize scaledSize(rect.size());
</span><span class="cx"> ASSERT(!ImageBuffer::sizeNeedsClamping(scaledSize));
</span><span class="cx"> scaledSize.scale(m_filter.filterScale());
</span><del>- RefPtr<Uint8ClampedArray> imageData = Uint8ClampedArray::createUninitialized(scaledSize.width() * scaledSize.height() * 4);
</del><ins>+ auto imageData = Uint8ClampedArray::createUninitialized(scaledSize.width() * scaledSize.height() * 4);
</ins><span class="cx"> copyUnmultipliedImage(imageData.get(), rect);
</span><del>- return imageData.release();
</del><ins>+ return WTFMove(imageData);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<Uint8ClampedArray> FilterEffect::asPremultipliedImage(const IntRect& rect)
</span><span class="lines">@@ -247,9 +247,9 @@
</span><span class="cx"> IntSize scaledSize(rect.size());
</span><span class="cx"> ASSERT(!ImageBuffer::sizeNeedsClamping(scaledSize));
</span><span class="cx"> scaledSize.scale(m_filter.filterScale());
</span><del>- RefPtr<Uint8ClampedArray> imageData = Uint8ClampedArray::createUninitialized(scaledSize.width() * scaledSize.height() * 4);
</del><ins>+ auto imageData = Uint8ClampedArray::createUninitialized(scaledSize.width() * scaledSize.height() * 4);
</ins><span class="cx"> copyPremultipliedImage(imageData.get(), rect);
</span><del>- return imageData.release();
</del><ins>+ return WTFMove(imageData);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> inline void FilterEffect::copyImageBytes(Uint8ClampedArray* source, Uint8ClampedArray* destination, const IntRect& rect)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsmacImageMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/mac/ImageMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -68,9 +68,9 @@
</span><span class="cx"> NSString *imagePath = [bundle pathForResource:[NSString stringWithUTF8String:name] ofType:@"png"];
</span><span class="cx"> NSData *namedImageData = [NSData dataWithContentsOfFile:imagePath];
</span><span class="cx"> if (namedImageData) {
</span><del>- RefPtr<Image> image = BitmapImage::create();
</del><ins>+ auto image = BitmapImage::create();
</ins><span class="cx"> image->setData(SharedBuffer::wrapNSData(namedImageData), true);
</span><del>- return image.release();
</del><ins>+ return WTFMove(image);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // We have reports indicating resource loads are failing, but we don't yet know the root cause(s).
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsopenglGraphicsContext3DOpenGLCommoncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -132,8 +132,10 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<GraphicsContext3D> GraphicsContext3D::createForCurrentGLContext()
</span><span class="cx"> {
</span><del>- RefPtr<GraphicsContext3D> context = adoptRef(new GraphicsContext3D(Attributes(), 0, GraphicsContext3D::RenderToCurrentGLContext));
- return context->m_private ? context.release() : 0;
</del><ins>+ auto context = adoptRef(*new GraphicsContext3D(Attributes(), 0, GraphicsContext3D::RenderToCurrentGLContext));
+ if (!context->m_private)
+ return nullptr;
+ return WTFMove(context);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void GraphicsContext3D::validateDepthStencil(const char* packedDepthStencilExtension)
</span><span class="lines">@@ -205,7 +207,7 @@
</span><span class="cx"> if (m_attrs.premultipliedAlpha)
</span><span class="cx"> return 0;
</span><span class="cx">
</span><del>- RefPtr<ImageData> imageData = ImageData::create(IntSize(m_currentWidth, m_currentHeight));
</del><ins>+ auto imageData = ImageData::create(IntSize(m_currentWidth, m_currentHeight));
</ins><span class="cx"> unsigned char* pixels = imageData->data()->data();
</span><span class="cx"> int totalBytes = 4 * m_currentWidth * m_currentHeight;
</span><span class="cx">
</span><span class="lines">@@ -215,7 +217,7 @@
</span><span class="cx"> for (int i = 0; i < totalBytes; i += 4)
</span><span class="cx"> std::swap(pixels[i], pixels[i + 2]);
</span><span class="cx">
</span><del>- return imageData.release();
</del><ins>+ return WTFMove(imageData);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void GraphicsContext3D::prepareTexture()
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreammacRealtimeMediaSourceCenterMaccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/mediastream/mac/RealtimeMediaSourceCenterMac.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -116,10 +116,10 @@
</span><span class="cx"> }
</span><span class="cx"> // FIXME: Consider the constraints when choosing among multiple devices. For now just select the first available
</span><span class="cx"> // device of the appropriate type.
</span><del>- RefPtr<RealtimeMediaSource> audioSource = AVCaptureDeviceManager::singleton().bestSourcesForTypeAndConstraints(RealtimeMediaSource::Audio, audioConstraints.get()).at(0);
</del><ins>+ auto audioSource = AVCaptureDeviceManager::singleton().bestSourcesForTypeAndConstraints(RealtimeMediaSource::Audio, audioConstraints.get()).at(0);
</ins><span class="cx"> ASSERT(audioSource);
</span><span class="cx">
</span><del>- audioSources.append(audioSource.release());
</del><ins>+ audioSources.append(WTFMove(audioSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (videoConstraints) {
</span><span class="lines">@@ -131,10 +131,10 @@
</span><span class="cx"> }
</span><span class="cx"> // FIXME: Consider the constraints when choosing among multiple devices. For now just select the first available
</span><span class="cx"> // device of the appropriate type.
</span><del>- RefPtr<RealtimeMediaSource> videoSource = AVCaptureDeviceManager::singleton().bestSourcesForTypeAndConstraints(RealtimeMediaSource::Video, videoConstraints.get()).at(0);
</del><ins>+ auto videoSource = AVCaptureDeviceManager::singleton().bestSourcesForTypeAndConstraints(RealtimeMediaSource::Video, videoConstraints.get()).at(0);
</ins><span class="cx"> ASSERT(videoSource);
</span><span class="cx">
</span><del>- videoSources.append(videoSource.release());
</del><ins>+ videoSources.append(WTFMove(videoSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> client->didCreateStream(MediaStreamPrivate::create(audioSources, videoSources));
</span><span class="lines">@@ -147,14 +147,14 @@
</span><span class="cx"> Vector<RefPtr<RealtimeMediaSource>> videoSources;
</span><span class="cx">
</span><span class="cx"> if (!audioDeviceID.isEmpty()) {
</span><del>- RefPtr<RealtimeMediaSource> audioSource = AVCaptureDeviceManager::singleton().sourceWithUID(audioDeviceID, RealtimeMediaSource::Audio, nullptr);
</del><ins>+ auto audioSource = AVCaptureDeviceManager::singleton().sourceWithUID(audioDeviceID, RealtimeMediaSource::Audio, nullptr);
</ins><span class="cx"> if (audioSource)
</span><del>- audioSources.append(audioSource.release());
</del><ins>+ audioSources.append(WTFMove(audioSource));
</ins><span class="cx"> }
</span><span class="cx"> if (!videoDeviceID.isEmpty()) {
</span><del>- RefPtr<RealtimeMediaSource> videoSource = AVCaptureDeviceManager::singleton().sourceWithUID(videoDeviceID, RealtimeMediaSource::Video, nullptr);
</del><ins>+ auto videoSource = AVCaptureDeviceManager::singleton().sourceWithUID(videoDeviceID, RealtimeMediaSource::Video, nullptr);
</ins><span class="cx"> if (videoSource)
</span><del>- videoSources.append(videoSource.release());
</del><ins>+ videoSources.append(WTFMove(videoSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> client->didCreateStream(MediaStreamPrivate::create(audioSources, videoSources));
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmockMockRealtimeMediaSourceCentercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -81,8 +81,8 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<RealtimeMediaSource> audioSource = MockRealtimeAudioSource::create();
- audioSources.append(audioSource.release());
</del><ins>+ auto audioSource = MockRealtimeAudioSource::create();
+ audioSources.append(WTFMove(audioSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (videoConstraints) {
</span><span class="lines">@@ -92,8 +92,8 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<RealtimeMediaSource> videoSource = MockRealtimeVideoSource::create();
- videoSources.append(videoSource.release());
</del><ins>+ auto videoSource = MockRealtimeVideoSource::create();
+ videoSources.append(WTFMove(videoSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> client->constraintsValidated(audioSources, videoSources);
</span><span class="lines">@@ -115,8 +115,8 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<RealtimeMediaSource> audioSource = MockRealtimeAudioSource::create();
- audioSources.append(audioSource.release());
</del><ins>+ auto audioSource = MockRealtimeAudioSource::create();
+ audioSources.append(WTFMove(audioSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> if (videoConstraints) {
</span><span class="lines">@@ -126,8 +126,8 @@
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<RealtimeMediaSource> videoSource = MockRealtimeVideoSource::create();
- videoSources.append(videoSource.release());
</del><ins>+ auto videoSource = MockRealtimeVideoSource::create();
+ videoSources.append(WTFMove(videoSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> client->didCreateStream(MediaStreamPrivate::create(audioSources, videoSources));
</span><span class="lines">@@ -140,12 +140,12 @@
</span><span class="cx"> Vector<RefPtr<RealtimeMediaSource>> videoSources;
</span><span class="cx">
</span><span class="cx"> if (!audioDeviceID.isEmpty() && audioDeviceID == MockRealtimeMediaSource::mockAudioSourcePersistentID()) {
</span><del>- RefPtr<RealtimeMediaSource> audioSource = MockRealtimeAudioSource::create();
- audioSources.append(audioSource.release());
</del><ins>+ auto audioSource = MockRealtimeAudioSource::create();
+ audioSources.append(WTFMove(audioSource));
</ins><span class="cx"> }
</span><span class="cx"> if (!videoDeviceID.isEmpty() && videoDeviceID == MockRealtimeMediaSource::mockVideoSourcePersistentID()) {
</span><del>- RefPtr<RealtimeMediaSource> videoSource = MockRealtimeVideoSource::create();
- videoSources.append(videoSource.release());
</del><ins>+ auto videoSource = MockRealtimeVideoSource::create();
+ videoSources.append(WTFMove(videoSource));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> client->didCreateStream(MediaStreamPrivate::create(audioSources, videoSources));
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkBlobRegistryImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/BlobRegistryImpl.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/BlobRegistryImpl.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/network/BlobRegistryImpl.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -125,7 +125,7 @@
</span><span class="cx"> ASSERT(isMainThread());
</span><span class="cx"> registerBlobResourceHandleConstructor();
</span><span class="cx">
</span><del>- RefPtr<BlobData> blobData = BlobData::create(contentType);
</del><ins>+ auto blobData = BlobData::create(contentType);
</ins><span class="cx">
</span><span class="cx"> // The blob data is stored in the "canonical" way. That is, it only contains a list of Data and File items.
</span><span class="cx"> // 1) The Data item is denoted by the raw data and the range.
</span><span class="lines">@@ -151,7 +151,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_blobs.set(url.string(), blobData.release());
</del><ins>+ m_blobs.set(url.string(), WTFMove(blobData));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void BlobRegistryImpl::registerBlobURL(const URL& url, const URL& srcURL)
</span><span class="lines">@@ -208,11 +208,11 @@
</span><span class="cx"> end = originalSize;
</span><span class="cx">
</span><span class="cx"> unsigned long long newLength = end - start;
</span><del>- RefPtr<BlobData> newData = BlobData::create(originalData->contentType());
</del><ins>+ auto newData = BlobData::create(originalData->contentType());
</ins><span class="cx">
</span><del>- appendStorageItems(newData.get(), originalData->items(), start, newLength);
</del><ins>+ appendStorageItems(newData.ptr(), originalData->items(), start, newLength);
</ins><span class="cx">
</span><del>- m_blobs.set(url.string(), newData.release());
</del><ins>+ m_blobs.set(url.string(), WTFMove(newData));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void BlobRegistryImpl::unregisterBlobURL(const URL& url)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkResourceHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/ResourceHandle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/ResourceHandle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/network/ResourceHandle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -93,13 +93,13 @@
</span><span class="cx"> if (protocolMapItem != builtinResourceHandleConstructorMap().end())
</span><span class="cx"> return protocolMapItem->value(request, client);
</span><span class="cx">
</span><del>- RefPtr<ResourceHandle> newHandle(adoptRef(new ResourceHandle(context, request, client, defersLoading, shouldContentSniff)));
</del><ins>+ auto newHandle = adoptRef(*new ResourceHandle(context, request, client, defersLoading, shouldContentSniff));
</ins><span class="cx">
</span><span class="cx"> if (newHandle->d->m_scheduledFailureType != NoFailure)
</span><del>- return newHandle.release();
</del><ins>+ return WTFMove(newHandle);
</ins><span class="cx">
</span><span class="cx"> if (newHandle->start())
</span><del>- return newHandle.release();
</del><ins>+ return WTFMove(newHandle);
</ins><span class="cx">
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkcfFormDataStreamCFNetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -200,7 +200,7 @@
</span><span class="cx"> FormCreationContext* formContext = static_cast<FormCreationContext*>(context);
</span><span class="cx">
</span><span class="cx"> FormStreamFields* newInfo = new FormStreamFields;
</span><del>- newInfo->formData = formContext->formData.release();
</del><ins>+ newInfo->formData = WTFMove(formContext->formData);
</ins><span class="cx"> newInfo->currentStream = 0;
</span><span class="cx"> newInfo->currentStreamRangeLength = BlobDataItem::toEndOfFile;
</span><span class="cx"> newInfo->formStream = stream; // Don't retain. That would create a reference cycle.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformtextBidiContextcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/text/BidiContext.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/text/BidiContext.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/platform/text/BidiContext.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -92,7 +92,7 @@
</span><span class="cx"> for (int i = contexts.size() - 1; i > 0; --i)
</span><span class="cx"> topContext = copyContextAndRebaselineLevel(contexts[i - 1], topContext.get());
</span><span class="cx">
</span><del>- return topContext.release();
</del><ins>+ return WTFMove(topContext);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool operator==(const BidiContext& c1, const BidiContext& c2)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingFilterEffectRenderercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/FilterEffectRenderer.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/FilterEffectRenderer.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/rendering/FilterEffectRenderer.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -288,7 +288,7 @@
</span><span class="cx"> effect->inputEffects().append(previousEffect);
</span><span class="cx"> m_effects.append(effect);
</span><span class="cx"> }
</span><del>- previousEffect = effect.release();
</del><ins>+ previousEffect = WTFMove(effect);
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayer.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayer.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/rendering/RenderLayer.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -3116,7 +3116,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> renderer().view().frameView().addChild(widget.get());
</span><del>- return widget.release();
</del><ins>+ return WTFMove(widget);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void RenderLayer::destroyScrollbar(ScrollbarOrientation orientation)
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListBox.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListBox.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/rendering/RenderListBox.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -911,7 +911,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> view().frameView().addChild(widget.get());
</span><del>- return widget.release();
</del><ins>+ return WTFMove(widget);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void RenderListBox::destroyScrollbar()
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderMenuListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderMenuList.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderMenuList.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/rendering/RenderMenuList.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -578,7 +578,7 @@
</span><span class="cx"> widget = RenderScrollbar::createCustomScrollbar(scrollableArea, orientation, &selectElement());
</span><span class="cx"> else
</span><span class="cx"> widget = Scrollbar::createNativeScrollbar(scrollableArea, orientation, controlSize);
</span><del>- return widget.release();
</del><ins>+ return WTFMove(widget);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> int RenderMenuList::clientInsetLeft() const
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderSearchFieldcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderSearchField.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderSearchField.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/rendering/RenderSearchField.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -354,7 +354,7 @@
</span><span class="cx"> widget = RenderScrollbar::createCustomScrollbar(scrollableArea, orientation, &inputElement());
</span><span class="cx"> else
</span><span class="cx"> widget = Scrollbar::createNativeScrollbar(scrollableArea, orientation, controlSize);
</span><del>- return widget.release();
</del><ins>+ return WTFMove(widget);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> LayoutUnit RenderSearchField::computeLogicalHeightLimit() const
</span></span></pre></div>
<a id="trunkSourceWebCorereplayReplayControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/replay/ReplayController.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/replay/ReplayController.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/replay/ReplayController.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx"> LOG(WebReplay, "%-20s Clearing input cursors for page: %p\n", "ReplayController", &m_page);
</span><span class="cx">
</span><span class="cx"> m_activeCursor = nullptr;
</span><del>- RefPtr<ReplaySessionSegment> unloadedSegment = m_loadedSegment.release();
</del><ins>+ auto unloadedSegment = WTFMove(m_loadedSegment);
</ins><span class="cx"> for (Frame* frame = &m_page.mainFrame(); frame; frame = frame->tree().traverseNext()) {
</span><span class="cx"> frame->script().globalObject(mainThreadNormalWorld())->setInputCursor(m_emptyCursor.copyRef());
</span><span class="cx"> frame->document()->setInputCursor(m_emptyCursor.copyRef());
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGFEDiffuseLightingElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/svg/SVGFEDiffuseLightingElement.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -179,7 +179,7 @@
</span><span class="cx"> if (!input1)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<LightSource> lightSource = SVGFELightElement::findLightSource(this);
</del><ins>+ auto lightSource = SVGFELightElement::findLightSource(this);
</ins><span class="cx"> if (!lightSource)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="lines">@@ -190,7 +190,7 @@
</span><span class="cx"> Color color = renderer->style().svgStyle().lightingColor();
</span><span class="cx">
</span><span class="cx"> RefPtr<FilterEffect> effect = FEDiffuseLighting::create(filter, color, surfaceScale(), diffuseConstant(),
</span><del>- kernelUnitLengthX(), kernelUnitLengthY(), lightSource.release());
</del><ins>+ kernelUnitLengthX(), kernelUnitLengthY(), WTFMove(lightSource));
</ins><span class="cx"> effect->inputEffects().append(input1);
</span><span class="cx"> return effect;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoresvgSVGFESpecularLightingElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/SVGFESpecularLightingElement.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/SVGFESpecularLightingElement.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/svg/SVGFESpecularLightingElement.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -190,7 +190,7 @@
</span><span class="cx"> if (!input1)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<LightSource> lightSource = SVGFELightElement::findLightSource(this);
</del><ins>+ auto lightSource = SVGFELightElement::findLightSource(this);
</ins><span class="cx"> if (!lightSource)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="lines">@@ -201,7 +201,7 @@
</span><span class="cx"> Color color = renderer->style().svgStyle().lightingColor();
</span><span class="cx">
</span><span class="cx"> RefPtr<FilterEffect> effect = FESpecularLighting::create(filter, color, surfaceScale(), specularConstant(),
</span><del>- specularExponent(), kernelUnitLengthX(), kernelUnitLengthY(), lightSource.release());
</del><ins>+ specularExponent(), kernelUnitLengthX(), kernelUnitLengthY(), WTFMove(lightSource));
</ins><span class="cx"> effect->inputEffects().append(input1);
</span><span class="cx"> return effect;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoresvgpropertiesSVGListPropertyh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/svg/properties/SVGListProperty.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/svg/properties/SVGListProperty.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/svg/properties/SVGListProperty.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -203,7 +203,7 @@
</span><span class="cx"> m_wrappers->at(index) = wrapper;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return wrapper.release();
</del><ins>+ return WTFMove(wrapper);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // SVGList::insertItemBefore()
</span><span class="lines">@@ -250,7 +250,7 @@
</span><span class="cx">
</span><span class="cx"> // Spec: If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
</span><span class="cx"> if (!processIncomingListItemWrapper(newItem, &index))
</span><del>- return newItem.release();
</del><ins>+ return WTFMove(newItem);
</ins><span class="cx">
</span><span class="cx"> // Spec: Inserts a new item into the list at the specified position. The index of the item before which the new item is to be
</span><span class="cx"> // inserted. The first item is number 0. If the index is equal to 0, then the new item is inserted at the front of the list.
</span><span class="lines">@@ -260,7 +260,7 @@
</span><span class="cx"> m_wrappers->insert(index, newItem);
</span><span class="cx">
</span><span class="cx"> commitChange();
</span><del>- return newItem;
</del><ins>+ return WTFMove(newItem);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // SVGList::replaceItem()
</span><span class="lines">@@ -385,7 +385,7 @@
</span><span class="cx"> m_values->remove(index);
</span><span class="cx">
</span><span class="cx"> commitChange();
</span><del>- return oldItem.release();
</del><ins>+ return WTFMove(oldItem);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // SVGList::appendItem()
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerThreadcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerThread.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerThread.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/workers/WorkerThread.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -153,7 +153,7 @@
</span><span class="cx">
</span><span class="cx"> {
</span><span class="cx"> LockHolder lock(m_threadCreationMutex);
</span><del>- m_workerGlobalScope = createWorkerGlobalScope(m_startupData->m_scriptURL, m_startupData->m_userAgent, m_startupData->m_contentSecurityPolicyResponseHeaders, m_startupData->m_shouldBypassMainWorldContentSecurityPolicy, m_startupData->m_topOrigin.release());
</del><ins>+ m_workerGlobalScope = createWorkerGlobalScope(m_startupData->m_scriptURL, m_startupData->m_userAgent, m_startupData->m_contentSecurityPolicyResponseHeaders, m_startupData->m_shouldBypassMainWorldContentSecurityPolicy, WTFMove(m_startupData->m_topOrigin));
</ins><span class="cx">
</span><span class="cx"> if (m_runLoop.terminated()) {
</span><span class="cx"> // The worker was terminated before the thread had a chance to run. Since the context didn't exist yet,
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXMLHttpRequestcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XMLHttpRequest.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XMLHttpRequest.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/xml/XMLHttpRequest.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -798,7 +798,7 @@
</span><span class="cx"> // Cancelling m_loader may trigger a window.onload callback which can call open() on the same xhr.
</span><span class="cx"> // This would create internalAbort reentrant call.
</span><span class="cx"> // m_loader is set to null before being cancelled to exit early in any reentrant internalAbort() call.
</span><del>- RefPtr<ThreadableLoader> loader = m_loader.release();
</del><ins>+ auto loader = WTFMove(m_loader);
</ins><span class="cx"> loader->cancel();
</span><span class="cx">
</span><span class="cx"> // If window.onload callback calls open() and send() on the same xhr, m_loader is now set to a new value.
</span></span></pre></div>
<a id="trunkSourceWebCorexmlXPathStepcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/XPathStep.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/XPathStep.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebCore/xml/XPathStep.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -343,10 +343,10 @@
</span><span class="cx">
</span><span class="cx"> // Avoid lazily creating attribute nodes for attributes that we do not need anyway.
</span><span class="cx"> if (m_nodeTest.m_kind == NodeTest::NameTest && m_nodeTest.m_data != starAtom) {
</span><del>- RefPtr<Attr> attr = contextElement.getAttributeNodeNS(m_nodeTest.m_namespaceURI, m_nodeTest.m_data);
</del><ins>+ auto attr = contextElement.getAttributeNodeNS(m_nodeTest.m_namespaceURI, m_nodeTest.m_data);
</ins><span class="cx"> if (attr && attr->namespaceURI() != XMLNSNames::xmlnsNamespaceURI) { // In XPath land, namespace nodes are not accessible on the attribute axis.
</span><span class="cx"> if (nodeMatches(*attr, AttributeAxis, m_nodeTest)) // Still need to check merged predicates.
</span><del>- nodes.append(attr.release());
</del><ins>+ nodes.append(WTFMove(attr));
</ins><span class="cx"> }
</span><span class="cx"> return;
</span><span class="cx"> }
</span><span class="lines">@@ -355,9 +355,9 @@
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="cx"> for (const Attribute& attribute : contextElement.attributesIterator()) {
</span><del>- RefPtr<Attr> attr = contextElement.ensureAttr(attribute.name());
- if (nodeMatches(*attr, AttributeAxis, m_nodeTest))
- nodes.append(attr.release());
</del><ins>+ auto attr = contextElement.ensureAttr(attribute.name());
+ if (nodeMatches(attr.get(), AttributeAxis, m_nodeTest))
+ nodes.append(WTFMove(attr));
</ins><span class="cx"> }
</span><span class="cx"> return;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/ChangeLog        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2016-06-20 Keith Rollin <krollin@apple.com>
+
+ Remove RefPtr::release() and change calls sites to use WTFMove()
+ https://bugs.webkit.org/show_bug.cgi?id=158369
+
+ Reviewed by Chris Dumez.
+
+ RefPtr::release() releases its managed pointer awkwardly. It's more
+ direct and clearer to use WTFMove to transfer ownership of the managed
+ pointer.
+
+ As part of this cleanup, also change a lot of explicit data types to
+ 'auto'.
+
+ * Storage/StorageAreaImpl.cpp:
+ (WebCore::StorageAreaImpl::setItem):
+ (WebCore::StorageAreaImpl::removeItem):
+
</ins><span class="cx"> 2016-06-13 Alex Christensen <achristensen@webkit.org>
</span><span class="cx">
</span><span class="cx"> Add WebSocketProvider stub
</span></span></pre></div>
<a id="trunkSourceWebKitStorageStorageAreaImplcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/Storage/StorageAreaImpl.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/Storage/StorageAreaImpl.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/Storage/StorageAreaImpl.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -139,9 +139,9 @@
</span><span class="cx"> blockUntilImportComplete();
</span><span class="cx">
</span><span class="cx"> String oldValue;
</span><del>- RefPtr<StorageMap> newMap = m_storageMap->setItem(key, value, oldValue, quotaException);
</del><ins>+ auto newMap = m_storageMap->setItem(key, value, oldValue, quotaException);
</ins><span class="cx"> if (newMap)
</span><del>- m_storageMap = newMap.release();
</del><ins>+ m_storageMap = WTFMove(newMap);
</ins><span class="cx">
</span><span class="cx"> if (quotaException)
</span><span class="cx"> return;
</span><span class="lines">@@ -161,9 +161,9 @@
</span><span class="cx"> blockUntilImportComplete();
</span><span class="cx">
</span><span class="cx"> String oldValue;
</span><del>- RefPtr<StorageMap> newMap = m_storageMap->removeItem(key, oldValue);
</del><ins>+ auto newMap = m_storageMap->removeItem(key, oldValue);
</ins><span class="cx"> if (newMap)
</span><del>- m_storageMap = newMap.release();
</del><ins>+ m_storageMap = WTFMove(newMap);
</ins><span class="cx">
</span><span class="cx"> if (oldValue.isNull())
</span><span class="cx"> return;
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/ChangeLog        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1,3 +1,35 @@
</span><ins>+2016-06-20 Keith Rollin <krollin@apple.com>
+
+ Remove RefPtr::release() and change calls sites to use WTFMove()
+ https://bugs.webkit.org/show_bug.cgi?id=158369
+
+ Reviewed by Chris Dumez.
+
+ RefPtr::release() releases its managed pointer awkwardly. It's more
+ direct and clearer to use WTFMove to transfer ownership of the managed
+ pointer.
+
+ As part of this cleanup, also change a lot of explicit data types to
+ 'auto'.
+
+ * Plugins/Hosted/NetscapePluginHostManager.mm:
+ (WebKit::NetscapePluginHostManager::instantiatePlugin):
+ * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
+ (WebKit::NetscapePluginInstanceProxy::create):
+ (WebKit::NetscapePluginInstanceProxy::loadRequest):
+ (WebKit::NetscapePluginInstanceProxy::demarshalValueFromArray):
+ * WebCoreSupport/WebFrameLoaderClient.mm:
+ (-[WebFramePolicyListener receivedPolicyDecision:]):
+ * WebCoreSupport/WebSecurityOrigin.mm:
+ (-[WebSecurityOrigin initWithURL:]):
+ * WebView/WebArchive.mm:
+ (-[WebArchive initWithMainResource:subresources:subframeArchives:]):
+ (-[WebArchive initWithData:]):
+ * WebView/WebDataSource.mm:
+ (-[WebDataSource mainResource]):
+ * WebView/WebFrame.mm:
+ (-[WebFrame _documentFragmentWithNodesAsParagraphs:]):
+
</ins><span class="cx"> 2016-06-15 Alexey Proskuryakov <ap@apple.com>
</span><span class="cx">
</span><span class="cx"> +[WebHTMLRepresentation supportedMIMETypes] leaks
</span></span></pre></div>
<a id="trunkSourceWebKitmacPluginsHostedNetscapePluginHostManagermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginHostManager.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -272,7 +272,7 @@
</span><span class="cx"> instance->setRenderContextID(reply->m_renderContextID);
</span><span class="cx"> instance->setRendererType(reply->m_rendererType);
</span><span class="cx">
</span><del>- return instance.release();
</del><ins>+ return WTFMove(instance);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void NetscapePluginHostManager::createPropertyListFile(const String& pluginPath, cpu_type_t pluginArchitecture, const String& bundleIdentifier)
</span></span></pre></div>
<a id="trunkSourceWebKitmacPluginsHostedNetscapePluginInstanceProxymm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/Plugins/Hosted/NetscapePluginInstanceProxy.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -248,9 +248,9 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<NetscapePluginInstanceProxy> NetscapePluginInstanceProxy::create(NetscapePluginHostProxy* pluginHostProxy, WebHostedNetscapePluginView *pluginView, bool fullFramePlugin)
</span><span class="cx"> {
</span><del>- RefPtr<NetscapePluginInstanceProxy> proxy = adoptRef(new NetscapePluginInstanceProxy(pluginHostProxy, pluginView, fullFramePlugin));
- pluginHostProxy->addPluginInstance(proxy.get());
- return proxy.release();
</del><ins>+ auto proxy = adoptRef(*new NetscapePluginInstanceProxy(pluginHostProxy, pluginView, fullFramePlugin));
+ pluginHostProxy->addPluginInstance(proxy.ptr());
+ return WTFMove(proxy);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> NetscapePluginInstanceProxy::~NetscapePluginInstanceProxy()
</span><span class="lines">@@ -801,8 +801,8 @@
</span><span class="cx"> return NPERR_INVALID_PARAM;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<PluginRequest> pluginRequest = PluginRequest::create(requestID, request, target, allowPopups);
- m_pluginRequests.append(pluginRequest.release());
</del><ins>+ auto pluginRequest = PluginRequest::create(requestID, request, target, allowPopups);
+ m_pluginRequests.append(WTFMove(pluginRequest));
</ins><span class="cx"> m_requestTimer.startOneShot(0);
</span><span class="cx"> } else {
</span><span class="cx"> RefPtr<HostedNetscapePluginStream> stream = HostedNetscapePluginStream::create(this, requestID, request);
</span><span class="lines">@@ -1372,11 +1372,11 @@
</span><span class="cx"> if (!frame->script().canExecuteScripts(NotAboutToExecuteScript))
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- RefPtr<RootObject> rootObject = frame->script().createRootObject(m_pluginView);
</del><ins>+ auto rootObject = frame->script().createRootObject(m_pluginView);
</ins><span class="cx"> if (!rootObject)
</span><span class="cx"> return false;
</span><span class="cx">
</span><del>- result = ProxyInstance::create(rootObject.release(), this, objectID)->createRuntimeObject(exec);
</del><ins>+ result = ProxyInstance::create(WTFMove(rootObject), this, objectID)->createRuntimeObject(exec);
</ins><span class="cx"> return true;
</span><span class="cx"> }
</span><span class="cx"> default:
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebFrameLoaderClientmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -2348,7 +2348,7 @@
</span><span class="cx">
</span><span class="cx"> - (void)receivedPolicyDecision:(PolicyAction)action
</span><span class="cx"> {
</span><del>- RefPtr<Frame> frame = _frame.release();
</del><ins>+ auto frame = WTFMove(_frame);
</ins><span class="cx"> if (!frame)
</span><span class="cx"> return;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebCoreSupportWebSecurityOriginmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/WebCoreSupport/WebSecurityOrigin.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -54,8 +54,8 @@
</span><span class="cx"> if (!self)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- RefPtr<SecurityOrigin> origin = SecurityOrigin::create(URL([url absoluteURL]));
- SecurityOrigin* rawOrigin = origin.release().leakRef();
</del><ins>+ auto origin = SecurityOrigin::create(URL([url absoluteURL]));
+ SecurityOrigin* rawOrigin = &origin.leakRef();
</ins><span class="cx"> _private = reinterpret_cast<WebSecurityOriginPrivate *>(rawOrigin);
</span><span class="cx">
</span><span class="cx"> return self;
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebArchivemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebArchive.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebArchive.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/WebView/WebArchive.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -175,7 +175,7 @@
</span><span class="cx"> return nil;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<ArchiveResource> coreMainResource = mainResource ? [mainResource _coreResource] : 0;
</del><ins>+ RefPtr<ArchiveResource> coreMainResource = mainResource ? [mainResource _coreResource] : nullptr;
</ins><span class="cx">
</span><span class="cx"> Vector<RefPtr<ArchiveResource>> coreResources;
</span><span class="cx"> for (WebResource *subresource in subresources)
</span><span class="lines">@@ -185,13 +185,13 @@
</span><span class="cx"> for (WebArchive *subframeArchive in subframeArchives)
</span><span class="cx"> coreArchives.append([subframeArchive->_private coreArchive]);
</span><span class="cx">
</span><del>- RefPtr<LegacyWebArchive> coreArchive = LegacyWebArchive::create(coreMainResource.release(), WTFMove(coreResources), WTFMove(coreArchives));
</del><ins>+ auto coreArchive = LegacyWebArchive::create(WTFMove(coreMainResource), WTFMove(coreResources), WTFMove(coreArchives));
</ins><span class="cx"> if (!coreArchive) {
</span><span class="cx"> [self release];
</span><span class="cx"> return nil;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- [_private setCoreArchive:coreArchive.release()];
</del><ins>+ [_private setCoreArchive:WTFMove(coreArchive)];
</ins><span class="cx">
</span><span class="cx"> return self;
</span><span class="cx"> }
</span><span class="lines">@@ -209,13 +209,13 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> _private = [[WebArchivePrivate alloc] init];
</span><del>- RefPtr<LegacyWebArchive> coreArchive = LegacyWebArchive::create(SharedBuffer::wrapNSData(data));
</del><ins>+ auto coreArchive = LegacyWebArchive::create(SharedBuffer::wrapNSData(data));
</ins><span class="cx"> if (!coreArchive) {
</span><span class="cx"> [self release];
</span><span class="cx"> return nil;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- [_private setCoreArchive:coreArchive.release()];
</del><ins>+ [_private setCoreArchive:WTFMove(coreArchive)];
</ins><span class="cx">
</span><span class="cx"> #if !LOG_DISABLED
</span><span class="cx"> CFAbsoluteTime end = CFAbsoluteTimeGetCurrent();
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebDataSourcemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebDataSource.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebDataSource.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/WebView/WebDataSource.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -518,8 +518,8 @@
</span><span class="cx">
</span><span class="cx"> - (WebResource *)mainResource
</span><span class="cx"> {
</span><del>- RefPtr<ArchiveResource> coreResource = toPrivate(_private)->loader->mainResource();
- return [[[WebResource alloc] _initWithCoreResource:coreResource.release()] autorelease];
</del><ins>+ auto coreResource = toPrivate(_private)->loader->mainResource();
+ return [[[WebResource alloc] _initWithCoreResource:WTFMove(coreResource)] autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (NSArray *)subresources
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebFramemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebFrame.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebFrame.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit/mac/WebView/WebFrame.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -911,7 +911,7 @@
</span><span class="cx"> while ((node = [nodeEnum nextObject]))
</span><span class="cx"> nodesVector.append(core(node));
</span><span class="cx">
</span><del>- RefPtr<DocumentFragment> fragment = document->createDocumentFragment();
</del><ins>+ auto fragment = document->createDocumentFragment();
</ins><span class="cx">
</span><span class="cx"> for (auto* node : nodesVector) {
</span><span class="cx"> auto element = createDefaultParagraphElement(*document);
</span><span class="lines">@@ -919,7 +919,7 @@
</span><span class="cx"> fragment->appendChild(element);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return kit(fragment.release().get());
</del><ins>+ return kit(fragment.ptr());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (void)_replaceSelectionWithNode:(DOMNode *)node selectReplacement:(BOOL)selectReplacement smartReplace:(BOOL)smartReplace matchStyle:(BOOL)matchStyle
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/ChangeLog        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1,3 +1,251 @@
</span><ins>+2016-06-20 Keith Rollin <krollin@apple.com>
+
+ Remove RefPtr::release() and change calls sites to use WTFMove()
+ https://bugs.webkit.org/show_bug.cgi?id=158369
+
+ Reviewed by Chris Dumez.
+
+ RefPtr::release() releases its managed pointer awkwardly. It's more
+ direct and clearer to use WTFMove to transfer ownership of the managed
+ pointer.
+
+ As part of this cleanup, also change a lot of explicit data types to
+ 'auto'.
+
+ * DatabaseProcess/DatabaseProcess.cpp:
+ (WebKit::DatabaseProcess::createDatabaseToWebProcessConnection):
+ * NetworkProcess/NetworkProcess.cpp:
+ (WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
+ * NetworkProcess/NetworkResourceLoadParameters.cpp:
+ (WebKit::NetworkResourceLoadParameters::decode):
+ * NetworkProcess/cache/NetworkCacheEntry.cpp:
+ (WebKit::NetworkCache::Entry::initializeShareableResourceHandleFromStorageRecord):
+ * Platform/mac/SharedMemoryMac.cpp:
+ (WebKit::SharedMemory::allocate):
+ (WebKit::SharedMemory::create):
+ (WebKit::SharedMemory::map):
+ * PluginProcess/PluginProcess.cpp:
+ (WebKit::PluginProcess::createWebProcessConnection):
+ * Shared/API/Cocoa/WKRemoteObjectCoder.mm:
+ (encodeToObjectStream):
+ * Shared/API/c/WKImage.cpp:
+ (WKImageCreate):
+ * Shared/API/c/WKNumber.cpp:
+ (WKBooleanCreate):
+ (WKDoubleCreate):
+ (WKUInt64Create):
+ * Shared/API/c/WKSecurityOriginRef.cpp:
+ (WKSecurityOriginCreate):
+ * Shared/API/c/WKSerializedScriptValue.cpp:
+ (WKSerializedScriptValueCreate):
+ (WKSerializedScriptValueCreateWithInternalRepresentation):
+ * Shared/API/c/cairo/WKImageCairo.cpp:
+ (WKImageCreateFromCairoSurface):
+ * Shared/API/c/cg/WKImageCG.cpp:
+ (WKImageCreateFromCGImage):
+ * Shared/API/c/mac/WKCertificateInfoMac.mm:
+ (WKCertificateInfoCreateWithCertficateChain):
+ * Shared/API/c/mac/WKObjCTypeWrapperRef.mm:
+ (WKObjCTypeWrapperCreate):
+ * Shared/API/c/mac/WKWebArchive.cpp:
+ (WKWebArchiveCreate):
+ (WKWebArchiveCreateWithData):
+ (WKWebArchiveCreateFromRange):
+ (WKWebArchiveCopyMainResource):
+ (WKWebArchiveCopySubresources):
+ (WKWebArchiveCopySubframeArchives):
+ * Shared/API/c/mac/WKWebArchiveResource.cpp:
+ (WKWebArchiveResourceCreate):
+ * Shared/APIWebArchive.mm:
+ (API::WebArchive::WebArchive):
+ * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
+ (WebKit::NetscapePluginModule::getOrCreate):
+ * Shared/ShareableBitmap.cpp:
+ (WebKit::ShareableBitmap::create):
+ * Shared/ShareableResource.cpp:
+ (WebKit::ShareableResource::map):
+ * Shared/gtk/ArgumentCodersGtk.cpp:
+ (IPC::ArgumentCoder<DragData>::decode):
+ * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
+ (WKViewCreate):
+ * UIProcess/API/C/WKBatteryStatus.cpp:
+ (WKBatteryStatusCreate):
+ * UIProcess/API/C/WKGeolocationPosition.cpp:
+ (WKGeolocationPositionCreate_b):
+ * UIProcess/API/C/WKGrammarDetail.cpp:
+ (WKGrammarDetailCreate):
+ * UIProcess/API/C/WKPage.cpp:
+ (WKPageCopySessionState):
+ * UIProcess/API/C/WKPageGroup.cpp:
+ (WKPageGroupCreateWithIdentifier):
+ * UIProcess/API/C/WKPreferences.cpp:
+ (WKPreferencesCreate):
+ (WKPreferencesCreateWithIdentifier):
+ (WKPreferencesCreateCopy):
+ * UIProcess/API/C/WKSessionRef.cpp:
+ (WKSessionCreate):
+ * UIProcess/API/C/WKSessionStateRef.cpp:
+ (WKSessionStateCopyData):
+ * UIProcess/API/C/mac/WKContextPrivateMac.mm:
+ (WKContextCopyPlugInInfoForBundleIdentifier):
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView loadRequest:]):
+ (-[WKWebView loadFileURL:allowingReadAccessToURL:]):
+ (-[WKWebView loadData:MIMEType:characterEncodingName:baseURL:]):
+ (-[WKWebView goToBackForwardListItem:]):
+ (-[WKWebView goBack]):
+ (-[WKWebView goForward]):
+ (-[WKWebView reload]):
+ (-[WKWebView reloadFromOrigin]):
+ (-[WKWebView _loadData:MIMEType:characterEncodingName:baseURL:userData:]):
+ (-[WKWebView _reloadWithoutContentBlockers]):
+ (-[WKWebView _sessionStateData]):
+ (-[WKWebView _restoreSessionState:andNavigate:]):
+ * UIProcess/API/efl/ewk_database_manager.cpp:
+ (EwkDatabaseManager::createOriginList):
+ * UIProcess/API/efl/ewk_storage_manager.cpp:
+ (EwkStorageManager::createOriginList):
+ * UIProcess/API/gtk/WebKitWebView.cpp:
+ (webkitWebViewCreateNewPage):
+ (webkitWebViewPrintFrame):
+ (getContentsAsMHTMLDataCallback):
+ * UIProcess/Cocoa/SessionStateCoding.mm:
+ (WebKit::encodeSessionState):
+ * UIProcess/GenericCallback.h:
+ (WebKit::CallbackMap::take):
+ * UIProcess/GeolocationPermissionRequestManagerProxy.cpp:
+ (WebKit::GeolocationPermissionRequestManagerProxy::createRequest):
+ * UIProcess/Network/NetworkProcessProxy.cpp:
+ (WebKit::NetworkProcessProxy::didReceiveAuthenticationChallenge):
+ * UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp:
+ (WebKit::NotificationPermissionRequestManagerProxy::createRequest):
+ * UIProcess/Plugins/PluginProcessManager.cpp:
+ (WebKit::PluginProcessManager::getOrCreatePluginProcess):
+ * UIProcess/Storage/StorageManager.cpp:
+ (WebKit::StorageManager::StorageArea::setItem):
+ (WebKit::StorageManager::StorageArea::removeItem):
+ (WebKit::StorageManager::createLocalStorageMap):
+ * UIProcess/WebBackForwardList.cpp:
+ (WebKit::WebBackForwardList::addItem):
+ (WebKit::WebBackForwardList::clear):
+ * UIProcess/WebCookieManagerProxy.cpp:
+ (WebKit::WebCookieManagerProxy::getHostnamesWithCookies):
+ (WebKit::WebCookieManagerProxy::getHTTPCookieAcceptPolicy):
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::WebPageProxy::installViewStateChangeCompletionHandler):
+ * UIProcess/WebPreferences.cpp:
+ (WebKit::WebPreferences::createWithLegacyDefaults):
+ (WebKit::WebPreferences::copy):
+ * UIProcess/WebProcessPool.cpp:
+ (WebKit::WebProcessPool::~WebProcessPool):
+ * UIProcess/mac/ViewSnapshotStore.mm:
+ (WebKit::ViewSnapshotStore::recordSnapshot):
+ * UIProcess/mac/WKImmediateActionController.mm:
+ (-[WKImmediateActionController _webHitTestResult]):
+ * UIProcess/mac/WKPrintingView.mm:
+ (-[WKPrintingView _askPageToComputePageRects]):
+ * UIProcess/mac/WebPageProxyMac.mm:
+ (WebKit::WebPageProxy::setDragImage):
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm:
+ (-[WKWebProcessPlugInFrame hitTest:]):
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm:
+ (-[WKWebProcessPlugInHitTestResult nodeHandle]):
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm:
+ (+[WKWebProcessPlugInNodeHandle nodeHandleWithJSValue:inContext:]):
+ (-[WKWebProcessPlugInNodeHandle htmlIFrameElementContentFrame]):
+ * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm:
+ (+[WKWebProcessPlugInScriptWorld world]):
+ * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
+ (WKBundlePostSynchronousMessage):
+ * WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp:
+ (WKBundleDOMWindowExtensionCreate):
+ * WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp:
+ (WKBundleHitTestResultCopyNodeHandle):
+ (WKBundleHitTestResultCopyURLElementHandle):
+ * WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp:
+ (WKBundleNavigationActionCopyHitTestResult):
+ (WKBundleNavigationActionCopyFormElement):
+ * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
+ (WKBundleNodeHandleCreate):
+ (WKBundleNodeHandleCopyDocument):
+ (WKBundleNodeHandleCopySnapshotWithOptions):
+ (WKBundleNodeHandleCopyVisibleRange):
+ (WKBundleNodeHandleCopyHTMLTableCellElementCellAbove):
+ (WKBundleNodeHandleCopyDocumentFrame):
+ (WKBundleNodeHandleCopyHTMLFrameElementContentFrame):
+ (WKBundleNodeHandleCopyHTMLIFrameElementContentFrame):
+ * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
+ (WKBundlePageCreateSnapshotWithOptions):
+ (WKBundlePageCreateSnapshotInViewCoordinates):
+ (WKBundlePageCreateSnapshotInDocumentCoordinates):
+ (WKBundlePageCreateScaledSnapshotInDocumentCoordinates):
+ (WKBundlePagePostSynchronousMessageForTesting):
+ * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
+ (WKBundleRangeHandleCreate):
+ (WKBundleRangeHandleCopySnapshotWithOptions):
+ * WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp:
+ (WKBundleScriptWorldCreateWorld):
+ * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm:
+ (-[WKDOMNode _copyBundleNodeHandleRef]):
+ * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
+ (-[WKDOMRange _copyBundleRangeHandleRef]):
+ * WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp:
+ (WebKit::InjectedBundleCSSStyleDeclarationHandle::getOrCreate):
+ * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+ (WebKit::imageForRect):
+ (WebKit::InjectedBundleNodeHandle::renderedImage):
+ * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
+ (WebKit::InjectedBundleRangeHandle::getOrCreate):
+ * WebProcess/InjectedBundle/InjectedBundle.cpp:
+ (WebKit::InjectedBundle::create):
+ * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
+ (WebKit::NetscapePlugin::loadURL):
+ * WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm:
+ (WebKit::PDFPlugin::createScrollbar):
+ * WebProcess/Storage/StorageAreaMap.cpp:
+ (WebKit::StorageAreaMap::applyChange):
+ * WebProcess/WebCoreSupport/SessionStateConversion.cpp:
+ (WebKit::toFormData):
+ * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
+ (WebKit::WebFrameLoaderClient::createPlugin):
+ (WebKit::WebFrameLoaderClient::recreatePlugin):
+ (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
+ (WebKit::WebFrameLoaderClient::createNetworkingContext):
+ * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
+ (WebKit::WebInspectorClient::highlight):
+ * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
+ (WebKit::convertImageToBitmap):
+ * WebProcess/WebPage/FindController.cpp:
+ (WebKit::FindController::updateFindUIAfterPageScroll):
+ * WebProcess/WebPage/VisitedLinkTableController.cpp:
+ (WebKit::VisitedLinkTableController::getOrCreate):
+ (WebKit::VisitedLinkTableController::setVisitedLinkTable):
+ * WebProcess/WebPage/WebFrame.cpp:
+ (WebKit::WebFrame::createWithCoreMainFrame):
+ (WebKit::WebFrame::createSubframe):
+ (WebKit::WebFrame::create):
+ (WebKit::WebFrame::createSelectionSnapshot):
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::createPlugin):
+ (WebKit::WebPage::snapshotAtSize):
+ (WebKit::WebPage::snapshotNode):
+ (WebKit::WebPage::willPerformLoadDragDestinationAction):
+ (WebKit::WebPage::SandboxExtensionTracker::didStartProvisionalLoad):
+ (WebKit::WebPage::SandboxExtensionTracker::didCommitProvisionalLoad):
+ (WebKit::WebPage::drawRectToImage):
+ * WebProcess/WebPage/WebPageGroupProxy.cpp:
+ (WebKit::WebPageGroupProxy::create):
+ * WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
+ (WebKit::PlatformCAAnimationRemote::Properties::decode):
+ * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
+ (WebKit::PlatformCALayerRemote::create):
+ (WebKit::PlatformCALayerRemote::clone):
+ * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:
+ (WebKit::PlatformCALayerRemoteCustom::create):
+ (WebKit::PlatformCALayerRemoteCustom::clone):
+ * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
+ (WebKit::RemoteLayerTreeDrawingArea::createDisplayRefreshMonitor):
+
</ins><span class="cx"> 2016-06-20 Commit Queue <commit-queue@webkit.org>
</span><span class="cx">
</span><span class="cx"> Unreviewed, rolling out r202179.
</span></span></pre></div>
<a id="trunkSourceWebKit2DatabaseProcessDatabaseProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -182,8 +182,8 @@
</span><span class="cx"> mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &listeningPort);
</span><span class="cx">
</span><span class="cx"> // Create a listening connection.
</span><del>- RefPtr<DatabaseToWebProcessConnection> connection = DatabaseToWebProcessConnection::create(IPC::Connection::Identifier(listeningPort));
- m_databaseToWebProcessConnections.append(connection.release());
</del><ins>+ auto connection = DatabaseToWebProcessConnection::create(IPC::Connection::Identifier(listeningPort));
+ m_databaseToWebProcessConnections.append(WTFMove(connection));
</ins><span class="cx">
</span><span class="cx"> IPC::Attachment clientPort(listeningPort, MACH_MSG_TYPE_MAKE_SEND);
</span><span class="cx"> parentProcessConnection()->send(Messages::DatabaseProcessProxy::DidCreateDatabaseToWebProcessConnection(clientPort), 0);
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcessNetworkProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkProcess.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -254,8 +254,8 @@
</span><span class="cx"> #if USE(UNIX_DOMAIN_SOCKETS)
</span><span class="cx"> IPC::Connection::SocketPair socketPair = IPC::Connection::createPlatformConnection();
</span><span class="cx">
</span><del>- RefPtr<NetworkConnectionToWebProcess> connection = NetworkConnectionToWebProcess::create(socketPair.server);
- m_webProcessConnections.append(connection.release());
</del><ins>+ auto connection = NetworkConnectionToWebProcess::create(socketPair.server);
+ m_webProcessConnections.append(WTFMove(connection));
</ins><span class="cx">
</span><span class="cx"> IPC::Attachment clientSocket(socketPair.client);
</span><span class="cx"> parentProcessConnection()->send(Messages::NetworkProcessProxy::DidCreateNetworkConnectionToWebProcess(clientSocket), 0);
</span><span class="lines">@@ -265,8 +265,8 @@
</span><span class="cx"> mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &listeningPort);
</span><span class="cx">
</span><span class="cx"> // Create a listening connection.
</span><del>- RefPtr<NetworkConnectionToWebProcess> connection = NetworkConnectionToWebProcess::create(IPC::Connection::Identifier(listeningPort));
- m_webProcessConnections.append(connection.release());
</del><ins>+ auto connection = NetworkConnectionToWebProcess::create(IPC::Connection::Identifier(listeningPort));
+ m_webProcessConnections.append(WTFMove(connection));
</ins><span class="cx">
</span><span class="cx"> IPC::Attachment clientPort(listeningPort, MACH_MSG_TYPE_MAKE_SEND);
</span><span class="cx"> parentProcessConnection()->send(Messages::NetworkProcessProxy::DidCreateNetworkConnectionToWebProcess(clientPort), 0);
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcessNetworkResourceLoadParameterscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoadParameters.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoadParameters.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/NetworkProcess/NetworkResourceLoadParameters.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -127,8 +127,8 @@
</span><span class="cx"> if (!decoder.decode(requestBodySandboxExtensionHandles))
</span><span class="cx"> return false;
</span><span class="cx"> for (size_t i = 0; i < requestBodySandboxExtensionHandles.size(); ++i) {
</span><del>- if (RefPtr<SandboxExtension> extension = SandboxExtension::create(requestBodySandboxExtensionHandles[i]))
- result.requestBodySandboxExtensions.append(extension.release());
</del><ins>+ if (auto extension = SandboxExtension::create(requestBodySandboxExtensionHandles[i]))
+ result.requestBodySandboxExtensions.append(WTFMove(extension));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2NetworkProcesscacheNetworkCacheEntrycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEntry.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEntry.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEntry.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -145,12 +145,11 @@
</span><span class="cx"> #if ENABLE(SHAREABLE_RESOURCE)
</span><span class="cx"> void Entry::initializeShareableResourceHandleFromStorageRecord() const
</span><span class="cx"> {
</span><del>- RefPtr<SharedMemory> sharedMemory = m_sourceStorageRecord.body.tryCreateSharedMemory();
</del><ins>+ auto sharedMemory = m_sourceStorageRecord.body.tryCreateSharedMemory();
</ins><span class="cx"> if (!sharedMemory)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- RefPtr<ShareableResource> shareableResource = ShareableResource::create(sharedMemory.release(), 0, m_sourceStorageRecord.body.size());
- ASSERT(shareableResource);
</del><ins>+ auto shareableResource = ShareableResource::create(WTFMove(sharedMemory), 0, m_sourceStorageRecord.body.size());
</ins><span class="cx"> shareableResource->createHandle(m_shareableResourceHandle);
</span><span class="cx"> }
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2PlatformmacSharedMemoryMaccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Platform/mac/SharedMemoryMac.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Platform/mac/SharedMemoryMac.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Platform/mac/SharedMemoryMac.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -110,13 +110,13 @@
</span><span class="cx"> return nullptr;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<SharedMemory> sharedMemory = adoptRef(*new SharedMemory);
</del><ins>+ auto sharedMemory = adoptRef(*new SharedMemory);
</ins><span class="cx"> sharedMemory->m_size = size;
</span><span class="cx"> sharedMemory->m_data = toPointer(address);
</span><span class="cx"> sharedMemory->m_port = MACH_PORT_NULL;
</span><span class="cx"> sharedMemory->m_protection = Protection::ReadWrite;
</span><span class="cx">
</span><del>- return sharedMemory;
</del><ins>+ return WTFMove(sharedMemory);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static inline vm_prot_t machProtection(SharedMemory::Protection protection)
</span><span class="lines">@@ -156,13 +156,13 @@
</span><span class="cx"> if (!sendRight)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<SharedMemory> sharedMemory(adoptRef(new SharedMemory));
</del><ins>+ auto sharedMemory(adoptRef(*new SharedMemory));
</ins><span class="cx"> sharedMemory->m_size = size;
</span><span class="cx"> sharedMemory->m_data = nullptr;
</span><span class="cx"> sharedMemory->m_port = sendRight.leakSendRight();
</span><span class="cx"> sharedMemory->m_protection = protection;
</span><span class="cx">
</span><del>- return sharedMemory.release();
</del><ins>+ return WTFMove(sharedMemory);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> RefPtr<SharedMemory> SharedMemory::map(const Handle& handle, Protection protection)
</span><span class="lines">@@ -178,13 +178,13 @@
</span><span class="cx"> if (kr != KERN_SUCCESS)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<SharedMemory> sharedMemory(adoptRef(new SharedMemory));
</del><ins>+ auto sharedMemory(adoptRef(*new SharedMemory));
</ins><span class="cx"> sharedMemory->m_size = handle.m_size;
</span><span class="cx"> sharedMemory->m_data = toPointer(mappedAddress);
</span><span class="cx"> sharedMemory->m_port = MACH_PORT_NULL;
</span><span class="cx"> sharedMemory->m_protection = protection;
</span><span class="cx">
</span><del>- return sharedMemory;
</del><ins>+ return WTFMove(sharedMemory);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> SharedMemory::~SharedMemory()
</span></span></pre></div>
<a id="trunkSourceWebKit2PluginProcessPluginProcesscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -151,8 +151,8 @@
</span><span class="cx"> #if USE(UNIX_DOMAIN_SOCKETS)
</span><span class="cx"> IPC::Connection::SocketPair socketPair = IPC::Connection::createPlatformConnection();
</span><span class="cx">
</span><del>- RefPtr<WebProcessConnection> connection = WebProcessConnection::create(socketPair.server);
- m_webProcessConnections.append(connection.release());
</del><ins>+ auto connection = WebProcessConnection::create(socketPair.server);
+ m_webProcessConnections.append(WTFMove(connection));
</ins><span class="cx">
</span><span class="cx"> IPC::Attachment clientSocket(socketPair.client);
</span><span class="cx"> parentProcessConnection()->send(Messages::PluginProcessProxy::DidCreateWebProcessConnection(clientSocket, m_supportsAsynchronousPluginInitialization), 0);
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx"> mach_port_allocate(mach_task_self(), MACH_PORT_RIGHT_RECEIVE, &listeningPort);
</span><span class="cx">
</span><span class="cx"> // Create a listening connection.
</span><del>- RefPtr<WebProcessConnection> connection = WebProcessConnection::create(IPC::Connection::Identifier(listeningPort));
</del><ins>+ auto connection = WebProcessConnection::create(IPC::Connection::Identifier(listeningPort));
</ins><span class="cx">
</span><span class="cx"> if (m_audioHardwareListener) {
</span><span class="cx"> if (m_audioHardwareListener->hardwareActivity() == WebCore::AudioHardwareActivityType::IsActive)
</span><span class="lines">@@ -171,7 +171,7 @@
</span><span class="cx"> connection->audioHardwareDidBecomeInactive();
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_webProcessConnections.append(connection.release());
</del><ins>+ m_webProcessConnections.append(WTFMove(connection));
</ins><span class="cx">
</span><span class="cx"> IPC::Attachment clientPort(listeningPort, MACH_MSG_TYPE_MAKE_SEND);
</span><span class="cx"> parentProcessConnection()->send(Messages::PluginProcessProxy::DidCreateWebProcessConnection(clientPort, m_supportsAsynchronousPluginInitialization), 0);
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPICocoaWKRemoteObjectCodermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -108,9 +108,9 @@
</span><span class="cx"> size_t position = encoder->_objectStream->size();
</span><span class="cx"> encoder->_objectStream->elements().append(nullptr);
</span><span class="cx">
</span><del>- RefPtr<API::Dictionary> encodedObject = createEncodedObject(encoder, value);
</del><ins>+ auto encodedObject = createEncodedObject(encoder, value);
</ins><span class="cx"> ASSERT(!encoder->_objectStream->elements()[position]);
</span><del>- encoder->_objectStream->elements()[position] = encodedObject.release();
</del><ins>+ encoder->_objectStream->elements()[position] = WTFMove(encodedObject);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static void encodeInvocationArguments(WKRemoteObjectEncoder *encoder, NSInvocation *invocation, NSUInteger firstArgument)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKImage.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKImage.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/WKImage.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -38,8 +38,8 @@
</span><span class="cx">
</span><span class="cx"> WKImageRef WKImageCreate(WKSize size, WKImageOptions options)
</span><span class="cx"> {
</span><del>- RefPtr<WebImage> webImage = WebImage::create(toIntSize(size), toImageOptions(options));
- return toAPI(webImage.release().leakRef());
</del><ins>+ auto webImage = WebImage::create(toIntSize(size), toImageOptions(options));
+ return toAPI(webImage.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKSize WKImageGetSize(WKImageRef imageRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKNumbercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKNumber.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKNumber.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/WKNumber.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -38,8 +38,8 @@
</span><span class="cx">
</span><span class="cx"> WKBooleanRef WKBooleanCreate(bool value)
</span><span class="cx"> {
</span><del>- RefPtr<API::Boolean> booleanObject = API::Boolean::create(value);
- return toAPI(booleanObject.release().leakRef());
</del><ins>+ auto booleanObject = API::Boolean::create(value);
+ return toAPI(&booleanObject.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool WKBooleanGetValue(WKBooleanRef booleanRef)
</span><span class="lines">@@ -54,8 +54,8 @@
</span><span class="cx">
</span><span class="cx"> WKDoubleRef WKDoubleCreate(double value)
</span><span class="cx"> {
</span><del>- RefPtr<API::Double> doubleObject = API::Double::create(value);
- return toAPI(doubleObject.release().leakRef());
</del><ins>+ auto doubleObject = API::Double::create(value);
+ return toAPI(&doubleObject.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> double WKDoubleGetValue(WKDoubleRef doubleRef)
</span><span class="lines">@@ -70,8 +70,8 @@
</span><span class="cx">
</span><span class="cx"> WKUInt64Ref WKUInt64Create(uint64_t value)
</span><span class="cx"> {
</span><del>- RefPtr<API::UInt64> uint64Object = API::UInt64::create(value);
- return toAPI(uint64Object.release().leakRef());
</del><ins>+ auto uint64Object = API::UInt64::create(value);
+ return toAPI(&uint64Object.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> uint64_t WKUInt64GetValue(WKUInt64Ref uint64Ref)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKSecurityOriginRefcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKSecurityOriginRef.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKSecurityOriginRef.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/WKSecurityOriginRef.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -48,8 +48,8 @@
</span><span class="cx">
</span><span class="cx"> WKSecurityOriginRef WKSecurityOriginCreate(WKStringRef protocol, WKStringRef host, int port)
</span><span class="cx"> {
</span><del>- RefPtr<API::SecurityOrigin> securityOrigin = API::SecurityOrigin::create(toImpl(protocol)->string(), toImpl(host)->string(), port);
- return toAPI(securityOrigin.release().leakRef());
</del><ins>+ auto securityOrigin = API::SecurityOrigin::create(toImpl(protocol)->string(), toImpl(host)->string(), port);
+ return toAPI(securityOrigin.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKStringRef WKSecurityOriginCopyDatabaseIdentifier(WKSecurityOriginRef securityOrigin)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcWKSerializedScriptValuecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/WKSerializedScriptValue.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/WKSerializedScriptValue.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/WKSerializedScriptValue.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -39,14 +39,14 @@
</span><span class="cx">
</span><span class="cx"> WKSerializedScriptValueRef WKSerializedScriptValueCreate(JSContextRef context, JSValueRef value, JSValueRef* exception)
</span><span class="cx"> {
</span><del>- RefPtr<API::SerializedScriptValue> serializedValue = API::SerializedScriptValue::create(context, value, exception);
- return toAPI(serializedValue.release().leakRef());
</del><ins>+ auto serializedValue = API::SerializedScriptValue::create(context, value, exception);
+ return toAPI(serializedValue.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKSerializedScriptValueRef WKSerializedScriptValueCreateWithInternalRepresentation(void* internalRepresentation)
</span><span class="cx"> {
</span><del>- RefPtr<API::SerializedScriptValue> serializedValue = API::SerializedScriptValue::create(static_cast<WebCore::SerializedScriptValue*>(internalRepresentation));
- return toAPI(serializedValue.release().leakRef());
</del><ins>+ auto serializedValue = API::SerializedScriptValue::create(static_cast<WebCore::SerializedScriptValue*>(internalRepresentation));
+ return toAPI(&serializedValue.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> JSValueRef WKSerializedScriptValueDeserialize(WKSerializedScriptValueRef scriptValueRef, JSContextRef contextRef, JSValueRef* exception)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIccairoWKImageCairocpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/cairo/WKImageCairo.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/cairo/WKImageCairo.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/cairo/WKImageCairo.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> WKImageRef WKImageCreateFromCairoSurface(cairo_surface_t* surface, WKImageOptions options)
</span><span class="cx"> {
</span><span class="cx"> IntSize imageSize(cairo_image_surface_get_width(surface), cairo_image_surface_get_height(surface));
</span><del>- RefPtr<WebImage> webImage = WebImage::create(imageSize, toImageOptions(options));
</del><ins>+ auto webImage = WebImage::create(imageSize, toImageOptions(options));
</ins><span class="cx"> auto graphicsContext = webImage->bitmap()->createGraphicsContext();
</span><span class="cx">
</span><span class="cx"> cairo_t* cr = graphicsContext->platformContext()->cr();
</span><span class="lines">@@ -54,5 +54,5 @@
</span><span class="cx"> cairo_rectangle(cr, 0, 0, imageSize.width(), imageSize.height());
</span><span class="cx"> cairo_fill(cr);
</span><span class="cx">
</span><del>- return toAPI(webImage.release().leakRef());
</del><ins>+ return toAPI(webImage.leakRef());
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIccgWKImageCGcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/cg/WKImageCG.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/cg/WKImageCG.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/cg/WKImageCG.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> return 0;
</span><span class="cx">
</span><span class="cx"> IntSize imageSize(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef));
</span><del>- RefPtr<WebImage> webImage = WebImage::create(imageSize, toImageOptions(options));
</del><ins>+ auto webImage = WebImage::create(imageSize, toImageOptions(options));
</ins><span class="cx"> if (!webImage->bitmap())
</span><span class="cx"> return 0;
</span><span class="cx">
</span><span class="lines">@@ -58,5 +58,5 @@
</span><span class="cx"> FloatRect rect(FloatPoint(0, 0), imageSize);
</span><span class="cx"> graphicsContext->clearRect(rect);
</span><span class="cx"> graphicsContext->drawNativeImage(imageRef, imageSize, rect, rect);
</span><del>- return toAPI(webImage.release().leakRef());
</del><ins>+ return toAPI(webImage.leakRef());
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcmacWKCertificateInfoMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/mac/WKCertificateInfoMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> WKCertificateInfoRef WKCertificateInfoCreateWithCertficateChain(CFArrayRef certificateChain)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebCertificateInfo> certificateInfo = WebCertificateInfo::create(CertificateInfo(certificateChain));
</span><del>- return toAPI(certificateInfo.release().leakRef());
</del><ins>+ return toAPI(certificateInfo.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> CFArrayRef WKCertificateInfoGetCertificateChain(WKCertificateInfoRef certificateInfoRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcmacWKObjCTypeWrapperRefmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/mac/WKObjCTypeWrapperRef.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/mac/WKObjCTypeWrapperRef.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/mac/WKObjCTypeWrapperRef.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -38,8 +38,8 @@
</span><span class="cx">
</span><span class="cx"> WKObjCTypeWrapperRef WKObjCTypeWrapperCreate(id object)
</span><span class="cx"> {
</span><del>- RefPtr<ObjCObjectGraph> objectWrapper = ObjCObjectGraph::create(object);
- return toAPI(objectWrapper.release().leakRef());
</del><ins>+ auto objectWrapper = ObjCObjectGraph::create(object);
+ return toAPI(&objectWrapper.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> id WKObjCTypeWrapperGetObject(WKObjCTypeWrapperRef wrapperRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcmacWKWebArchivecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchive.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchive.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchive.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -43,38 +43,38 @@
</span><span class="cx">
</span><span class="cx"> WKWebArchiveRef WKWebArchiveCreate(WKWebArchiveResourceRef mainResourceRef, WKArrayRef subresourcesRef, WKArrayRef subframeArchivesRef)
</span><span class="cx"> {
</span><del>- RefPtr<API::WebArchive> webArchive = API::WebArchive::create(toImpl(mainResourceRef), toImpl(subresourcesRef), toImpl(subframeArchivesRef));
- return toAPI(webArchive.release().leakRef());
</del><ins>+ auto webArchive = API::WebArchive::create(toImpl(mainResourceRef), toImpl(subresourcesRef), toImpl(subframeArchivesRef));
+ return toAPI(&webArchive.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKWebArchiveRef WKWebArchiveCreateWithData(WKDataRef dataRef)
</span><span class="cx"> {
</span><del>- RefPtr<API::WebArchive> webArchive = API::WebArchive::create(toImpl(dataRef));
- return toAPI(webArchive.release().leakRef());
</del><ins>+ auto webArchive = API::WebArchive::create(toImpl(dataRef));
+ return toAPI(&webArchive.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKWebArchiveRef WKWebArchiveCreateFromRange(WKBundleRangeHandleRef rangeHandleRef)
</span><span class="cx"> {
</span><del>- RefPtr<API::WebArchive> webArchive = API::WebArchive::create(toImpl(rangeHandleRef)->coreRange());
- return toAPI(webArchive.release().leakRef());
</del><ins>+ auto webArchive = API::WebArchive::create(toImpl(rangeHandleRef)->coreRange());
+ return toAPI(&webArchive.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKWebArchiveResourceRef WKWebArchiveCopyMainResource(WKWebArchiveRef webArchiveRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<API::WebArchiveResource> mainResource = toImpl(webArchiveRef)->mainResource();
</span><del>- return toAPI(mainResource.release().leakRef());
</del><ins>+ return toAPI(mainResource.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKArrayRef WKWebArchiveCopySubresources(WKWebArchiveRef webArchiveRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<API::Array> subresources = toImpl(webArchiveRef)->subresources();
</span><del>- return toAPI(subresources.release().leakRef());
</del><ins>+ return toAPI(subresources.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKArrayRef WKWebArchiveCopySubframeArchives(WKWebArchiveRef webArchiveRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<API::Array> subframeArchives = toImpl(webArchiveRef)->subframeArchives();
</span><del>- return toAPI(subframeArchives.release().leakRef());
</del><ins>+ return toAPI(subframeArchives.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKDataRef WKWebArchiveCopyData(WKWebArchiveRef webArchiveRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIcmacWKWebArchiveResourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchiveResource.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchiveResource.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/API/c/mac/WKWebArchiveResource.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -39,8 +39,8 @@
</span><span class="cx">
</span><span class="cx"> WKWebArchiveResourceRef WKWebArchiveResourceCreate(WKDataRef dataRef, WKURLRef URLRef, WKStringRef MIMETypeRef, WKStringRef textEncodingRef)
</span><span class="cx"> {
</span><del>- RefPtr<API::WebArchiveResource> webArchiveResource = API::WebArchiveResource::create(toImpl(dataRef), toWTFString(URLRef), toWTFString(MIMETypeRef), toWTFString(textEncodingRef));
- return toAPI(webArchiveResource.release().leakRef());
</del><ins>+ auto webArchiveResource = API::WebArchiveResource::create(toImpl(dataRef), toWTFString(URLRef), toWTFString(MIMETypeRef), toWTFString(textEncodingRef));
+ return toAPI(&webArchiveResource.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKDataRef WKWebArchiveResourceCopyData(WKWebArchiveResourceRef webArchiveResourceRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedAPIWebArchivemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/APIWebArchive.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/APIWebArchive.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/APIWebArchive.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -82,7 +82,7 @@
</span><span class="cx"> coreSubframeLegacyWebArchives.uncheckedAppend(subframeWebArchive->coreLegacyWebArchive());
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_legacyWebArchive = LegacyWebArchive::create(coreMainResource.release(), WTFMove(coreArchiveResources), WTFMove(coreSubframeLegacyWebArchives));
</del><ins>+ m_legacyWebArchive = LegacyWebArchive::create(WTFMove(coreMainResource), WTFMove(coreArchiveResources), WTFMove(coreSubframeLegacyWebArchives));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WebArchive::WebArchive(API::Data* data)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedPluginsNetscapeNetscapePluginModulecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/Plugins/Netscape/NetscapePluginModule.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -145,13 +145,13 @@
</span><span class="cx"> return pluginModule;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<NetscapePluginModule> pluginModule(adoptRef(new NetscapePluginModule(pluginPath)));
</del><ins>+ auto pluginModule(adoptRef(*new NetscapePluginModule(pluginPath)));
</ins><span class="cx">
</span><span class="cx"> // Try to load and initialize the plug-in module.
</span><span class="cx"> if (!pluginModule->load())
</span><del>- return 0;
</del><ins>+ return nullptr;
</ins><span class="cx">
</span><del>- return pluginModule.release();
</del><ins>+ return WTFMove(pluginModule);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void NetscapePluginModule::incrementLoadCount()
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedShareableBitmapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/ShareableBitmap.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/ShareableBitmap.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/ShareableBitmap.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -99,11 +99,11 @@
</span><span class="cx"> RefPtr<ShareableBitmap> ShareableBitmap::create(const Handle& handle, SharedMemory::Protection protection)
</span><span class="cx"> {
</span><span class="cx"> // Create the shared memory.
</span><del>- RefPtr<SharedMemory> sharedMemory = SharedMemory::map(handle.m_handle, protection);
</del><ins>+ auto sharedMemory = SharedMemory::map(handle.m_handle, protection);
</ins><span class="cx"> if (!sharedMemory)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- return create(handle.m_size, handle.m_flags, sharedMemory.release());
</del><ins>+ return create(handle.m_size, handle.m_flags, WTFMove(sharedMemory));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool ShareableBitmap::createHandle(Handle& handle, SharedMemory::Protection protection)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedShareableResourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/ShareableResource.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/ShareableResource.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/ShareableResource.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -114,11 +114,11 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<ShareableResource> ShareableResource::map(const Handle& handle)
</span><span class="cx"> {
</span><del>- RefPtr<SharedMemory> sharedMemory = SharedMemory::map(handle.m_handle, SharedMemory::Protection::ReadOnly);
</del><ins>+ auto sharedMemory = SharedMemory::map(handle.m_handle, SharedMemory::Protection::ReadOnly);
</ins><span class="cx"> if (!sharedMemory)
</span><span class="cx"> return 0;
</span><span class="cx">
</span><del>- return create(sharedMemory.release(), handle.m_offset, handle.m_size);
</del><ins>+ return create(WTFMove(sharedMemory), handle.m_offset, handle.m_size);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> ShareableResource::ShareableResource(PassRefPtr<SharedMemory> sharedMemory, unsigned offset, unsigned size)
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedgtkArgumentCodersGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/gtk/ArgumentCodersGtk.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/gtk/ArgumentCodersGtk.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/Shared/gtk/ArgumentCodersGtk.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -229,7 +229,7 @@
</span><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- dragData = DragData(platformData.release().leakRef(), clientPosition, globalPosition, static_cast<DragOperation>(sourceOperationMask),
</del><ins>+ dragData = DragData(platformData.leakRef(), clientPosition, globalPosition, static_cast<DragOperation>(sourceOperationMask),
</ins><span class="cx"> static_cast<DragApplicationFlags>(flags));
</span><span class="cx">
</span><span class="cx"> return true;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICCoordinatedGraphicsWKViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -32,8 +32,8 @@
</span><span class="cx">
</span><span class="cx"> WKViewRef WKViewCreate(WKPageConfigurationRef pageConfiguration)
</span><span class="cx"> {
</span><del>- RefPtr<WebView> webView = WebView::create(*toImpl(pageConfiguration));
- return toAPI(webView.release().leakRef());
</del><ins>+ auto webView = WebView::create(*toImpl(pageConfiguration));
+ return toAPI(&webView.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKSize WKViewGetSize(WKViewRef viewRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKBatteryStatuscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKBatteryStatus.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKBatteryStatus.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKBatteryStatus.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -46,8 +46,8 @@
</span><span class="cx"> WKBatteryStatusRef WKBatteryStatusCreate(bool isCharging, double chargingTime, double dischargingTime, double level)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(BATTERY_STATUS)
</span><del>- RefPtr<WebBatteryStatus> status = WebBatteryStatus::create(isCharging, chargingTime, dischargingTime, level);
- return toAPI(status.release().leakRef());
</del><ins>+ auto status = WebBatteryStatus::create(isCharging, chargingTime, dischargingTime, level);
+ return toAPI(&status.leakRef());
</ins><span class="cx"> #else
</span><span class="cx"> UNUSED_PARAM(isCharging);
</span><span class="cx"> UNUSED_PARAM(chargingTime);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKGeolocationPositioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKGeolocationPosition.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -43,6 +43,6 @@
</span><span class="cx">
</span><span class="cx"> WKGeolocationPositionRef WKGeolocationPositionCreate_b(double timestamp, double latitude, double longitude, double accuracy, bool providesAltitude, double altitude, bool providesAltitudeAccuracy, double altitudeAccuracy, bool providesHeading, double heading, bool providesSpeed, double speed)
</span><span class="cx"> {
</span><del>- RefPtr<WebGeolocationPosition> position = WebGeolocationPosition::create(timestamp, latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed);
- return toAPI(position.release().leakRef());
</del><ins>+ auto position = WebGeolocationPosition::create(timestamp, latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed);
+ return toAPI(position.leakRef());
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKGrammarDetailcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKGrammarDetail.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKGrammarDetail.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKGrammarDetail.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -40,8 +40,8 @@
</span><span class="cx">
</span><span class="cx"> WKGrammarDetailRef WKGrammarDetailCreate(int location, int length, WKArrayRef guesses, WKStringRef userDescription)
</span><span class="cx"> {
</span><del>- RefPtr<WebGrammarDetail> detail = WebGrammarDetail::create(location, length, toImpl(guesses), toWTFString(userDescription));
- return toAPI(detail.release().leakRef());
</del><ins>+ auto detail = WebGrammarDetail::create(location, length, toImpl(guesses), toWTFString(userDescription));
+ return toAPI(detail.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> int WKGrammarDetailGetLocation(WKGrammarDetailRef grammarDetailRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -439,7 +439,7 @@
</span><span class="cx"> });
</span><span class="cx">
</span><span class="cx"> if (shouldReturnData)
</span><del>- return toAPI(encodeLegacySessionState(sessionState).release().leakRef());
</del><ins>+ return toAPI(encodeLegacySessionState(sessionState).leakRef());
</ins><span class="cx">
</span><span class="cx"> return toAPI(&API::SessionState::create(WTFMove(sessionState)).leakRef());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPageGroupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPageGroup.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -41,8 +41,8 @@
</span><span class="cx">
</span><span class="cx"> WKPageGroupRef WKPageGroupCreateWithIdentifier(WKStringRef identifier)
</span><span class="cx"> {
</span><del>- RefPtr<WebPageGroup> pageGroup = WebPageGroup::create(toWTFString(identifier));
- return toAPI(pageGroup.release().leakRef());
</del><ins>+ auto pageGroup = WebPageGroup::create(toWTFString(identifier));
+ return toAPI(pageGroup.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKStringRef WKPageGroupCopyIdentifier(WKPageGroupRef pageGroupRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKPreferencescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -46,20 +46,20 @@
</span><span class="cx">
</span><span class="cx"> WKPreferencesRef WKPreferencesCreate()
</span><span class="cx"> {
</span><del>- RefPtr<WebPreferences> preferences = WebPreferences::createWithLegacyDefaults(String(), "WebKit2.", "WebKit2.");
- return toAPI(preferences.release().leakRef());
</del><ins>+ auto preferences = WebPreferences::createWithLegacyDefaults(String(), "WebKit2.", "WebKit2.");
+ return toAPI(preferences.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKPreferencesRef WKPreferencesCreateWithIdentifier(WKStringRef identifierRef)
</span><span class="cx"> {
</span><del>- RefPtr<WebPreferences> preferences = WebPreferences::createWithLegacyDefaults(toWTFString(identifierRef), "WebKit2.", "WebKit2.");
- return toAPI(preferences.release().leakRef());
</del><ins>+ auto preferences = WebPreferences::createWithLegacyDefaults(toWTFString(identifierRef), "WebKit2.", "WebKit2.");
+ return toAPI(preferences.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKPreferencesRef WKPreferencesCreateCopy(WKPreferencesRef preferencesRef)
</span><span class="cx"> {
</span><del>- RefPtr<WebPreferences> preferences = toImpl(preferencesRef)->copy();
- return toAPI(preferences.release().leakRef());
</del><ins>+ auto preferences = toImpl(preferencesRef)->copy();
+ return toAPI(preferences.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WKPreferencesEnableAllExperimentalFeatures(WKPreferencesRef preferencesRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKSessionRefcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKSessionRef.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -37,8 +37,8 @@
</span><span class="cx"> if (!isEphemeral)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<API::Session> session = API::Session::createEphemeral();
- return toAPI(session.release().leakRef());
</del><ins>+ auto session = API::Session::createEphemeral();
+ return toAPI(&session.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKTypeID WKSessionGetTypeID()
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICWKSessionStateRefcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/WKSessionStateRef.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/WKSessionStateRef.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/WKSessionStateRef.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -48,5 +48,5 @@
</span><span class="cx">
</span><span class="cx"> WKDataRef WKSessionStateCopyData(WKSessionStateRef sessionState)
</span><span class="cx"> {
</span><del>- return WebKit::toAPI(WebKit::encodeLegacySessionState(WebKit::toImpl(sessionState)->sessionState()).release().leakRef());
</del><ins>+ return WebKit::toAPI(WebKit::encodeLegacySessionState(WebKit::toImpl(sessionState)->sessionState()).leakRef());
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICmacWKContextPrivateMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -73,8 +73,8 @@
</span><span class="cx"> if (plugin.path.isNull())
</span><span class="cx"> return 0;
</span><span class="cx">
</span><del>- RefPtr<API::Dictionary> dictionary = createPluginInformationDictionary(plugin);
- return toAPI(dictionary.release().leakRef());
</del><ins>+ auto dictionary = createPluginInformationDictionary(plugin);
+ return toAPI(&dictionary.leakRef());
</ins><span class="cx"> #else
</span><span class="cx"> return 0;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPICocoaWKWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -662,7 +662,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (WKNavigation *)loadFileURL:(NSURL *)URL allowingReadAccessToURL:(NSURL *)readAccessURL
</span><span class="lines">@@ -677,7 +677,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (WKNavigation *)loadHTMLString:(NSString *)string baseURL:(NSURL *)baseURL
</span><span class="lines">@@ -693,7 +693,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (WKNavigation *)goToBackForwardListItem:(WKBackForwardListItem *)item
</span><span class="lines">@@ -702,7 +702,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (NSString *)title
</span><span class="lines">@@ -759,7 +759,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (WKNavigation *)goForward
</span><span class="lines">@@ -768,7 +768,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (WKNavigation *)reload
</span><span class="lines">@@ -779,7 +779,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (WKNavigation *)reloadFromOrigin
</span><span class="lines">@@ -790,7 +790,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (void)stopLoading
</span><span class="lines">@@ -3178,7 +3178,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (NSArray *)_certificateChain
</span><span class="lines">@@ -3259,7 +3259,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (void)_killWebContentProcessAndResetState
</span><span class="lines">@@ -3340,7 +3340,7 @@
</span><span class="cx"> WebKit::SessionState sessionState = _page->sessionState();
</span><span class="cx">
</span><span class="cx"> // FIXME: This should not use the legacy session state encoder.
</span><del>- return [wrapper(*WebKit::encodeLegacySessionState(sessionState).release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*WebKit::encodeLegacySessionState(sessionState).leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (_WKSessionState *)_sessionState
</span><span class="lines">@@ -3364,7 +3364,7 @@
</span><span class="cx"> if (!navigation)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*navigation.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*navigation.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (void)_close
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflewk_database_managercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_database_manager.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_database_manager.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_database_manager.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -75,7 +75,7 @@
</span><span class="cx"> origin = EwkSecurityOrigin::create(wkOriginRef);
</span><span class="cx"> m_wrapperCache.set(wkOriginRef, origin);
</span><span class="cx"> }
</span><del>- originList = eina_list_append(originList, origin.release().leakRef());
</del><ins>+ originList = eina_list_append(originList, origin.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return originList;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIeflewk_storage_managercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/efl/ewk_storage_manager.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/efl/ewk_storage_manager.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/efl/ewk_storage_manager.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx"> origin = EwkSecurityOrigin::create(wkOriginRef);
</span><span class="cx"> m_wrapperCache.set(wkOriginRef, origin);
</span><span class="cx"> }
</span><del>- originList = eina_list_append(originList, origin.release().leakRef());
</del><ins>+ originList = eina_list_append(originList, origin.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> return originList;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessAPIgtkWebKitWebViewcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1837,7 +1837,7 @@
</span><span class="cx"> webkitWindowPropertiesUpdateFromWebWindowFeatures(newWebView->priv->windowProperties.get(), windowFeatures);
</span><span class="cx">
</span><span class="cx"> RefPtr<WebPageProxy> newPage = getPage(newWebView);
</span><del>- return newPage.release().leakRef();
</del><ins>+ return newPage.leakRef();
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void webkitWebViewReadyToShowPage(WebKitWebView* webView)
</span><span class="lines">@@ -1925,7 +1925,7 @@
</span><span class="cx">
</span><span class="cx"> void webkitWebViewPrintFrame(WebKitWebView* webView, WebFrameProxy* frame)
</span><span class="cx"> {
</span><del>- GRefPtr<WebKitPrintOperation> printOperation = adoptGRef(webkit_print_operation_new(webView));
</del><ins>+ auto printOperation = adoptGRef(webkit_print_operation_new(webView));
</ins><span class="cx"> webkitPrintOperationSetPrintMode(printOperation.get(), PrintInfo::PrintModeSync);
</span><span class="cx"> gboolean returnValue;
</span><span class="cx"> g_signal_emit(webView, signals[PRINT], 0, printOperation.get(), &returnValue);
</span><span class="lines">@@ -3204,7 +3204,7 @@
</span><span class="cx">
</span><span class="cx"> static void getContentsAsMHTMLDataCallback(API::Data* wkData, GTask* taskPtr)
</span><span class="cx"> {
</span><del>- GRefPtr<GTask> task = adoptGRef(taskPtr);
</del><ins>+ auto task = adoptGRef(taskPtr);
</ins><span class="cx"> if (g_task_return_error_if_cancelled(task.get()))
</span><span class="cx"> return;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessCocoaSessionStateCodingmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Cocoa/SessionStateCoding.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Cocoa/SessionStateCoding.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/Cocoa/SessionStateCoding.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> RetainPtr<NSData> encodeSessionState(const SessionState& sessionState)
</span><span class="cx"> {
</span><span class="cx"> #if WK_API_ENABLED
</span><del>- return [wrapper(*WebKit::encodeLegacySessionState(sessionState).release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*WebKit::encodeLegacySessionState(sessionState).leakRef()) autorelease];
</ins><span class="cx"> #else
</span><span class="cx"> return nullptr;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessGenericCallbackh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/GenericCallback.h (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/GenericCallback.h        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/GenericCallback.h        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -200,11 +200,11 @@
</span><span class="cx"> template<class T>
</span><span class="cx"> RefPtr<T> take(uint64_t callbackID)
</span><span class="cx"> {
</span><del>- RefPtr<CallbackBase> base = m_map.take(callbackID);
</del><ins>+ auto base = m_map.take(callbackID);
</ins><span class="cx"> if (!base)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- return adoptRef(base.release().leakRef()->as<T>());
</del><ins>+ return adoptRef(base.leakRef()->as<T>());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void invalidate(CallbackBase::Error error)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessGeolocationPermissionRequestManagerProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/GeolocationPermissionRequestManagerProxy.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/GeolocationPermissionRequestManagerProxy.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/GeolocationPermissionRequestManagerProxy.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -47,9 +47,9 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<GeolocationPermissionRequestProxy> GeolocationPermissionRequestManagerProxy::createRequest(uint64_t geolocationID)
</span><span class="cx"> {
</span><del>- RefPtr<GeolocationPermissionRequestProxy> request = GeolocationPermissionRequestProxy::create(this, geolocationID);
- m_pendingRequests.add(geolocationID, request.get());
- return request.release();
</del><ins>+ auto request = GeolocationPermissionRequestProxy::create(this, geolocationID);
+ m_pendingRequests.add(geolocationID, request.ptr());
+ return WTFMove(request);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void GeolocationPermissionRequestManagerProxy::didReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessNetworkNetworkProcessProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/Network/NetworkProcessProxy.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -249,8 +249,8 @@
</span><span class="cx"> WebPageProxy* page = WebProcessProxy::webPage(pageID);
</span><span class="cx"> MESSAGE_CHECK(page);
</span><span class="cx">
</span><del>- RefPtr<AuthenticationChallengeProxy> authenticationChallenge = AuthenticationChallengeProxy::create(coreChallenge, challengeID, connection());
- page->didReceiveAuthenticationChallengeProxy(frameID, authenticationChallenge.release());
</del><ins>+ auto authenticationChallenge = AuthenticationChallengeProxy::create(coreChallenge, challengeID, connection());
+ page->didReceiveAuthenticationChallengeProxy(frameID, WTFMove(authenticationChallenge));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void NetworkProcessProxy::didFetchWebsiteData(uint64_t callbackID, const WebsiteData& websiteData)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessNotificationsNotificationPermissionRequestManagerProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/Notifications/NotificationPermissionRequestManagerProxy.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -48,9 +48,9 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<NotificationPermissionRequest> NotificationPermissionRequestManagerProxy::createRequest(uint64_t notificationID)
</span><span class="cx"> {
</span><del>- RefPtr<NotificationPermissionRequest> request = NotificationPermissionRequest::create(this, notificationID);
- m_pendingRequests.add(notificationID, request.get());
- return request.release();
</del><ins>+ auto request = NotificationPermissionRequest::create(this, notificationID);
+ m_pendingRequests.add(notificationID, request.ptr());
+ return WTFMove(request);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void NotificationPermissionRequestManagerProxy::didReceiveNotificationPermissionDecision(uint64_t notificationID, bool allow)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessPluginsPluginProcessManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/Plugins/PluginProcessManager.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -125,10 +125,10 @@
</span><span class="cx"> for (size_t i = 0; i < m_pluginProcessTokens.size(); ++i) {
</span><span class="cx"> auto& attributesAndToken = m_pluginProcessTokens[i];
</span><span class="cx"> if (attributesAndToken.second == pluginProcessToken) {
</span><del>- RefPtr<PluginProcessProxy> pluginProcess = PluginProcessProxy::create(this, attributesAndToken.first, attributesAndToken.second);
- PluginProcessProxy* pluginProcessPtr = pluginProcess.get();
</del><ins>+ auto pluginProcess = PluginProcessProxy::create(this, attributesAndToken.first, attributesAndToken.second);
+ PluginProcessProxy* pluginProcessPtr = pluginProcess.ptr();
</ins><span class="cx">
</span><del>- m_pluginProcesses.append(pluginProcess.release());
</del><ins>+ m_pluginProcesses.append(WTFMove(pluginProcess));
</ins><span class="cx"> return pluginProcessPtr;
</span><span class="cx"> }
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessStorageStorageManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/Storage/StorageManager.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/Storage/StorageManager.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/Storage/StorageManager.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -219,9 +219,9 @@
</span><span class="cx">
</span><span class="cx"> String oldValue;
</span><span class="cx">
</span><del>- RefPtr<StorageMap> newStorageMap = m_storageMap->setItem(key, value, oldValue, quotaException);
</del><ins>+ auto newStorageMap = m_storageMap->setItem(key, value, oldValue, quotaException);
</ins><span class="cx"> if (newStorageMap)
</span><del>- m_storageMap = newStorageMap.release();
</del><ins>+ m_storageMap = WTFMove(newStorageMap);
</ins><span class="cx">
</span><span class="cx"> if (quotaException)
</span><span class="cx"> return;
</span><span class="lines">@@ -237,9 +237,9 @@
</span><span class="cx"> openDatabaseAndImportItemsIfNeeded();
</span><span class="cx">
</span><span class="cx"> String oldValue;
</span><del>- RefPtr<StorageMap> newStorageMap = m_storageMap->removeItem(key, oldValue);
</del><ins>+ auto newStorageMap = m_storageMap->removeItem(key, oldValue);
</ins><span class="cx"> if (newStorageMap)
</span><del>- m_storageMap = newStorageMap.release();
</del><ins>+ m_storageMap = WTFMove(newStorageMap);
</ins><span class="cx">
</span><span class="cx"> if (oldValue.isNull())
</span><span class="cx"> return;
</span><span class="lines">@@ -686,10 +686,10 @@
</span><span class="cx"> // FIXME: This should be a message check.
</span><span class="cx"> ASSERT(localStorageNamespace);
</span><span class="cx">
</span><del>- RefPtr<StorageArea> storageArea = localStorageNamespace->getOrCreateStorageArea(securityOriginData.securityOrigin());
</del><ins>+ auto storageArea = localStorageNamespace->getOrCreateStorageArea(securityOriginData.securityOrigin());
</ins><span class="cx"> storageArea->addListener(connection, storageMapID);
</span><span class="cx">
</span><del>- result.iterator->value = storageArea.release();
</del><ins>+ result.iterator->value = WTFMove(storageArea);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void StorageManager::createTransientLocalStorageMap(IPC::Connection& connection, uint64_t storageMapID, uint64_t storageNamespaceID, const SecurityOriginData& topLevelOriginData, const SecurityOriginData& securityOriginData)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebBackForwardListcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebBackForwardList.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebBackForwardList.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/WebBackForwardList.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> removedItems.reserveCapacity(m_entries.size() - targetSize);
</span><span class="cx"> while (m_entries.size() > targetSize) {
</span><span class="cx"> didRemoveItem(*m_entries.last());
</span><del>- removedItems.append(m_entries.last().release());
</del><ins>+ removedItems.append(WTFMove(m_entries.last()));
</ins><span class="cx"> m_entries.removeLast();
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -108,7 +108,7 @@
</span><span class="cx"> // (or even if we are, if we only want 1 entry).
</span><span class="cx"> if (m_entries.size() == m_capacity && (m_currentIndex || m_capacity == 1)) {
</span><span class="cx"> didRemoveItem(*m_entries[0]);
</span><del>- removedItems.append(m_entries[0].release());
</del><ins>+ removedItems.append(WTFMove(m_entries[0]));
</ins><span class="cx"> m_entries.remove(0);
</span><span class="cx">
</span><span class="cx"> if (m_entries.isEmpty())
</span><span class="lines">@@ -127,7 +127,7 @@
</span><span class="cx"> if (!m_entries[i])
</span><span class="cx"> continue;
</span><span class="cx"> didRemoveItem(*m_entries[i]);
</span><del>- removedItems.append(m_entries[i].release());
</del><ins>+ removedItems.append(WTFMove(m_entries[i]));
</ins><span class="cx"> }
</span><span class="cx"> m_entries.clear();
</span><span class="cx"> }
</span><span class="lines">@@ -357,7 +357,7 @@
</span><span class="cx"> continue;
</span><span class="cx">
</span><span class="cx"> didRemoveItem(*m_entries[i]);
</span><del>- removedItems.append(m_entries[i].release());
</del><ins>+ removedItems.append(WTFMove(m_entries[i]));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> m_entries.clear();
</span><span class="lines">@@ -376,7 +376,7 @@
</span><span class="cx"> removedItems.reserveCapacity(size - 1);
</span><span class="cx"> for (size_t i = 0; i < size; ++i) {
</span><span class="cx"> if (i != m_currentIndex && m_hasCurrentIndex && m_entries[i])
</span><del>- removedItems.append(m_entries[i].release());
</del><ins>+ removedItems.append(WTFMove(m_entries[i]));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> m_currentIndex = 0;
</span><span class="lines">@@ -383,7 +383,7 @@
</span><span class="cx">
</span><span class="cx"> if (currentItem) {
</span><span class="cx"> m_entries.shrink(1);
</span><del>- m_entries[0] = currentItem.release();
</del><ins>+ m_entries[0] = WTFMove(currentItem);
</ins><span class="cx"> } else {
</span><span class="cx"> m_entries.clear();
</span><span class="cx"> m_hasCurrentIndex = false;
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebCookieManagerProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/WebCookieManagerProxy.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -95,9 +95,9 @@
</span><span class="cx">
</span><span class="cx"> void WebCookieManagerProxy::getHostnamesWithCookies(std::function<void (API::Array*, CallbackBase::Error)> callbackFunction)
</span><span class="cx"> {
</span><del>- RefPtr<ArrayCallback> callback = ArrayCallback::create(WTFMove(callbackFunction));
</del><ins>+ auto callback = ArrayCallback::create(WTFMove(callbackFunction));
</ins><span class="cx"> uint64_t callbackID = callback->callbackID();
</span><del>- m_arrayCallbacks.set(callbackID, callback.release());
</del><ins>+ m_arrayCallbacks.set(callbackID, WTFMove(callback));
</ins><span class="cx">
</span><span class="cx"> processPool()->sendToNetworkingProcessRelaunchingIfNecessary(Messages::WebCookieManager::GetHostnamesWithCookies(callbackID));
</span><span class="cx"> }
</span><span class="lines">@@ -167,10 +167,10 @@
</span><span class="cx">
</span><span class="cx"> void WebCookieManagerProxy::getHTTPCookieAcceptPolicy(std::function<void (HTTPCookieAcceptPolicy, CallbackBase::Error)> callbackFunction)
</span><span class="cx"> {
</span><del>- RefPtr<HTTPCookieAcceptPolicyCallback> callback = HTTPCookieAcceptPolicyCallback::create(WTFMove(callbackFunction));
</del><ins>+ auto callback = HTTPCookieAcceptPolicyCallback::create(WTFMove(callbackFunction));
</ins><span class="cx">
</span><span class="cx"> uint64_t callbackID = callback->callbackID();
</span><del>- m_httpCookieAcceptPolicyCallbacks.set(callbackID, callback.release());
</del><ins>+ m_httpCookieAcceptPolicyCallbacks.set(callbackID, WTFMove(callback));
</ins><span class="cx">
</span><span class="cx"> processPool()->sendToNetworkingProcessRelaunchingIfNecessary(Messages::WebCookieManager::GetHTTPCookieAcceptPolicy(callbackID));
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPageProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -6169,11 +6169,11 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> auto copiedCompletionHandler = Block_copy(completionHandler);
</span><del>- RefPtr<VoidCallback> voidCallback = VoidCallback::create([copiedCompletionHandler] (CallbackBase::Error) {
</del><ins>+ auto voidCallback = VoidCallback::create([copiedCompletionHandler] (CallbackBase::Error) {
</ins><span class="cx"> copiedCompletionHandler();
</span><span class="cx"> Block_release(copiedCompletionHandler);
</span><span class="cx"> }, m_process->throttler().backgroundActivityToken());
</span><del>- uint64_t callbackID = m_callbacks.put(voidCallback.release());
</del><ins>+ uint64_t callbackID = m_callbacks.put(WTFMove(voidCallback));
</ins><span class="cx"> m_nextViewStateChangeCallbacks.append(callbackID);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebPreferencescpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebPreferences.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebPreferences.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/WebPreferences.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebPreferences> WebPreferences::createWithLegacyDefaults(const String& identifier, const String& keyPrefix, const String& globalDebugKeyPrefix)
</span><span class="cx"> {
</span><del>- RefPtr<WebPreferences> preferences = adoptRef(new WebPreferences(identifier, keyPrefix, globalDebugKeyPrefix));
</del><ins>+ auto preferences = WebPreferences::create(identifier, keyPrefix, globalDebugKeyPrefix);
</ins><span class="cx"> // FIXME: The registerDefault...ValueForKey machinery is unnecessarily heavyweight and complicated.
</span><span class="cx"> // We can just compute different defaults for modern and legacy APIs in WebPreferencesDefinitions.h macros.
</span><span class="cx"> preferences->registerDefaultBoolValueForKey(WebPreferencesKey::javaEnabledKey(), true);
</span><span class="lines">@@ -52,7 +52,7 @@
</span><span class="cx"> preferences->registerDefaultBoolValueForKey(WebPreferencesKey::javaEnabledForLocalFilesKey(), true);
</span><span class="cx"> preferences->registerDefaultBoolValueForKey(WebPreferencesKey::pluginsEnabledKey(), true);
</span><span class="cx"> preferences->registerDefaultUInt32ValueForKey(WebPreferencesKey::storageBlockingPolicyKey(), WebCore::SecurityOrigin::AllowAllStorage);
</span><del>- return preferences.release();
</del><ins>+ return WTFMove(preferences);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WebPreferences::WebPreferences(const String& identifier, const String& keyPrefix, const String& globalDebugKeyPrefix)
</span><span class="lines">@@ -78,7 +78,7 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebPreferences> WebPreferences::copy() const
</span><span class="cx"> {
</span><del>- return adoptRef(new WebPreferences(*this));
</del><ins>+ return adoptRef(*new WebPreferences(*this));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WebPreferences::addPage(WebPageProxy& webPageProxy)
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessWebProcessPoolcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -238,7 +238,7 @@
</span><span class="cx">
</span><span class="cx"> m_iconDatabase->invalidate();
</span><span class="cx"> m_iconDatabase->clearProcessPool();
</span><del>- WebIconDatabase* rawIconDatabase = m_iconDatabase.release().leakRef();
</del><ins>+ WebIconDatabase* rawIconDatabase = m_iconDatabase.leakRef();
</ins><span class="cx"> rawIconDatabase->derefWhenAppropriate();
</span><span class="cx">
</span><span class="cx"> invalidateCallbackMap(m_dictionaryCallbacks, CallbackBase::Error::OwnerWasInvalidated);
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacViewSnapshotStoremm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/mac/ViewSnapshotStore.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -114,7 +114,7 @@
</span><span class="cx">
</span><span class="cx"> webPageProxy.willRecordNavigationSnapshot(item);
</span><span class="cx">
</span><del>- RefPtr<ViewSnapshot> snapshot = webPageProxy.takeViewSnapshot();
</del><ins>+ auto snapshot = webPageProxy.takeViewSnapshot();
</ins><span class="cx"> if (!snapshot)
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="lines">@@ -122,7 +122,7 @@
</span><span class="cx"> snapshot->setDeviceScaleFactor(webPageProxy.deviceScaleFactor());
</span><span class="cx"> snapshot->setBackgroundColor(webPageProxy.pageExtendedBackgroundColor());
</span><span class="cx">
</span><del>- item.setSnapshot(snapshot.release());
</del><ins>+ item.setSnapshot(WTFMove(snapshot));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void ViewSnapshotStore::discardSnapshotImages()
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKImmediateActionControllermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/mac/WKImmediateActionController.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -263,7 +263,7 @@
</span><span class="cx"> else
</span><span class="cx"> hitTestResult = _page->lastMouseMoveHitTestResult();
</span><span class="cx">
</span><del>- return hitTestResult.release();
</del><ins>+ return WTFMove(hitTestResult);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #pragma mark Immediate actions
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWKPrintingViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WKPrintingView.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WKPrintingView.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/mac/WKPrintingView.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -340,7 +340,7 @@
</span><span class="cx"> ASSERT(!_expectedComputedPagesCallback);
</span><span class="cx">
</span><span class="cx"> IPCCallbackContext* context = new IPCCallbackContext;
</span><del>- RefPtr<ComputedPagesCallback> callback = ComputedPagesCallback::create([context](const Vector<WebCore::IntRect>& pageRects, double totalScaleFactorForPrinting, WebKit::CallbackBase::Error) {
</del><ins>+ auto callback = ComputedPagesCallback::create([context](const Vector<WebCore::IntRect>& pageRects, double totalScaleFactorForPrinting, WebKit::CallbackBase::Error) {
</ins><span class="cx"> std::unique_ptr<IPCCallbackContext> contextDeleter(context);
</span><span class="cx"> pageDidComputePageRects(pageRects, totalScaleFactorForPrinting, context);
</span><span class="cx"> });
</span><span class="lines">@@ -348,7 +348,7 @@
</span><span class="cx"> context->view = self;
</span><span class="cx"> context->callbackID = _expectedComputedPagesCallback;
</span><span class="cx">
</span><del>- _webFrame->page()->computePagesForPrinting(_webFrame.get(), PrintInfo([_printOperation printInfo]), callback.release());
</del><ins>+ _webFrame->page()->computePagesForPrinting(_webFrame.get(), PrintInfo([_printOperation printInfo]), WTFMove(callback));
</ins><span class="cx"> return YES;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2UIProcessmacWebPageProxyMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -271,8 +271,8 @@
</span><span class="cx"> #if ENABLE(DRAG_SUPPORT)
</span><span class="cx"> void WebPageProxy::setDragImage(const WebCore::IntPoint& clientPosition, const ShareableBitmap::Handle& dragImageHandle, bool isLinkDrag)
</span><span class="cx"> {
</span><del>- if (RefPtr<ShareableBitmap> dragImage = ShareableBitmap::create(dragImageHandle))
- m_pageClient.setDragImage(clientPosition, dragImage.release(), isLinkDrag);
</del><ins>+ if (auto dragImage = ShareableBitmap::create(dragImageHandle))
+ m_pageClient.setDragImage(clientPosition, WTFMove(dragImage), isLinkDrag);
</ins><span class="cx">
</span><span class="cx"> process().send(Messages::WebPage::DidStartDrag(), m_pageID);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInFramemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInFrame.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -71,8 +71,8 @@
</span><span class="cx">
</span><span class="cx"> - (WKWebProcessPlugInHitTestResult *)hitTest:(CGPoint)point
</span><span class="cx"> {
</span><del>- RefPtr<InjectedBundleHitTestResult> hitTestResult = _frame->hitTest(WebCore::IntPoint(point));
- return [wrapper(*hitTestResult.release().leakRef()) autorelease];
</del><ins>+ auto hitTestResult = _frame->hitTest(WebCore::IntPoint(point));
+ return [wrapper(*hitTestResult.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (JSValue *)jsNodeForNodeHandle:(WKWebProcessPlugInNodeHandle *)nodeHandle inWorld:(WKWebProcessPlugInScriptWorld *)world
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInHitTestResultmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInHitTestResult.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -44,8 +44,8 @@
</span><span class="cx">
</span><span class="cx"> - (WKWebProcessPlugInNodeHandle *)nodeHandle
</span><span class="cx"> {
</span><del>- RefPtr<InjectedBundleNodeHandle> nodeHandle = _hitTestResult->nodeHandle();
- return nodeHandle ? [wrapper(*nodeHandle.release().leakRef()) autorelease] : nil;
</del><ins>+ auto nodeHandle = _hitTestResult->nodeHandle();
+ return nodeHandle ? [wrapper(*nodeHandle.leakRef()) autorelease] : nil;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #pragma mark WKObject protocol implementation
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInNodeHandlemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInNodeHandle.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -48,20 +48,20 @@
</span><span class="cx"> {
</span><span class="cx"> JSContextRef contextRef = [context JSGlobalContextRef];
</span><span class="cx"> JSObjectRef objectRef = JSValueToObject(contextRef, [value JSValueRef], 0);
</span><del>- RefPtr<InjectedBundleNodeHandle> nodeHandle = InjectedBundleNodeHandle::getOrCreate(contextRef, objectRef);
</del><ins>+ auto nodeHandle = InjectedBundleNodeHandle::getOrCreate(contextRef, objectRef);
</ins><span class="cx"> if (!nodeHandle)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*nodeHandle.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*nodeHandle.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> - (WKWebProcessPlugInFrame *)htmlIFrameElementContentFrame
</span><span class="cx"> {
</span><del>- RefPtr<WebFrame> frame = _nodeHandle->htmlIFrameElementContentFrame();
</del><ins>+ auto frame = _nodeHandle->htmlIFrameElementContentFrame();
</ins><span class="cx"> if (!frame)
</span><span class="cx"> return nil;
</span><span class="cx">
</span><del>- return [wrapper(*frame.release().leakRef()) autorelease];
</del><ins>+ return [wrapper(*frame.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPICocoaWKWebProcessPlugInScriptWorldmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInScriptWorld.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -36,8 +36,8 @@
</span><span class="cx">
</span><span class="cx"> + (WKWebProcessPlugInScriptWorld *)world
</span><span class="cx"> {
</span><del>- RefPtr<InjectedBundleScriptWorld> scriptWorld = InjectedBundleScriptWorld::create();
- return [wrapper(*scriptWorld.release().leakRef()) autorelease];
</del><ins>+ auto scriptWorld = InjectedBundleScriptWorld::create();
+ return [wrapper(scriptWorld.leakRef()) autorelease];
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> + (WKWebProcessPlugInScriptWorld *)normalWorld
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> RefPtr<API::Object> returnData;
</span><span class="cx"> toImpl(bundleRef)->postSynchronousMessage(toWTFString(messageNameRef), toImpl(messageBodyRef), returnData);
</span><span class="cx"> if (returnDataRef)
</span><del>- *returnDataRef = toAPI(returnData.release().leakRef());
</del><ins>+ *returnDataRef = toAPI(returnData.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKConnectionRef WKBundleGetApplicationConnection(WKBundleRef bundleRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleDOMWindowExtensioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleDOMWindowExtension.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> WKBundleDOMWindowExtensionRef WKBundleDOMWindowExtensionCreate(WKBundleFrameRef frame, WKBundleScriptWorldRef world)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleDOMWindowExtension> extension = InjectedBundleDOMWindowExtension::create(toImpl(frame), toImpl(world));
</span><del>- return toAPI(extension.release().leakRef());
</del><ins>+ return toAPI(extension.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleFrameRef WKBundleDOMWindowExtensionGetFrame(WKBundleDOMWindowExtensionRef extension)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleHitTestResultcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -42,13 +42,13 @@
</span><span class="cx"> WKBundleNodeHandleRef WKBundleHitTestResultCopyNodeHandle(WKBundleHitTestResultRef hitTestResultRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleNodeHandle> nodeHandle = toImpl(hitTestResultRef)->nodeHandle();
</span><del>- return toAPI(nodeHandle.release().leakRef());
</del><ins>+ return toAPI(nodeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleNodeHandleRef WKBundleHitTestResultCopyURLElementHandle(WKBundleHitTestResultRef hitTestResultRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleNodeHandle> urlElementNodeHandle = toImpl(hitTestResultRef)->urlElementHandle();
</span><del>- return toAPI(urlElementNodeHandle.release().leakRef());
</del><ins>+ return toAPI(urlElementNodeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleFrameRef WKBundleHitTestResultGetFrame(WKBundleHitTestResultRef hitTestResultRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleNavigationActioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -58,13 +58,13 @@
</span><span class="cx"> WKBundleHitTestResultRef WKBundleNavigationActionCopyHitTestResult(WKBundleNavigationActionRef navigationActionRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleHitTestResult> hitTestResult = toImpl(navigationActionRef)->hitTestResult();
</span><del>- return toAPI(hitTestResult.release().leakRef());
</del><ins>+ return toAPI(hitTestResult.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleNodeHandleRef WKBundleNavigationActionCopyFormElement(WKBundleNavigationActionRef navigationActionRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleNodeHandle> formElement = toImpl(navigationActionRef)->formElement();
</span><del>- return toAPI(formElement.release().leakRef());
</del><ins>+ return toAPI(formElement.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> bool WKBundleNavigationActionGetShouldOpenExternalURLs(WKBundleNavigationActionRef navigationActionRef)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleNodeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -59,13 +59,13 @@
</span><span class="cx"> WKBundleNodeHandleRef WKBundleNodeHandleCreate(JSContextRef contextRef, JSObjectRef objectRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleNodeHandle> nodeHandle = InjectedBundleNodeHandle::getOrCreate(contextRef, objectRef);
</span><del>- return toAPI(nodeHandle.release().leakRef());
</del><ins>+ return toAPI(nodeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleNodeHandleRef WKBundleNodeHandleCopyDocument(WKBundleNodeHandleRef nodeHandleRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleNodeHandle> nodeHandle = toImpl(nodeHandleRef)->document();
</span><del>- return toAPI(nodeHandle.release().leakRef());
</del><ins>+ return toAPI(nodeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKRect WKBundleNodeHandleGetRenderRect(WKBundleNodeHandleRef nodeHandleRef, bool* isReplaced)
</span><span class="lines">@@ -76,13 +76,13 @@
</span><span class="cx"> WKImageRef WKBundleNodeHandleCopySnapshotWithOptions(WKBundleNodeHandleRef nodeHandleRef, WKSnapshotOptions options)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebImage> image = toImpl(nodeHandleRef)->renderedImage(toSnapshotOptions(options));
</span><del>- return toAPI(image.release().leakRef());
</del><ins>+ return toAPI(image.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleRangeHandleRef WKBundleNodeHandleCopyVisibleRange(WKBundleNodeHandleRef nodeHandleRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleRangeHandle> rangeHandle = toImpl(nodeHandleRef)->visibleRange();
</span><del>- return toAPI(rangeHandle.release().leakRef());
</del><ins>+ return toAPI(rangeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKRect WKBundleNodeHandleGetElementBounds(WKBundleNodeHandleRef elementHandleRef)
</span><span class="lines">@@ -138,25 +138,25 @@
</span><span class="cx"> WKBundleNodeHandleRef WKBundleNodeHandleCopyHTMLTableCellElementCellAbove(WKBundleNodeHandleRef htmlTableCellElementHandleRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleNodeHandle> nodeHandle = toImpl(htmlTableCellElementHandleRef)->htmlTableCellElementCellAbove();
</span><del>- return toAPI(nodeHandle.release().leakRef());
</del><ins>+ return toAPI(nodeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleFrameRef WKBundleNodeHandleCopyDocumentFrame(WKBundleNodeHandleRef documentHandleRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebFrame> frame = toImpl(documentHandleRef)->documentFrame();
</span><del>- return toAPI(frame.release().leakRef());
</del><ins>+ return toAPI(frame.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleFrameRef WKBundleNodeHandleCopyHTMLFrameElementContentFrame(WKBundleNodeHandleRef htmlFrameElementHandleRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebFrame> frame = toImpl(htmlFrameElementHandleRef)->htmlFrameElementContentFrame();
</span><del>- return toAPI(frame.release().leakRef());
</del><ins>+ return toAPI(frame.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleFrameRef WKBundleNodeHandleCopyHTMLIFrameElementContentFrame(WKBundleNodeHandleRef htmlIFrameElementHandleRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebFrame> frame = toImpl(htmlIFrameElementHandleRef)->htmlIFrameElementContentFrame();
</span><del>- return toAPI(frame.release().leakRef());
</del><ins>+ return toAPI(frame.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> // Deprecated - use WKBundleNodeHandleGetHTMLInputElementAutoFilled(WKBundleNodeHandleRef).
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundlePagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -434,7 +434,7 @@
</span><span class="cx"> WKImageRef WKBundlePageCreateSnapshotWithOptions(WKBundlePageRef pageRef, WKRect rect, WKSnapshotOptions options)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebImage> webImage = toImpl(pageRef)->scaledSnapshotWithOptions(toIntRect(rect), 1, toSnapshotOptions(options));
</span><del>- return toAPI(webImage.release().leakRef());
</del><ins>+ return toAPI(webImage.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKImageRef WKBundlePageCreateSnapshotInViewCoordinates(WKBundlePageRef pageRef, WKRect rect, WKImageOptions options)
</span><span class="lines">@@ -442,19 +442,19 @@
</span><span class="cx"> SnapshotOptions snapshotOptions = snapshotOptionsFromImageOptions(options);
</span><span class="cx"> snapshotOptions |= SnapshotOptionsInViewCoordinates;
</span><span class="cx"> RefPtr<WebImage> webImage = toImpl(pageRef)->scaledSnapshotWithOptions(toIntRect(rect), 1, snapshotOptions);
</span><del>- return toAPI(webImage.release().leakRef());
</del><ins>+ return toAPI(webImage.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKImageRef WKBundlePageCreateSnapshotInDocumentCoordinates(WKBundlePageRef pageRef, WKRect rect, WKImageOptions options)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebImage> webImage = toImpl(pageRef)->scaledSnapshotWithOptions(toIntRect(rect), 1, snapshotOptionsFromImageOptions(options));
</span><del>- return toAPI(webImage.release().leakRef());
</del><ins>+ return toAPI(webImage.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKImageRef WKBundlePageCreateScaledSnapshotInDocumentCoordinates(WKBundlePageRef pageRef, WKRect rect, double scaleFactor, WKImageOptions options)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebImage> webImage = toImpl(pageRef)->scaledSnapshotWithOptions(toIntRect(rect), scaleFactor, snapshotOptionsFromImageOptions(options));
</span><del>- return toAPI(webImage.release().leakRef());
</del><ins>+ return toAPI(webImage.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> double WKBundlePageGetBackingScaleFactor(WKBundlePageRef pageRef)
</span><span class="lines">@@ -624,7 +624,7 @@
</span><span class="cx"> RefPtr<API::Object> returnData;
</span><span class="cx"> page->postSynchronousMessageForTesting(toWTFString(messageNameRef), toImpl(messageBodyRef), returnData);
</span><span class="cx"> if (returnDataRef)
</span><del>- *returnDataRef = toAPI(returnData.release().leakRef());
</del><ins>+ *returnDataRef = toAPI(returnData.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WKBundlePageAddUserScript(WKBundlePageRef pageRef, WKStringRef source, _WKUserScriptInjectionTime injectionTime, WKUserContentInjectedFrames injectedFrames)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleRangeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> WKBundleRangeHandleRef WKBundleRangeHandleCreate(JSContextRef contextRef, JSObjectRef objectRef)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleRangeHandle> rangeHandle = InjectedBundleRangeHandle::getOrCreate(contextRef, objectRef);
</span><del>- return toAPI(rangeHandle.release().leakRef());
</del><ins>+ return toAPI(rangeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKRect WKBundleRangeHandleGetBoundingRectInWindowCoordinates(WKBundleRangeHandleRef rangeHandleRef)
</span><span class="lines">@@ -55,5 +55,5 @@
</span><span class="cx"> WKImageRef WKBundleRangeHandleCopySnapshotWithOptions(WKBundleRangeHandleRef rangeHandleRef, WKSnapshotOptions options)
</span><span class="cx"> {
</span><span class="cx"> RefPtr<WebImage> image = toImpl(rangeHandleRef)->renderedImage(toSnapshotOptions(options));
</span><del>- return toAPI(image.release().leakRef());
</del><ins>+ return toAPI(image.leakRef());
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPIcWKBundleScriptWorldcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleScriptWorld.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> WKBundleScriptWorldRef WKBundleScriptWorldCreateWorld()
</span><span class="cx"> {
</span><span class="cx"> RefPtr<InjectedBundleScriptWorld> world = InjectedBundleScriptWorld::create();
</span><del>- return toAPI(world.release().leakRef());
</del><ins>+ return toAPI(world.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WKBundleScriptWorldRef WKBundleScriptWorldNormalWorld()
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPImacWKDOMNodemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMNode.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMNode.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMNode.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -129,8 +129,8 @@
</span><span class="cx">
</span><span class="cx"> - (WKBundleNodeHandleRef)_copyBundleNodeHandleRef
</span><span class="cx"> {
</span><del>- RefPtr<WebKit::InjectedBundleNodeHandle> nodeHandle = WebKit::InjectedBundleNodeHandle::getOrCreate(_impl.get());
- return toAPI(nodeHandle.release().leakRef());
</del><ins>+ auto nodeHandle = WebKit::InjectedBundleNodeHandle::getOrCreate(_impl.get());
+ return toAPI(nodeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> @end
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleAPImacWKDOMRangemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMRange.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMRange.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMRange.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -156,8 +156,8 @@
</span><span class="cx">
</span><span class="cx"> - (WKBundleRangeHandleRef)_copyBundleRangeHandleRef
</span><span class="cx"> {
</span><del>- RefPtr<WebKit::InjectedBundleRangeHandle> rangeHandle = WebKit::InjectedBundleRangeHandle::getOrCreate(_impl.get());
- return toAPI(rangeHandle.release().leakRef());
</del><ins>+ auto rangeHandle = WebKit::InjectedBundleRangeHandle::getOrCreate(_impl.get());
+ return toAPI(rangeHandle.leakRef());
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> @end
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleCSSStyleDeclarationHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleCSSStyleDeclarationHandle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -51,9 +51,9 @@
</span><span class="cx"> if (!result.isNewEntry)
</span><span class="cx"> return PassRefPtr<InjectedBundleCSSStyleDeclarationHandle>(result.iterator->value);
</span><span class="cx">
</span><del>- RefPtr<InjectedBundleCSSStyleDeclarationHandle> styleDeclarationHandle = adoptRef(new InjectedBundleCSSStyleDeclarationHandle(*styleDeclaration));
- result.iterator->value = styleDeclarationHandle.get();
- return styleDeclarationHandle.release();
</del><ins>+ auto styleDeclarationHandle = adoptRef(*new InjectedBundleCSSStyleDeclarationHandle(*styleDeclaration));
+ result.iterator->value = styleDeclarationHandle.ptr();
+ return WTFMove(styleDeclarationHandle);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> InjectedBundleCSSStyleDeclarationHandle::InjectedBundleCSSStyleDeclarationHandle(CSSStyleDeclaration& styleDeclaration)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleNodeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -140,7 +140,7 @@
</span><span class="cx"> float scaleFactor = frameView->frame().page()->deviceScaleFactor();
</span><span class="cx"> bitmapSize.scale(scaleFactor);
</span><span class="cx">
</span><del>- RefPtr<WebImage> snapshot = WebImage::create(bitmapSize, snapshotOptionsToImageOptions(options));
</del><ins>+ auto snapshot = WebImage::create(bitmapSize, snapshotOptionsToImageOptions(options));
</ins><span class="cx"> if (!snapshot->bitmap())
</span><span class="cx"> return 0;
</span><span class="cx">
</span><span class="lines">@@ -164,7 +164,7 @@
</span><span class="cx"> frameView->paintContentsForSnapshot(*graphicsContext.get(), rect, shouldPaintSelection, FrameView::DocumentCoordinates);
</span><span class="cx"> frameView->setPaintBehavior(oldPaintBehavior);
</span><span class="cx">
</span><del>- return snapshot.release();
</del><ins>+ return snapshot;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebImage> InjectedBundleNodeHandle::renderedImage(SnapshotOptions options)
</span><span class="lines">@@ -187,10 +187,10 @@
</span><span class="cx"> IntRect paintingRect = snappedIntRect(renderer->paintingRootRect(topLevelRect));
</span><span class="cx">
</span><span class="cx"> frameView->setNodeToDraw(m_node.ptr());
</span><del>- RefPtr<WebImage> image = imageForRect(frameView, paintingRect, options);
</del><ins>+ auto image = imageForRect(frameView, paintingRect, options);
</ins><span class="cx"> frameView->setNodeToDraw(0);
</span><span class="cx">
</span><del>- return image.release();
</del><ins>+ return image;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<InjectedBundleRangeHandle> InjectedBundleNodeHandle::visibleRange()
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleDOMInjectedBundleRangeHandlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -70,9 +70,9 @@
</span><span class="cx"> if (!result.isNewEntry)
</span><span class="cx"> return PassRefPtr<InjectedBundleRangeHandle>(result.iterator->value);
</span><span class="cx">
</span><del>- RefPtr<InjectedBundleRangeHandle> rangeHandle = InjectedBundleRangeHandle::create(range);
- result.iterator->value = rangeHandle.get();
- return rangeHandle.release();
</del><ins>+ auto rangeHandle = InjectedBundleRangeHandle::create(range);
+ result.iterator->value = rangeHandle.ptr();
+ return WTFMove(rangeHandle);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Ref<InjectedBundleRangeHandle> InjectedBundleRangeHandle::create(Range* range)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessInjectedBundleInjectedBundlecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -90,13 +90,13 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<InjectedBundle> InjectedBundle::create(const WebProcessCreationParameters& parameters, API::Object* initializationUserData)
</span><span class="cx"> {
</span><del>- RefPtr<InjectedBundle> bundle = adoptRef(new InjectedBundle(parameters));
</del><ins>+ auto bundle = adoptRef(*new InjectedBundle(parameters));
</ins><span class="cx">
</span><span class="cx"> bundle->m_sandboxExtension = SandboxExtension::create(parameters.injectedBundlePathExtensionHandle);
</span><span class="cx"> if (!bundle->initialize(parameters, initializationUserData))
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- return bundle.release();
</del><ins>+ return WTFMove(bundle);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> InjectedBundle::InjectedBundle(const WebProcessCreationParameters& parameters)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessPluginsNetscapeNetscapePlugincpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/Plugins/Netscape/NetscapePlugin.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -169,10 +169,10 @@
</span><span class="cx">
</span><span class="cx"> if (target.isNull()) {
</span><span class="cx"> // The browser is going to send the data in a stream, create a plug-in stream.
</span><del>- RefPtr<NetscapePluginStream> pluginStream = NetscapePluginStream::create(this, requestID, urlString, sendNotification, notificationData);
</del><ins>+ auto pluginStream = NetscapePluginStream::create(this, requestID, urlString, sendNotification, notificationData);
</ins><span class="cx"> ASSERT(!m_streams.contains(requestID));
</span><span class="cx">
</span><del>- m_streams.set(requestID, pluginStream.release());
</del><ins>+ m_streams.set(requestID, WTFMove(pluginStream));
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessPluginsPDFDeprecatedPDFPluginmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/Plugins/PDF/DeprecatedPDFPlugin.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -651,7 +651,7 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<Scrollbar> PDFPlugin::createScrollbar(ScrollbarOrientation orientation)
</span><span class="cx"> {
</span><del>- RefPtr<Scrollbar> widget = Scrollbar::createNativeScrollbar(*this, orientation, RegularScrollbar);
</del><ins>+ auto widget = Scrollbar::createNativeScrollbar(*this, orientation, RegularScrollbar);
</ins><span class="cx"> if (orientation == HorizontalScrollbar) {
</span><span class="cx"> m_horizontalScrollbarLayer = adoptNS([[WKPDFPluginScrollbarLayer alloc] initWithPDFPlugin:this]);
</span><span class="cx"> [m_containerLayer addSublayer:m_horizontalScrollbarLayer.get()];
</span><span class="lines">@@ -667,7 +667,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx"> pluginView()->frame()->view()->addChild(widget.get());
</span><del>- return widget.release();
</del><ins>+ return widget;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void PDFPlugin::destroyScrollbar(ScrollbarOrientation orientation)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessStorageStorageAreaMapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/Storage/StorageAreaMap.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/Storage/StorageAreaMap.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/Storage/StorageAreaMap.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -262,7 +262,7 @@
</span><span class="cx">
</span><span class="cx"> if (!key) {
</span><span class="cx"> // A null key means clear.
</span><del>- RefPtr<StorageMap> newStorageMap = StorageMap::create(m_quotaInBytes);
</del><ins>+ auto newStorageMap = StorageMap::create(m_quotaInBytes);
</ins><span class="cx">
</span><span class="cx"> // Any changes that were made locally after the clear must still be kept around in the new map.
</span><span class="cx"> for (auto it = m_pendingValueChanges.begin().keys(), end = m_pendingValueChanges.end().keys(); it != end; ++it) {
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx"> newStorageMap->setItemIgnoringQuota(key, oldValue);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- m_storageMap = newStorageMap.release();
</del><ins>+ m_storageMap = WTFMove(newStorageMap);
</ins><span class="cx"> return;
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportSessionStateConversioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/SessionStateConversion.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -123,7 +123,7 @@
</span><span class="cx">
</span><span class="cx"> static PassRefPtr<FormData> toFormData(const HTTPBody& httpBody)
</span><span class="cx"> {
</span><del>- RefPtr<FormData> formData = FormData::create();
</del><ins>+ auto formData = FormData::create();
</ins><span class="cx">
</span><span class="cx"> for (const auto& element : httpBody.elements) {
</span><span class="cx"> switch (element.type) {
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return formData.release();
</del><ins>+ return WTFMove(formData);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> static void applyFrameState(HistoryItem& historyItem, const FrameState& frameState)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebFrameLoaderClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1435,11 +1435,11 @@
</span><span class="cx"> #endif
</span><span class="cx">
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>- RefPtr<Plugin> plugin = m_frame->page()->createPlugin(m_frame, pluginElement, parameters, parameters.mimeType);
</del><ins>+ auto plugin = m_frame->page()->createPlugin(m_frame, pluginElement, parameters, parameters.mimeType);
</ins><span class="cx"> if (!plugin)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- return PluginView::create(pluginElement, plugin.release(), parameters);
</del><ins>+ return PluginView::create(pluginElement, WTFMove(plugin), parameters);
</ins><span class="cx"> #else
</span><span class="cx"> UNUSED_PARAM(pluginElement);
</span><span class="cx"> return nullptr;
</span><span class="lines">@@ -1454,8 +1454,8 @@
</span><span class="cx">
</span><span class="cx"> PluginView* pluginView = static_cast<PluginView*>(widget);
</span><span class="cx"> String newMIMEType;
</span><del>- RefPtr<Plugin> plugin = m_frame->page()->createPlugin(m_frame, pluginView->pluginElement(), pluginView->initialParameters(), newMIMEType);
- pluginView->recreateAndInitialize(plugin.release());
</del><ins>+ auto plugin = m_frame->page()->createPlugin(m_frame, pluginView->pluginElement(), pluginView->initialParameters(), newMIMEType);
+ pluginView->recreateAndInitialize(WTFMove(plugin));
</ins><span class="cx"> #else
</span><span class="cx"> UNUSED_PARAM(widget);
</span><span class="cx"> #endif
</span><span class="lines">@@ -1488,7 +1488,7 @@
</span><span class="cx"> PassRefPtr<Widget> WebFrameLoaderClient::createJavaAppletWidget(const IntSize& pluginSize, HTMLAppletElement* appletElement, const URL&, const Vector<String>& paramNames, const Vector<String>& paramValues)
</span><span class="cx"> {
</span><span class="cx"> #if ENABLE(NETSCAPE_PLUGIN_API)
</span><del>- RefPtr<Widget> plugin = createPlugin(pluginSize, appletElement, URL(), paramNames, paramValues, appletElement->serviceType(), false);
</del><ins>+ auto plugin = createPlugin(pluginSize, appletElement, URL(), paramNames, paramValues, appletElement->serviceType(), false);
</ins><span class="cx"> if (!plugin) {
</span><span class="cx"> if (WebPage* webPage = m_frame->page()) {
</span><span class="cx"> String frameURLString = m_frame->coreFrame()->loader().documentLoader()->responseURL().string();
</span><span class="lines">@@ -1496,7 +1496,7 @@
</span><span class="cx"> webPage->send(Messages::WebPageProxy::DidFailToInitializePlugin(appletElement->serviceType(), frameURLString, pageURLString));
</span><span class="cx"> }
</span><span class="cx"> }
</span><del>- return plugin.release();
</del><ins>+ return WTFMove(plugin);
</ins><span class="cx"> #else
</span><span class="cx"> UNUSED_PARAM(pluginSize);
</span><span class="cx"> UNUSED_PARAM(appletElement);
</span><span class="lines">@@ -1701,8 +1701,8 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext()
</span><span class="cx"> {
</span><del>- RefPtr<WebFrameNetworkingContext> context = WebFrameNetworkingContext::create(m_frame);
- return context.release();
</del><ins>+ auto context = WebFrameNetworkingContext::create(m_frame);
+ return WTFMove(context);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> #if ENABLE(CONTENT_FILTERING)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportWebInspectorClientcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -107,9 +107,9 @@
</span><span class="cx"> {
</span><span class="cx"> #if !PLATFORM(IOS)
</span><span class="cx"> if (!m_highlightOverlay) {
</span><del>- RefPtr<PageOverlay> highlightOverlay = PageOverlay::create(*this);
- m_highlightOverlay = highlightOverlay.get();
- m_page->mainFrame()->pageOverlayController().installPageOverlay(highlightOverlay.release(), PageOverlay::FadeMode::Fade);
</del><ins>+ auto highlightOverlay = PageOverlay::create(*this);
+ m_highlightOverlay = highlightOverlay.ptr();
+ m_page->mainFrame()->pageOverlayController().installPageOverlay(WTFMove(highlightOverlay), PageOverlay::FadeMode::Fade);
</ins><span class="cx"> m_highlightOverlay->setNeedsDisplay();
</span><span class="cx"> } else {
</span><span class="cx"> m_highlightOverlay->stopFadeOutAnimation();
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebCoreSupportmacWebDragClientMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebDragClientMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebDragClientMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebCoreSupport/mac/WebDragClientMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">
</span><span class="cx"> static PassRefPtr<ShareableBitmap> convertImageToBitmap(NSImage *image, const IntSize& size)
</span><span class="cx"> {
</span><del>- RefPtr<ShareableBitmap> bitmap = ShareableBitmap::createShareable(size, ShareableBitmap::SupportsAlpha);
</del><ins>+ auto bitmap = ShareableBitmap::createShareable(size, ShareableBitmap::SupportsAlpha);
</ins><span class="cx"> if (!bitmap)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx">
</span><span class="cx"> [NSGraphicsContext setCurrentContext:savedContext.get()];
</span><span class="cx">
</span><del>- return bitmap.release();
</del><ins>+ return WTFMove(bitmap);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WebDragClient::startDrag(RetainPtr<NSImage> image, const IntPoint& point, const IntPoint&, DataTransfer&, Frame& frame, bool linkDrag)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageFindControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/FindController.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/FindController.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/FindController.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -192,9 +192,9 @@
</span><span class="cx"> m_webPage->mainFrame()->pageOverlayController().uninstallPageOverlay(m_findPageOverlay, PageOverlay::FadeMode::Fade);
</span><span class="cx"> } else {
</span><span class="cx"> if (!m_findPageOverlay) {
</span><del>- RefPtr<PageOverlay> findPageOverlay = PageOverlay::create(*this, PageOverlay::OverlayType::Document);
- m_findPageOverlay = findPageOverlay.get();
- m_webPage->mainFrame()->pageOverlayController().installPageOverlay(findPageOverlay.release(), PageOverlay::FadeMode::Fade);
</del><ins>+ auto findPageOverlay = PageOverlay::create(*this, PageOverlay::OverlayType::Document);
+ m_findPageOverlay = findPageOverlay.ptr();
+ m_webPage->mainFrame()->pageOverlayController().installPageOverlay(WTFMove(findPageOverlay), PageOverlay::FadeMode::Fade);
</ins><span class="cx"> }
</span><span class="cx"> m_findPageOverlay->setNeedsDisplay();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageVisitedLinkTableControllercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/VisitedLinkTableController.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/VisitedLinkTableController.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/VisitedLinkTableController.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -50,10 +50,10 @@
</span><span class="cx"> if (visitedLinkTableControllerPtr)
</span><span class="cx"> return visitedLinkTableControllerPtr;
</span><span class="cx">
</span><del>- RefPtr<VisitedLinkTableController> visitedLinkTableController = adoptRef(new VisitedLinkTableController(identifier));
- visitedLinkTableControllerPtr = visitedLinkTableController.get();
</del><ins>+ auto visitedLinkTableController = adoptRef(*new VisitedLinkTableController(identifier));
+ visitedLinkTableControllerPtr = visitedLinkTableController.ptr();
</ins><span class="cx">
</span><del>- return visitedLinkTableController.release();
</del><ins>+ return WTFMove(visitedLinkTableController);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> VisitedLinkTableController::VisitedLinkTableController(uint64_t identifier)
</span><span class="lines">@@ -90,11 +90,11 @@
</span><span class="cx">
</span><span class="cx"> void VisitedLinkTableController::setVisitedLinkTable(const SharedMemory::Handle& handle)
</span><span class="cx"> {
</span><del>- RefPtr<SharedMemory> sharedMemory = SharedMemory::map(handle, SharedMemory::Protection::ReadOnly);
</del><ins>+ auto sharedMemory = SharedMemory::map(handle, SharedMemory::Protection::ReadOnly);
</ins><span class="cx"> if (!sharedMemory)
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- m_visitedLinkTable.setSharedMemory(sharedMemory.release());
</del><ins>+ m_visitedLinkTable.setSharedMemory(WTFMove(sharedMemory));
</ins><span class="cx">
</span><span class="cx"> invalidateStylesForAllLinks();
</span><span class="cx"> PageCache::singleton().markPagesForVisitedLinkStyleRecalc();
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebFramecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -110,18 +110,18 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebFrame> WebFrame::createWithCoreMainFrame(WebPage* page, WebCore::Frame* coreFrame)
</span><span class="cx"> {
</span><del>- RefPtr<WebFrame> frame = create(std::unique_ptr<WebFrameLoaderClient>(static_cast<WebFrameLoaderClient*>(&coreFrame->loader().client())));
</del><ins>+ auto frame = create(std::unique_ptr<WebFrameLoaderClient>(static_cast<WebFrameLoaderClient*>(&coreFrame->loader().client())));
</ins><span class="cx"> page->send(Messages::WebPageProxy::DidCreateMainFrame(frame->frameID()), page->pageID(), IPC::DispatchMessageEvenWhenWaitingForSyncReply);
</span><span class="cx">
</span><span class="cx"> frame->m_coreFrame = coreFrame;
</span><span class="cx"> frame->m_coreFrame->tree().setName(String());
</span><span class="cx"> frame->m_coreFrame->init();
</span><del>- return frame.release();
</del><ins>+ return frame;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebFrame> WebFrame::createSubframe(WebPage* page, const String& frameName, HTMLFrameOwnerElement* ownerElement)
</span><span class="cx"> {
</span><del>- RefPtr<WebFrame> frame = create(std::make_unique<WebFrameLoaderClient>());
</del><ins>+ auto frame = create(std::make_unique<WebFrameLoaderClient>());
</ins><span class="cx"> page->send(Messages::WebPageProxy::DidCreateSubframe(frame->frameID()), page->pageID(), IPC::DispatchMessageEvenWhenWaitingForSyncReply);
</span><span class="cx">
</span><span class="cx"> Ref<WebCore::Frame> coreFrame = Frame::create(page->corePage(), ownerElement, frame->m_frameLoaderClient.get());
</span><span class="lines">@@ -132,17 +132,17 @@
</span><span class="cx"> ownerElement->document().frame()->tree().appendChild(WTFMove(coreFrame));
</span><span class="cx"> }
</span><span class="cx"> frame->m_coreFrame->init();
</span><del>- return frame.release();
</del><ins>+ return frame;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebFrame> WebFrame::create(std::unique_ptr<WebFrameLoaderClient> frameLoaderClient)
</span><span class="cx"> {
</span><del>- RefPtr<WebFrame> frame = adoptRef(new WebFrame(WTFMove(frameLoaderClient)));
</del><ins>+ auto frame = adoptRef(*new WebFrame(WTFMove(frameLoaderClient)));
</ins><span class="cx">
</span><span class="cx"> // Add explict ref() that will be balanced in WebFrameLoaderClient::frameLoaderDestroyed().
</span><span class="cx"> frame->ref();
</span><span class="cx">
</span><del>- return frame.release();
</del><ins>+ return WTFMove(frame);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WebFrame::WebFrame(std::unique_ptr<WebFrameLoaderClient> frameLoaderClient)
</span><span class="lines">@@ -818,7 +818,7 @@
</span><span class="cx"> if (!snapshot)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><del>- RefPtr<ShareableBitmap> sharedSnapshot = ShareableBitmap::createShareable(snapshot->internalSize(), ShareableBitmap::SupportsAlpha);
</del><ins>+ auto sharedSnapshot = ShareableBitmap::createShareable(snapshot->internalSize(), ShareableBitmap::SupportsAlpha);
</ins><span class="cx"> if (!sharedSnapshot)
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="lines">@@ -829,7 +829,7 @@
</span><span class="cx"> graphicsContext->scale(FloatSize(deviceScaleFactor, deviceScaleFactor));
</span><span class="cx"> graphicsContext->drawConsumingImageBuffer(WTFMove(snapshot), FloatPoint());
</span><span class="cx">
</span><del>- return sharedSnapshot.release();
</del><ins>+ return WTFMove(sharedSnapshot);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> } // namespace WebKit
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -755,8 +755,8 @@
</span><span class="cx"> #if ENABLE(PDFKIT_PLUGIN)
</span><span class="cx"> String path = parameters.url.path();
</span><span class="cx"> if (shouldUsePDFPlugin() && (MIMETypeRegistry::isPDFOrPostScriptMIMEType(parameters.mimeType) || (parameters.mimeType.isEmpty() && (path.endsWith(".pdf", false) || path.endsWith(".ps", false))))) {
</span><del>- RefPtr<PDFPlugin> pdfPlugin = PDFPlugin::create(frame);
- return pdfPlugin.release();
</del><ins>+ auto pdfPlugin = PDFPlugin::create(frame);
+ return WTFMove(pdfPlugin);
</ins><span class="cx"> }
</span><span class="cx"> #else
</span><span class="cx"> UNUSED_PARAM(frame);
</span><span class="lines">@@ -1871,7 +1871,7 @@
</span><span class="cx"> float verticalScaleFactor = static_cast<float>(bitmapSize.height()) / rect.height();
</span><span class="cx"> float scaleFactor = std::max(horizontalScaleFactor, verticalScaleFactor);
</span><span class="cx">
</span><del>- RefPtr<WebImage> snapshot = WebImage::create(bitmapSize, snapshotOptionsToImageOptions(options));
</del><ins>+ auto snapshot = WebImage::create(bitmapSize, snapshotOptionsToImageOptions(options));
</ins><span class="cx"> if (!snapshot->bitmap())
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="lines">@@ -1879,7 +1879,7 @@
</span><span class="cx">
</span><span class="cx"> if (options & SnapshotOptionsPrinting) {
</span><span class="cx"> PrintContext::spoolAllPagesWithBoundaries(*coreFrame, *graphicsContext, snapshotRect.size());
</span><del>- return snapshot.release();
</del><ins>+ return snapshot;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> Color documentBackgroundColor = frameView->documentBackgroundColor();
</span><span class="lines">@@ -1911,7 +1911,7 @@
</span><span class="cx"> graphicsContext->strokeRect(selectionRectangle, 1);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return snapshot.release();
</del><ins>+ return snapshot;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebImage> WebPage::snapshotNode(WebCore::Node& node, SnapshotOptions options, unsigned maximumPixelCount)
</span><span class="lines">@@ -1940,7 +1940,7 @@
</span><span class="cx"> snapshotSize = IntSize(snapshotSize.width() * scaleFactor, maximumHeight);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<WebImage> snapshot = WebImage::create(snapshotSize, snapshotOptionsToImageOptions(options));
</del><ins>+ auto snapshot = WebImage::create(snapshotSize, snapshotOptionsToImageOptions(options));
</ins><span class="cx"> if (!snapshot->bitmap())
</span><span class="cx"> return nullptr;
</span><span class="cx">
</span><span class="lines">@@ -1964,7 +1964,7 @@
</span><span class="cx"> frameView->setBaseBackgroundColor(savedBackgroundColor);
</span><span class="cx"> frameView->setNodeToDraw(nullptr);
</span><span class="cx">
</span><del>- return snapshot.release();
</del><ins>+ return snapshot;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WebPage::pageDidScroll()
</span><span class="lines">@@ -3420,7 +3420,7 @@
</span><span class="cx">
</span><span class="cx"> void WebPage::willPerformLoadDragDestinationAction()
</span><span class="cx"> {
</span><del>- m_sandboxExtensionTracker.willPerformLoadDragDestinationAction(m_pendingDropSandboxExtension.release());
</del><ins>+ m_sandboxExtensionTracker.willPerformLoadDragDestinationAction(WTFMove(m_pendingDropSandboxExtension));
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void WebPage::mayPerformUploadDragDestinationAction()
</span><span class="lines">@@ -3973,7 +3973,7 @@
</span><span class="cx">
</span><span class="cx"> ASSERT(!m_provisionalSandboxExtension);
</span><span class="cx">
</span><del>- m_provisionalSandboxExtension = m_pendingProvisionalSandboxExtension.release();
</del><ins>+ m_provisionalSandboxExtension = WTFMove(m_pendingProvisionalSandboxExtension);
</ins><span class="cx"> if (!m_provisionalSandboxExtension)
</span><span class="cx"> return;
</span><span class="cx">
</span><span class="lines">@@ -3990,7 +3990,7 @@
</span><span class="cx"> if (m_committedSandboxExtension)
</span><span class="cx"> m_committedSandboxExtension->revoke();
</span><span class="cx">
</span><del>- m_committedSandboxExtension = m_provisionalSandboxExtension.release();
</del><ins>+ m_committedSandboxExtension = WTFMove(m_provisionalSandboxExtension);
</ins><span class="cx">
</span><span class="cx"> // We can also have a non-null m_pendingProvisionalSandboxExtension if a new load is being started.
</span><span class="cx"> // This extension is not cleared, because it does not pertain to the failed load, and will be needed.
</span><span class="lines">@@ -4149,7 +4149,7 @@
</span><span class="cx"> ASSERT(coreFrame->document()->printing());
</span><span class="cx"> #endif
</span><span class="cx">
</span><del>- RefPtr<ShareableBitmap> bitmap = ShareableBitmap::createShareable(imageSize, ShareableBitmap::SupportsAlpha);
</del><ins>+ auto bitmap = ShareableBitmap::createShareable(imageSize, ShareableBitmap::SupportsAlpha);
</ins><span class="cx"> auto graphicsContext = bitmap->createGraphicsContext();
</span><span class="cx">
</span><span class="cx"> float printingScale = static_cast<float>(imageSize.width()) / rect.width();
</span><span class="lines">@@ -4167,7 +4167,7 @@
</span><span class="cx"> m_printContext->spoolRect(*graphicsContext, rect);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- image = WebImage::create(bitmap.release());
</del><ins>+ image = WebImage::create(WTFMove(bitmap));
</ins><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPageWebPageGroupProxycpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPageGroupProxy.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -37,12 +37,12 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<WebPageGroupProxy> WebPageGroupProxy::create(const WebPageGroupData& data)
</span><span class="cx"> {
</span><del>- RefPtr<WebPageGroupProxy> pageGroup = adoptRef(new WebPageGroupProxy(data));
-
</del><ins>+ auto pageGroup = adoptRef(*new WebPageGroupProxy(data));
+
</ins><span class="cx"> if (pageGroup->isVisibleToInjectedBundle() && WebProcess::singleton().injectedBundle())
</span><del>- WebProcess::singleton().injectedBundle()->didInitializePageGroup(pageGroup.get());
</del><ins>+ WebProcess::singleton().injectedBundle()->didInitializePageGroup(pageGroup.ptr());
</ins><span class="cx">
</span><del>- return pageGroup.release();
</del><ins>+ return WTFMove(pageGroup);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> WebPageGroupProxy::WebPageGroupProxy(const WebPageGroupData& data)
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacPlatformCAAnimationRemotemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -294,7 +294,7 @@
</span><span class="cx"> break;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- properties.timingFunctions.uncheckedAppend(timingFunction.release());
</del><ins>+ properties.timingFunctions.uncheckedAppend(WTFMove(timingFunction));
</ins><span class="cx"> }
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacPlatformCALayerRemotecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemote.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemote.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemote.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">
</span><span class="cx"> context.layerWasCreated(*layer, layerType);
</span><span class="cx">
</span><del>- return layer.release();
</del><ins>+ return WTFMove(layer);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<PlatformCALayerRemote> PlatformCALayerRemote::create(PlatformLayer *platformLayer, PlatformCALayerClient* owner, RemoteLayerTreeContext& context)
</span><span class="lines">@@ -66,11 +66,11 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<PlatformCALayerRemote> PlatformCALayerRemote::create(const PlatformCALayerRemote& other, WebCore::PlatformCALayerClient* owner, RemoteLayerTreeContext& context)
</span><span class="cx"> {
</span><del>- RefPtr<PlatformCALayerRemote> layer = adoptRef(new PlatformCALayerRemote(other, owner, context));
</del><ins>+ auto layer = adoptRef(*new PlatformCALayerRemote(other, owner, context));
</ins><span class="cx">
</span><del>- context.layerWasCreated(*layer, other.layerType());
</del><ins>+ context.layerWasCreated(layer.get(), other.layerType());
</ins><span class="cx">
</span><del>- return layer.release();
</del><ins>+ return WTFMove(layer);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PlatformCALayerRemote::PlatformCALayerRemote(LayerType layerType, PlatformCALayerClient* owner, RemoteLayerTreeContext& context)
</span><span class="lines">@@ -95,12 +95,12 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<PlatformCALayer> PlatformCALayerRemote::clone(PlatformCALayerClient* owner) const
</span><span class="cx"> {
</span><del>- RefPtr<PlatformCALayerRemote> clone = PlatformCALayerRemote::create(*this, owner, *m_context);
</del><ins>+ auto clone = PlatformCALayerRemote::create(*this, owner, *m_context);
</ins><span class="cx">
</span><span class="cx"> updateClonedLayerProperties(*clone);
</span><span class="cx">
</span><span class="cx"> clone->setClonedLayer(this);
</span><del>- return clone.release();
</del><ins>+ return WTFMove(clone);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PlatformCALayerRemote::~PlatformCALayerRemote()
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacPlatformCALayerRemoteCustommm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -48,10 +48,10 @@
</span><span class="cx">
</span><span class="cx"> PassRefPtr<PlatformCALayerRemote> PlatformCALayerRemoteCustom::create(PlatformLayer *platformLayer, PlatformCALayerClient* owner, RemoteLayerTreeContext& context)
</span><span class="cx"> {
</span><del>- RefPtr<PlatformCALayerRemote> layer = adoptRef(new PlatformCALayerRemoteCustom(PlatformCALayerCocoa::layerTypeForPlatformLayer(platformLayer), platformLayer, owner, context));
- context.layerWasCreated(*layer, layer->layerType());
</del><ins>+ auto layer = adoptRef(*new PlatformCALayerRemoteCustom(PlatformCALayerCocoa::layerTypeForPlatformLayer(platformLayer), platformLayer, owner, context));
+ context.layerWasCreated(layer.get(), layer->layerType());
</ins><span class="cx">
</span><del>- return layer.release();
</del><ins>+ return WTFMove(layer);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PlatformCALayerRemoteCustom::PlatformCALayerRemoteCustom(LayerType layerType, PlatformLayer * customLayer, PlatformCALayerClient* owner, RemoteLayerTreeContext& context)
</span><span class="lines">@@ -127,13 +127,13 @@
</span><span class="cx"> copyContents = false;
</span><span class="cx"> }
</span><span class="cx">
</span><del>- RefPtr<PlatformCALayerRemote> clone = adoptRef(new PlatformCALayerRemoteCustom(layerType(), clonedLayer.get(), owner, *context()));
- context()->layerWasCreated(*clone, clone->layerType());
</del><ins>+ auto clone = adoptRef(*new PlatformCALayerRemoteCustom(layerType(), clonedLayer.get(), owner, *context()));
+ context()->layerWasCreated(clone.get(), clone->layerType());
</ins><span class="cx">
</span><del>- updateClonedLayerProperties(*clone, copyContents);
</del><ins>+ updateClonedLayerProperties(clone.get(), copyContents);
</ins><span class="cx">
</span><span class="cx"> clone->setClonedLayer(this);
</span><del>- return clone.release();
</del><ins>+ return WTFMove(clone);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> CFTypeRef PlatformCALayerRemoteCustom::contents() const
</span></span></pre></div>
<a id="trunkSourceWebKit2WebProcessWebPagemacRemoteLayerTreeDrawingAreamm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -111,9 +111,9 @@
</span><span class="cx">
</span><span class="cx"> RefPtr<DisplayRefreshMonitor> RemoteLayerTreeDrawingArea::createDisplayRefreshMonitor(PlatformDisplayID displayID)
</span><span class="cx"> {
</span><del>- RefPtr<RemoteLayerTreeDisplayRefreshMonitor> monitor = RemoteLayerTreeDisplayRefreshMonitor::create(displayID, *this);
- m_displayRefreshMonitors.add(monitor.get());
- return monitor.release();
</del><ins>+ auto monitor = RemoteLayerTreeDisplayRefreshMonitor::create(displayID, *this);
+ m_displayRefreshMonitors.add(monitor.ptr());
+ return WTFMove(monitor);
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> void RemoteLayerTreeDrawingArea::willDestroyDisplayRefreshMonitor(DisplayRefreshMonitor* monitor)
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Tools/ChangeLog        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -1,3 +1,27 @@
</span><ins>+2016-06-20 Keith Rollin <krollin@apple.com>
+
+ Remove RefPtr::release() and change calls sites to use WTFMove()
+ https://bugs.webkit.org/show_bug.cgi?id=158369
+
+ Reviewed by Chris Dumez.
+
+ RefPtr::release() releases its managed pointer awkwardly. It's more
+ direct and clearer to use WTFMove to transfer ownership of the managed
+ pointer.
+
+ As part of this cleanup, also change a lot of explicit data types to
+ 'auto'.
+
+ * DumpRenderTree/mac/PixelDumpSupportMac.mm:
+ (createBitmapContextFromWebView):
+ (createPagedBitmapContext):
+ * DumpRenderTree/mac/TestRunnerMac.mm:
+ (TestRunner::setMockGeolocationPosition):
+ * TestWebKitAPI/Tests/WTF/HashCountedSet.cpp:
+ (TestWebKitAPI::TEST):
+ * TestWebKitAPI/Tests/WTF/HashMap.cpp:
+ (TestWebKitAPI::TEST):
+
</ins><span class="cx"> 2016-06-20 Tim Horton <timothy_horton@apple.com>
</span><span class="cx">
</span><span class="cx"> Add a API test for *DeferringViewInWindowChanges as fixed in r202230
</span></span></pre></div>
<a id="trunkToolsDumpRenderTreemacPixelDumpSupportMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/DumpRenderTree/mac/PixelDumpSupportMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/DumpRenderTree/mac/PixelDumpSupportMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Tools/DumpRenderTree/mac/PixelDumpSupportMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -120,7 +120,7 @@
</span><span class="cx"> size_t pixelsHigh = static_cast<size_t>(webViewSize.height * deviceScaleFactor);
</span><span class="cx"> size_t rowBytes = 0;
</span><span class="cx"> void* buffer = nullptr;
</span><del>- RefPtr<BitmapContext> bitmapContext = createBitmapContext(pixelsWide, pixelsHigh, rowBytes, buffer);
</del><ins>+ auto bitmapContext = createBitmapContext(pixelsWide, pixelsHigh, rowBytes, buffer);
</ins><span class="cx"> if (!bitmapContext)
</span><span class="cx"> return nullptr;
</span><span class="cx"> CGContextRef context = bitmapContext->cgContext();
</span><span class="lines">@@ -194,7 +194,7 @@
</span><span class="cx"> CGContextRestoreGState(context);
</span><span class="cx"> }
</span><span class="cx">
</span><del>- return bitmapContext.release();
</del><ins>+ return bitmapContext;
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> PassRefPtr<BitmapContext> createPagedBitmapContext()
</span><span class="lines">@@ -207,10 +207,10 @@
</span><span class="cx">
</span><span class="cx"> int totalHeight = numberOfPages * (pageHeightInPixels + 1) - 1;
</span><span class="cx">
</span><del>- RefPtr<BitmapContext> bitmapContext = createBitmapContext(pageWidthInPixels, totalHeight, rowBytes, buffer);
</del><ins>+ auto bitmapContext = createBitmapContext(pageWidthInPixels, totalHeight, rowBytes, buffer);
</ins><span class="cx"> CGContextRef context = bitmapContext->cgContext();
</span><span class="cx"> CGContextTranslateCTM(context, 0, totalHeight);
</span><span class="cx"> CGContextScaleCTM(context, 1, -1);
</span><span class="cx"> [mainFrame printToCGContext:context pageWidth:pageWidthInPixels pageHeight:pageHeightInPixels];
</span><del>- return bitmapContext.release();
</del><ins>+ return bitmapContext;
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkToolsDumpRenderTreemacTestRunnerMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/DumpRenderTree/mac/TestRunnerMac.mm (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/DumpRenderTree/mac/TestRunnerMac.mm        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Tools/DumpRenderTree/mac/TestRunnerMac.mm        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -427,8 +427,8 @@
</span><span class="cx"> // Test the exposed API.
</span><span class="cx"> position = [[WebGeolocationPosition alloc] initWithTimestamp:currentTime() latitude:latitude longitude:longitude accuracy:accuracy];
</span><span class="cx"> } else {
</span><del>- RefPtr<WebCore::GeolocationPosition> coreGeolocationPosition = WebCore::GeolocationPosition::create(currentTime(), latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed);
- position = [[WebGeolocationPosition alloc] initWithGeolocationPosition:(coreGeolocationPosition.release())];
</del><ins>+ auto coreGeolocationPosition = WebCore::GeolocationPosition::create(currentTime(), latitude, longitude, accuracy, providesAltitude, altitude, providesAltitudeAccuracy, altitudeAccuracy, providesHeading, heading, providesSpeed, speed);
+ position = [[WebGeolocationPosition alloc] initWithGeolocationPosition:(WTFMove(coreGeolocationPosition))];
</ins><span class="cx"> }
</span><span class="cx"> [[MockGeolocationProvider shared] setPosition:position];
</span><span class="cx"> [position release];
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWTFHashCountedSetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/HashCountedSet.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WTF/HashCountedSet.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/HashCountedSet.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -370,7 +370,7 @@
</span><span class="cx">
</span><span class="cx"> DerivedRefLogger a("a");
</span><span class="cx"> RefPtr<RefLogger> ptr(&a);
</span><del>- hashCountedSet.add(ptr.release());
</del><ins>+ hashCountedSet.add(WTFMove(ptr));
</ins><span class="cx">
</span><span class="cx"> EXPECT_STREQ("ref(a) ", takeLogStr().c_str());
</span><span class="cx"> }
</span><span class="lines">@@ -436,7 +436,7 @@
</span><span class="cx">
</span><span class="cx"> {
</span><span class="cx"> RefPtr<RefLogger> ptr2(&a);
</span><del>- auto addResult = hashCountedSet.add(ptr2.release());
</del><ins>+ auto addResult = hashCountedSet.add(WTFMove(ptr2));
</ins><span class="cx"> EXPECT_FALSE(addResult.isNewEntry);
</span><span class="cx"> }
</span><span class="cx">
</span></span></pre></div>
<a id="trunkToolsTestWebKitAPITestsWTFHashMapcpp"></a>
<div class="modfile"><h4>Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp (202241 => 202242)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp        2016-06-20 20:48:10 UTC (rev 202241)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp        2016-06-20 20:52:45 UTC (rev 202242)
</span><span class="lines">@@ -309,7 +309,7 @@
</span><span class="cx">
</span><span class="cx"> DerivedRefLogger a("a");
</span><span class="cx"> RefPtr<RefLogger> ptr(&a);
</span><del>- map.add(ptr.release(), 0);
</del><ins>+ map.add(WTFMove(ptr), 0);
</ins><span class="cx">
</span><span class="cx"> EXPECT_STREQ("ref(a) ", takeLogStr().c_str());
</span><span class="cx"> }
</span><span class="lines">@@ -373,7 +373,7 @@
</span><span class="cx">
</span><span class="cx"> {
</span><span class="cx"> RefPtr<RefLogger> ptr2(&a);
</span><del>- auto addResult = map.add(ptr2.release(), 0);
</del><ins>+ auto addResult = map.add(WTFMove(ptr2), 0);
</ins><span class="cx"> EXPECT_FALSE(addResult.isNewEntry);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -419,7 +419,7 @@
</span><span class="cx">
</span><span class="cx"> DerivedRefLogger a("a");
</span><span class="cx"> RefPtr<RefLogger> ptr(&a);
</span><del>- map.set(ptr.release(), 0);
</del><ins>+ map.set(WTFMove(ptr), 0);
</ins><span class="cx">
</span><span class="cx"> EXPECT_STREQ("ref(a) ", takeLogStr().c_str());
</span><span class="cx"> }
</span><span class="lines">@@ -481,7 +481,7 @@
</span><span class="cx">
</span><span class="cx"> {
</span><span class="cx"> RefPtr<RefLogger> ptr2(&a);
</span><del>- auto addResult = map.set(ptr2.release(), 1);
</del><ins>+ auto addResult = map.set(WTFMove(ptr2), 1);
</ins><span class="cx"> EXPECT_FALSE(addResult.isNewEntry);
</span><span class="cx"> EXPECT_EQ(1, map.get(ptr.get()));
</span><span class="cx"> }
</span></span></pre>
</div>
</div>
</body>
</html>