<!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>[218615] trunk/Source/WebCore</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/218615">218615</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2017-06-20 16:42:18 -0700 (Tue, 20 Jun 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use WTF::Function instead of std::function in more places in WebCore/
https://bugs.webkit.org/show_bug.cgi?id=173583

Reviewed by Darin Adler.

Use WTF::Function instead of std::function in more places in WebCore/ to
reduce copying.

* page/Page.cpp:
* platform/HysteresisActivity.h:
(WebCore::HysteresisActivity::HysteresisActivity):
* platform/Logging.cpp:
(WebCore::registerNotifyCallback):
* platform/Logging.h:
* platform/MainThreadSharedTimer.cpp:
(WebCore::MainThreadSharedTimer::setFiredFunction):
* platform/MainThreadSharedTimer.h:
* platform/PlatformPasteboard.h:
* platform/ScopeGuard.h:
(WebCore::ScopeGuard::ScopeGuard):
(WebCore::ScopeGuard::enable):
* platform/ScrollAnimationSmooth.cpp:
(WebCore::ScrollAnimationSmooth::ScrollAnimationSmooth):
* platform/ScrollAnimationSmooth.h:
* platform/SharedTimer.h:
* platform/audio/PlatformMediaSessionManager.cpp:
(WebCore::PlatformMediaSessionManager::currentSessionsMatching):
* platform/audio/PlatformMediaSessionManager.h:
* platform/cf/MainThreadSharedTimerCF.cpp:
(WebCore::setupPowerObserver):
* platform/cf/RunLoopObserver.h:
(WebCore::RunLoopObserver::RunLoopObserver):
* platform/graphics/GraphicsContext.h:
* platform/graphics/GraphicsLayer.cpp:
(WebCore::GraphicsLayer::traverse):
* platform/graphics/GraphicsLayer.h:
* platform/graphics/MediaPlayer.cpp:
(WebCore::addMediaEngine):
* platform/graphics/MediaPlayer.h:
* platform/graphics/Path.h:
* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
(WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
(WebCore::MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification):
(WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification):
* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
(WebCore::MediaPlayerPrivateAVFoundation::Notification::Notification):
(WebCore::MediaPlayerPrivateAVFoundation::Notification::function):
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]):
* platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
(WebCore::runWithoutAnimations):
* platform/graphics/cocoa/IOSurface.h:
* platform/graphics/cocoa/IOSurface.mm:
(WebCore::IOSurface::convertToFormat):
* platform/graphics/gstreamer/MainThreadNotifier.h:
* platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h:
(WebCore::MediaPlayerRequestInstallMissingPluginsCallback::create):
(WebCore::MediaPlayerRequestInstallMissingPluginsCallback::MediaPlayerRequestInstallMissingPluginsCallback):
* platform/graphics/win/GraphicsContextDirect2D.cpp:
(WebCore::GraphicsContext::drawWithoutShadow):
(WebCore::GraphicsContext::drawWithShadow):
* platform/gtk/PasteboardHelper.cpp:
(WebCore::ClipboardSetData::ClipboardSetData):
(WebCore::PasteboardHelper::writeClipboardContents):
* platform/gtk/PasteboardHelper.h:
* platform/gtk/PlatformPasteboardGtk.cpp:
(WebCore::PlatformPasteboard::writeToClipboard):
* platform/ios/WebVideoFullscreenInterfaceAVKit.h:
* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
(WebVideoFullscreenInterfaceAVKit::preparedToReturnToInline):
(WebVideoFullscreenInterfaceAVKit::fullscreenMayReturnToInline):
* platform/mac/PowerObserverMac.cpp:
(WebCore::PowerObserver::PowerObserver):
* platform/mac/PowerObserverMac.h:
* platform/mac/WebCoreNSURLExtras.mm:
(WebCore::isSecondLevelDomainNameAllowedByTLDRules):
* platform/mediastream/CaptureDeviceManager.cpp:
(CaptureDeviceManager::addCaptureDeviceChangedObserver):
* platform/mediastream/CaptureDeviceManager.h:
* platform/mediastream/RealtimeMediaSource.cpp:
(WebCore::RealtimeMediaSource::scheduleDeferredTask):
* platform/mediastream/RealtimeMediaSource.h:
* platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:
(-[WebAVAudioSessionAvailableInputsListener initWithCallback:]):
* platform/mediastream/mac/CoreAudioCaptureSource.h:
* platform/mock/ScrollAnimatorMock.cpp:
(WebCore::ScrollAnimatorMock::ScrollAnimatorMock):
* platform/mock/ScrollAnimatorMock.h:
* platform/network/CookieStorage.h:
* platform/network/NetworkStateNotifier.cpp:
(WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
* platform/network/NetworkStateNotifier.h:
* platform/network/NetworkStorageSession.cpp:
(WebCore::NetworkStorageSession::forEach):
* platform/network/NetworkStorageSession.h:
* platform/network/cf/CookieStorageCFNet.cpp:
(WebCore::cookieChangeCallbackMap):
(WebCore::startObservingCookieChanges):
* platform/network/cf/SocketStreamHandleImplCFNet.cpp:
(WebCore::callOnMainThreadAndWait):
* platform/network/mac/CookieStorageMac.mm:
(-[WebCookieStorageObjCAdapter startListeningForCookieChangeNotificationsWithCallback:]):
(WebCore::startObservingCookieChanges):
* platform/network/soup/CookieStorageSoup.cpp:
(WebCore::startObservingCookieChanges):
* platform/network/soup/SoupNetworkSession.cpp:
(WebCore::SoupNetworkSession::checkTLSErrors):
* platform/network/soup/SoupNetworkSession.h:
* platform/sql/SQLiteDatabase.cpp:
(WebCore::destroyCollationFunction):
(WebCore::callCollationFunction):
(WebCore::SQLiteDatabase::setCollationFunction):
* platform/sql/SQLiteDatabase.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::traverseVisibleNonCompositedDescendantLayers):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::paintItem):
* rendering/RenderListBox.h:
* rendering/line/BreakingContext.h:
(WebCore::BreakingContext::InlineIteratorHistory::push):
(WebCore::BreakingContext::InlineIteratorHistory::update):
* workers/Worker.cpp:
(WebCore::Worker::Worker):
* workers/WorkerRunLoop.cpp:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepagePagecpp">trunk/Source/WebCore/page/Page.cpp</a></li>
<li><a href="#trunkSourceWebCorepagemacPageMacmm">trunk/Source/WebCore/page/mac/PageMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformHysteresisActivityh">trunk/Source/WebCore/platform/HysteresisActivity.h</a></li>
<li><a href="#trunkSourceWebCoreplatformLoggingcpp">trunk/Source/WebCore/platform/Logging.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformLoggingh">trunk/Source/WebCore/platform/Logging.h</a></li>
<li><a href="#trunkSourceWebCoreplatformMainThreadSharedTimercpp">trunk/Source/WebCore/platform/MainThreadSharedTimer.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformMainThreadSharedTimerh">trunk/Source/WebCore/platform/MainThreadSharedTimer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformPlatformPasteboardh">trunk/Source/WebCore/platform/PlatformPasteboard.h</a></li>
<li><a href="#trunkSourceWebCoreplatformScopeGuardh">trunk/Source/WebCore/platform/ScopeGuard.h</a></li>
<li><a href="#trunkSourceWebCoreplatformScrollAnimationSmoothcpp">trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformScrollAnimationSmoothh">trunk/Source/WebCore/platform/ScrollAnimationSmooth.h</a></li>
<li><a href="#trunkSourceWebCoreplatformSharedTimerh">trunk/Source/WebCore/platform/SharedTimer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioPlatformMediaSessionManagercpp">trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformaudioPlatformMediaSessionManagerh">trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.h</a></li>
<li><a href="#trunkSourceWebCoreplatformcfMainThreadSharedTimerCFcpp">trunk/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformcfRunLoopObserverh">trunk/Source/WebCore/platform/cf/RunLoopObserver.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsGraphicsContexth">trunk/Source/WebCore/platform/graphics/GraphicsContext.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsGraphicsLayercpp">trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsGraphicsLayerh">trunk/Source/WebCore/platform/graphics/GraphicsLayer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsMediaPlayercpp">trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsMediaPlayerh">trunk/Source/WebCore/platform/graphics/MediaPlayer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsPathh">trunk/Source/WebCore/platform/graphics/Path.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationMediaPlayerPrivateAVFoundationcpp">trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationMediaPlayerPrivateAVFoundationh">trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationobjcMediaPlayerPrivateAVFoundationObjCmm">trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsavfoundationobjcMediaPlayerPrivateMediaStreamAVFObjCmm">trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscocoaIOSurfaceh">trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscocoaIOSurfacemm">trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsgstreamerMainThreadNotifierh">trunk/Source/WebCore/platform/graphics/gstreamer/MainThreadNotifier.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsgstreamerMediaPlayerRequestInstallMissingPluginsCallbackh">trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicswinGraphicsContextDirect2Dcpp">trunk/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgtkPasteboardHelpercpp">trunk/Source/WebCore/platform/gtk/PasteboardHelper.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgtkPasteboardHelperh">trunk/Source/WebCore/platform/gtk/PasteboardHelper.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgtkPlatformPasteboardGtkcpp">trunk/Source/WebCore/platform/gtk/PlatformPasteboardGtk.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKith">trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h</a></li>
<li><a href="#trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKitmm">trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmacPowerObserverMaccpp">trunk/Source/WebCore/platform/mac/PowerObserverMac.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmacPowerObserverMach">trunk/Source/WebCore/platform/mac/PowerObserverMac.h</a></li>
<li><a href="#trunkSourceWebCoreplatformmacWebCoreNSURLExtrasmm">trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamCaptureDeviceManagercpp">trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamCaptureDeviceManagerh">trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.h</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamRealtimeMediaSourcecpp">trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamRealtimeMediaSourceh">trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.h</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreamiosAVAudioSessionCaptureDeviceManagermm">trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformmediastreammacCoreAudioCaptureSourceh">trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h</a></li>
<li><a href="#trunkSourceWebCoreplatformmockScrollAnimatorMockcpp">trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmockScrollAnimatorMockh">trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.h</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkCookieStorageh">trunk/Source/WebCore/platform/network/CookieStorage.h</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkNetworkStateNotifiercpp">trunk/Source/WebCore/platform/network/NetworkStateNotifier.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkNetworkStateNotifierh">trunk/Source/WebCore/platform/network/NetworkStateNotifier.h</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkNetworkStorageSessioncpp">trunk/Source/WebCore/platform/network/NetworkStorageSession.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkNetworkStorageSessionh">trunk/Source/WebCore/platform/network/NetworkStorageSession.h</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkcfCookieStorageCFNetcpp">trunk/Source/WebCore/platform/network/cf/CookieStorageCFNet.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkcfSocketStreamHandleImplCFNetcpp">trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkmacCookieStorageMacmm">trunk/Source/WebCore/platform/network/mac/CookieStorageMac.mm</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworksoupCookieStorageSoupcpp">trunk/Source/WebCore/platform/network/soup/CookieStorageSoup.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworksoupSoupNetworkSessioncpp">trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworksoupSoupNetworkSessionh">trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.h</a></li>
<li><a href="#trunkSourceWebCoreplatformsqlSQLiteDatabasecpp">trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformsqlSQLiteDatabaseh">trunk/Source/WebCore/platform/sql/SQLiteDatabase.h</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderLayerBackingcpp">trunk/Source/WebCore/rendering/RenderLayerBacking.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderListBoxcpp">trunk/Source/WebCore/rendering/RenderListBox.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderListBoxh">trunk/Source/WebCore/rendering/RenderListBox.h</a></li>
<li><a href="#trunkSourceWebCorerenderingSimpleLineLayoutcpp">trunk/Source/WebCore/rendering/SimpleLineLayout.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderinglineBreakingContexth">trunk/Source/WebCore/rendering/line/BreakingContext.h</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkercpp">trunk/Source/WebCore/workers/Worker.cpp</a></li>
<li><a href="#trunkSourceWebCoreworkersWorkerRunLoopcpp">trunk/Source/WebCore/workers/WorkerRunLoop.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/ChangeLog      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -1,3 +1,130 @@
</span><ins>+2017-06-20  Chris Dumez  <cdumez@apple.com>
+
+        Use WTF::Function instead of std::function in more places in WebCore/
+        https://bugs.webkit.org/show_bug.cgi?id=173583
+
+        Reviewed by Darin Adler.
+
+        Use WTF::Function instead of std::function in more places in WebCore/ to
+        reduce copying.
+
+        * page/Page.cpp:
+        * platform/HysteresisActivity.h:
+        (WebCore::HysteresisActivity::HysteresisActivity):
+        * platform/Logging.cpp:
+        (WebCore::registerNotifyCallback):
+        * platform/Logging.h:
+        * platform/MainThreadSharedTimer.cpp:
+        (WebCore::MainThreadSharedTimer::setFiredFunction):
+        * platform/MainThreadSharedTimer.h:
+        * platform/PlatformPasteboard.h:
+        * platform/ScopeGuard.h:
+        (WebCore::ScopeGuard::ScopeGuard):
+        (WebCore::ScopeGuard::enable):
+        * platform/ScrollAnimationSmooth.cpp:
+        (WebCore::ScrollAnimationSmooth::ScrollAnimationSmooth):
+        * platform/ScrollAnimationSmooth.h:
+        * platform/SharedTimer.h:
+        * platform/audio/PlatformMediaSessionManager.cpp:
+        (WebCore::PlatformMediaSessionManager::currentSessionsMatching):
+        * platform/audio/PlatformMediaSessionManager.h:
+        * platform/cf/MainThreadSharedTimerCF.cpp:
+        (WebCore::setupPowerObserver):
+        * platform/cf/RunLoopObserver.h:
+        (WebCore::RunLoopObserver::RunLoopObserver):
+        * platform/graphics/GraphicsContext.h:
+        * platform/graphics/GraphicsLayer.cpp:
+        (WebCore::GraphicsLayer::traverse):
+        * platform/graphics/GraphicsLayer.h:
+        * platform/graphics/MediaPlayer.cpp:
+        (WebCore::addMediaEngine):
+        * platform/graphics/MediaPlayer.h:
+        * platform/graphics/Path.h:
+        * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
+        (WebCore::MediaPlayerPrivateAVFoundation::seekCompleted):
+        (WebCore::MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification):
+        (WebCore::MediaPlayerPrivateAVFoundation::dispatchNotification):
+        * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
+        (WebCore::MediaPlayerPrivateAVFoundation::Notification::Notification):
+        (WebCore::MediaPlayerPrivateAVFoundation::Notification::function):
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        (-[WebCoreAVFMovieObserver observeValueForKeyPath:ofObject:change:context:]):
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm:
+        (WebCore::runWithoutAnimations):
+        * platform/graphics/cocoa/IOSurface.h:
+        * platform/graphics/cocoa/IOSurface.mm:
+        (WebCore::IOSurface::convertToFormat):
+        * platform/graphics/gstreamer/MainThreadNotifier.h:
+        * platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h:
+        (WebCore::MediaPlayerRequestInstallMissingPluginsCallback::create):
+        (WebCore::MediaPlayerRequestInstallMissingPluginsCallback::MediaPlayerRequestInstallMissingPluginsCallback):
+        * platform/graphics/win/GraphicsContextDirect2D.cpp:
+        (WebCore::GraphicsContext::drawWithoutShadow):
+        (WebCore::GraphicsContext::drawWithShadow):
+        * platform/gtk/PasteboardHelper.cpp:
+        (WebCore::ClipboardSetData::ClipboardSetData):
+        (WebCore::PasteboardHelper::writeClipboardContents):
+        * platform/gtk/PasteboardHelper.h:
+        * platform/gtk/PlatformPasteboardGtk.cpp:
+        (WebCore::PlatformPasteboard::writeToClipboard):
+        * platform/ios/WebVideoFullscreenInterfaceAVKit.h:
+        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+        (WebVideoFullscreenInterfaceAVKit::preparedToReturnToInline):
+        (WebVideoFullscreenInterfaceAVKit::fullscreenMayReturnToInline):
+        * platform/mac/PowerObserverMac.cpp:
+        (WebCore::PowerObserver::PowerObserver):
+        * platform/mac/PowerObserverMac.h:
+        * platform/mac/WebCoreNSURLExtras.mm:
+        (WebCore::isSecondLevelDomainNameAllowedByTLDRules):
+        * platform/mediastream/CaptureDeviceManager.cpp:
+        (CaptureDeviceManager::addCaptureDeviceChangedObserver):
+        * platform/mediastream/CaptureDeviceManager.h:
+        * platform/mediastream/RealtimeMediaSource.cpp:
+        (WebCore::RealtimeMediaSource::scheduleDeferredTask):
+        * platform/mediastream/RealtimeMediaSource.h:
+        * platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:
+        (-[WebAVAudioSessionAvailableInputsListener initWithCallback:]):
+        * platform/mediastream/mac/CoreAudioCaptureSource.h:
+        * platform/mock/ScrollAnimatorMock.cpp:
+        (WebCore::ScrollAnimatorMock::ScrollAnimatorMock):
+        * platform/mock/ScrollAnimatorMock.h:
+        * platform/network/CookieStorage.h:
+        * platform/network/NetworkStateNotifier.cpp:
+        (WebCore::NetworkStateNotifier::addNetworkStateChangeListener):
+        * platform/network/NetworkStateNotifier.h:
+        * platform/network/NetworkStorageSession.cpp:
+        (WebCore::NetworkStorageSession::forEach):
+        * platform/network/NetworkStorageSession.h:
+        * platform/network/cf/CookieStorageCFNet.cpp:
+        (WebCore::cookieChangeCallbackMap):
+        (WebCore::startObservingCookieChanges):
+        * platform/network/cf/SocketStreamHandleImplCFNet.cpp:
+        (WebCore::callOnMainThreadAndWait):
+        * platform/network/mac/CookieStorageMac.mm:
+        (-[WebCookieStorageObjCAdapter startListeningForCookieChangeNotificationsWithCallback:]):
+        (WebCore::startObservingCookieChanges):
+        * platform/network/soup/CookieStorageSoup.cpp:
+        (WebCore::startObservingCookieChanges):
+        * platform/network/soup/SoupNetworkSession.cpp:
+        (WebCore::SoupNetworkSession::checkTLSErrors):
+        * platform/network/soup/SoupNetworkSession.h:
+        * platform/sql/SQLiteDatabase.cpp:
+        (WebCore::destroyCollationFunction):
+        (WebCore::callCollationFunction):
+        (WebCore::SQLiteDatabase::setCollationFunction):
+        * platform/sql/SQLiteDatabase.h:
+        * rendering/RenderLayerBacking.cpp:
+        (WebCore::traverseVisibleNonCompositedDescendantLayers):
+        * rendering/RenderListBox.cpp:
+        (WebCore::RenderListBox::paintItem):
+        * rendering/RenderListBox.h:
+        * rendering/line/BreakingContext.h:
+        (WebCore::BreakingContext::InlineIteratorHistory::push):
+        (WebCore::BreakingContext::InlineIteratorHistory::update):
+        * workers/Worker.cpp:
+        (WebCore::Worker::Worker):
+        * workers/WorkerRunLoop.cpp:
+
</ins><span class="cx"> 2017-06-20  Ryan Haddad  <ryanhaddad@apple.com>
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, rolling out r218524.
</span></span></pre></div>
<a id="trunkSourceWebCorepagePagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/Page.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/Page.cpp       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/page/Page.cpp  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -281,7 +281,7 @@
</span><span class="cx">     if (!allPages) {
</span><span class="cx">         allPages = new HashSet<Page*>;
</span><span class="cx">         
</span><del>-        networkStateNotifier().addNetworkStateChangeListener(networkStateChanged);
</del><ins>+        networkStateNotifier().addNetworkStateChangeListener([] (bool isOnLine) { networkStateChanged(isOnLine); });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     ASSERT(!allPages->contains(this));
</span></span></pre></div>
<a id="trunkSourceWebCorepagemacPageMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/mac/PageMac.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/mac/PageMac.mm 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/page/mac/PageMac.mm    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -61,8 +61,8 @@
</span><span class="cx"> #if ENABLE(TREE_DEBUGGING)
</span><span class="cx">     static std::once_flag onceFlag;
</span><span class="cx">     std::call_once(onceFlag, [] {
</span><del>-        registerNotifyCallback("com.apple.WebKit.showRenderTree", printRenderTreeForLiveDocuments);
-        registerNotifyCallback("com.apple.WebKit.showLayerTree", printLayerTreeForLiveDocuments);
</del><ins>+        registerNotifyCallback("com.apple.WebKit.showRenderTree", [] { printRenderTreeForLiveDocuments(); });
+        registerNotifyCallback("com.apple.WebKit.showLayerTree", [] { printLayerTreeForLiveDocuments(); });
</ins><span class="cx">     });
</span><span class="cx"> #endif
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformHysteresisActivityh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/HysteresisActivity.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/HysteresisActivity.h       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/HysteresisActivity.h  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -39,8 +39,8 @@
</span><span class="cx"> 
</span><span class="cx"> class HysteresisActivity {
</span><span class="cx"> public:
</span><del>-    explicit HysteresisActivity(std::function<void(HysteresisState)> callback = [](HysteresisState) { }, double hysteresisSeconds = DefaultHysteresisSeconds)
-        : m_callback(callback)
</del><ins>+    explicit HysteresisActivity(WTF::Function<void(HysteresisState)>&& callback = [](HysteresisState) { }, double hysteresisSeconds = DefaultHysteresisSeconds)
+        : m_callback(WTFMove(callback))
</ins><span class="cx">         , m_hysteresisSeconds(hysteresisSeconds)
</span><span class="cx">         , m_active(false)
</span><span class="cx">         , m_timer(*this, &HysteresisActivity::hysteresisTimerFired)
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">         m_callback(HysteresisState::Stopped);
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    std::function<void(HysteresisState)> m_callback;
</del><ins>+    WTF::Function<void(HysteresisState)> m_callback;
</ins><span class="cx">     double m_hysteresisSeconds; // FIXME: Should use Seconds.
</span><span class="cx">     bool m_active;
</span><span class="cx">     Timer m_timer;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLoggingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/Logging.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/Logging.cpp        2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/Logging.cpp   2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx"> #include <notify.h>
</span><ins>+#include <wtf/BlockPtr.h>
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -79,13 +80,13 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #ifndef NDEBUG
</span><del>-void registerNotifyCallback(const String& notifyID, std::function<void()> callback)
</del><ins>+void registerNotifyCallback(const String& notifyID, WTF::Function<void()>&& callback)
</ins><span class="cx"> {
</span><span class="cx"> #if PLATFORM(COCOA)
</span><span class="cx">     int token;
</span><del>-    notify_register_dispatch(notifyID.utf8().data(), &token, dispatch_get_main_queue(), ^(int) {
</del><ins>+    notify_register_dispatch(notifyID.utf8().data(), &token, dispatch_get_main_queue(), BlockPtr<void (int)>::fromCallable([callback = WTFMove(callback)] (int) {
</ins><span class="cx">         callback();
</span><del>-    });
</del><ins>+    }).get());
</ins><span class="cx"> #else
</span><span class="cx">     UNUSED_PARAM(notifyID);
</span><span class="cx">     UNUSED_PARAM(callback);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLoggingh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/Logging.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/Logging.h  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/Logging.h     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx"> bool isLogChannelEnabled(const String& name);
</span><span class="cx"> WEBCORE_EXPORT void setLogChannelToAccumulate(const String& name);
</span><span class="cx"> #ifndef NDEBUG
</span><del>-void registerNotifyCallback(const String& notifyID, std::function<void()> callback);
</del><ins>+void registerNotifyCallback(const String& notifyID, WTF::Function<void()>&& callback);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> #endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformMainThreadSharedTimercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/MainThreadSharedTimer.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/MainThreadSharedTimer.cpp  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/MainThreadSharedTimer.cpp     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-void MainThreadSharedTimer::setFiredFunction(std::function<void()>&& firedFunction)
</del><ins>+void MainThreadSharedTimer::setFiredFunction(WTF::Function<void()>&& firedFunction)
</ins><span class="cx"> {
</span><span class="cx">     RELEASE_ASSERT(!m_firedFunction || !firedFunction);
</span><span class="cx">     m_firedFunction = WTFMove(firedFunction);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformMainThreadSharedTimerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/MainThreadSharedTimer.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/MainThreadSharedTimer.h    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/MainThreadSharedTimer.h       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> public:
</span><span class="cx">     static MainThreadSharedTimer& singleton();
</span><span class="cx"> 
</span><del>-    void setFiredFunction(std::function<void()>&&) override;
</del><ins>+    void setFiredFunction(WTF::Function<void()>&&) override;
</ins><span class="cx">     void setFireInterval(Seconds) override;
</span><span class="cx">     void stop() override;
</span><span class="cx">     void invalidate() override;
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> private:
</span><span class="cx">     MainThreadSharedTimer();
</span><span class="cx"> 
</span><del>-    std::function<void()> m_firedFunction;
</del><ins>+    WTF::Function<void()> m_firedFunction;
</ins><span class="cx"> #if PLATFORM(GTK) || PLATFORM(WPE)
</span><span class="cx">     RunLoop::Timer<MainThreadSharedTimer> m_timer;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformPlatformPasteboardh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/PlatformPasteboard.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/PlatformPasteboard.h       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/PlatformPasteboard.h  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -26,8 +26,8 @@
</span><span class="cx"> #ifndef PlatformPasteboard_h
</span><span class="cx"> #define PlatformPasteboard_h
</span><span class="cx"> 
</span><del>-#include <functional>
</del><span class="cx"> #include <wtf/Forward.h>
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/RefCounted.h>
</span><span class="cx"> #include <wtf/RetainPtr.h>
</span><span class="cx"> #include <wtf/Vector.h>
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx">     WEBCORE_EXPORT int numberOfFiles();
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(GTK)
</span><del>-    WEBCORE_EXPORT void writeToClipboard(const SelectionData&, std::function<void()>&& primarySelectionCleared);
</del><ins>+    WEBCORE_EXPORT void writeToClipboard(const SelectionData&, WTF::Function<void()>&& primarySelectionCleared);
</ins><span class="cx">     WEBCORE_EXPORT Ref<SelectionData> readFromClipboard();
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScopeGuardh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScopeGuard.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScopeGuard.h       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/ScopeGuard.h  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> #ifndef ScopeGuard_h
</span><span class="cx"> #define ScopeGuard_h
</span><span class="cx"> 
</span><del>-#include <functional>
</del><ins>+#include <wtf/Function.h>
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    ScopeGuard(std::function<void()> function)
</del><ins>+    ScopeGuard(WTF::Function<void()>&& function)
</ins><span class="cx">         : m_function(WTFMove(function))
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="lines">@@ -46,7 +46,7 @@
</span><span class="cx">             m_function();
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    void enable(std::function<void()> function)
</del><ins>+    void enable(WTF::Function<void()>&& function)
</ins><span class="cx">     {
</span><span class="cx">         m_function = WTFMove(function);
</span><span class="cx">     }
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    std::function<void()> m_function { nullptr };
</del><ins>+    WTF::Function<void()> m_function;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScrollAnimationSmoothcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> static const Seconds tickTime = 1_s / frameRate;
</span><span class="cx"> static const Seconds minimumTimerInterval { 1_ms };
</span><span class="cx"> 
</span><del>-ScrollAnimationSmooth::ScrollAnimationSmooth(ScrollableArea& scrollableArea, const FloatPoint& position, std::function<void (FloatPoint&&)>&& notifyPositionChangedFunction)
</del><ins>+ScrollAnimationSmooth::ScrollAnimationSmooth(ScrollableArea& scrollableArea, const FloatPoint& position, WTF::Function<void (FloatPoint&&)>&& notifyPositionChangedFunction)
</ins><span class="cx">     : ScrollAnimation(scrollableArea)
</span><span class="cx">     , m_notifyPositionChangedFunction(WTFMove(notifyPositionChangedFunction))
</span><span class="cx">     , m_horizontalData(position.x(), scrollableArea.visibleWidth())
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformScrollAnimationSmoothh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ScrollAnimationSmooth.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ScrollAnimationSmooth.h    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/ScrollAnimationSmooth.h       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> 
</span><span class="cx"> class ScrollAnimationSmooth final: public ScrollAnimation {
</span><span class="cx"> public:
</span><del>-    ScrollAnimationSmooth(ScrollableArea&, const FloatPoint&, std::function<void (FloatPoint&&)>&& notifyPositionChangedFunction);
</del><ins>+    ScrollAnimationSmooth(ScrollableArea&, const FloatPoint&, WTF::Function<void (FloatPoint&&)>&& notifyPositionChangedFunction);
</ins><span class="cx">     virtual ~ScrollAnimationSmooth();
</span><span class="cx"> 
</span><span class="cx">     enum class Curve {
</span><span class="lines">@@ -97,7 +97,7 @@
</span><span class="cx">     void animationTimerFired();
</span><span class="cx">     bool animationTimerActive() const;
</span><span class="cx"> 
</span><del>-    std::function<void (FloatPoint&&)> m_notifyPositionChangedFunction;
</del><ins>+    WTF::Function<void (FloatPoint&&)> m_notifyPositionChangedFunction;
</ins><span class="cx"> 
</span><span class="cx">     PerAxisData m_horizontalData;
</span><span class="cx">     PerAxisData m_verticalData;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformSharedTimerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/SharedTimer.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/SharedTimer.h      2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/SharedTimer.h 2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -26,8 +26,8 @@
</span><span class="cx"> #ifndef SharedTimer_h
</span><span class="cx"> #define SharedTimer_h
</span><span class="cx"> 
</span><del>-#include <functional>
</del><span class="cx"> #include <wtf/FastMalloc.h>
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Noncopyable.h>
</span><span class="cx"> #include <wtf/Seconds.h>
</span><span class="cx"> 
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> public:
</span><span class="cx">     SharedTimer() = default;
</span><span class="cx">     virtual ~SharedTimer() { }
</span><del>-    virtual void setFiredFunction(std::function<void()>&&) = 0;
</del><ins>+    virtual void setFiredFunction(WTF::Function<void()>&&) = 0;
</ins><span class="cx"> 
</span><span class="cx">     // The fire interval is in seconds relative to the current monotonic clock time.
</span><span class="cx">     virtual void setFireInterval(Seconds) = 0;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioPlatformMediaSessionManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp      2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp 2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -277,7 +277,7 @@
</span><span class="cx">     return m_sessions[0];
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-Vector<PlatformMediaSession*> PlatformMediaSessionManager::currentSessionsMatching(std::function<bool(const PlatformMediaSession &)> filter)
</del><ins>+Vector<PlatformMediaSession*> PlatformMediaSessionManager::currentSessionsMatching(const WTF::Function<bool(const PlatformMediaSession&)>& filter)
</ins><span class="cx"> {
</span><span class="cx">     Vector<PlatformMediaSession*> matchingSessions;
</span><span class="cx">     forEachSession([&] (PlatformMediaSession& session, size_t) {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformaudioPlatformMediaSessionManagerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.h        2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.h   2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -105,7 +105,7 @@
</span><span class="cx">     void setCurrentSession(PlatformMediaSession&);
</span><span class="cx">     PlatformMediaSession* currentSession() const;
</span><span class="cx"> 
</span><del>-    Vector<PlatformMediaSession*> currentSessionsMatching(std::function<bool(const PlatformMediaSession&)>);
</del><ins>+    Vector<PlatformMediaSession*> currentSessionsMatching(const WTF::Function<bool(const PlatformMediaSession&)>&);
</ins><span class="cx"> 
</span><span class="cx">     void sessionIsPlayingToWirelessPlaybackTargetChanged(PlatformMediaSession&);
</span><span class="cx">     void sessionCanProduceAudioChanged(PlatformMediaSession&);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformcfMainThreadSharedTimerCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/cf/MainThreadSharedTimerCF.cpp        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -57,7 +57,7 @@
</span><span class="cx"> #if PLATFORM(MAC)
</span><span class="cx">     static PowerObserver* powerObserver;
</span><span class="cx">     if (!powerObserver)
</span><del>-        powerObserver = std::make_unique<PowerObserver>(restartSharedTimer).release();
</del><ins>+        powerObserver = std::make_unique<PowerObserver>([] { restartSharedTimer(); }).release();
</ins><span class="cx"> #elif PLATFORM(IOS)
</span><span class="cx">     static bool registeredForApplicationNotification = false;
</span><span class="cx">     if (!registeredForApplicationNotification) {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformcfRunLoopObserverh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/cf/RunLoopObserver.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/cf/RunLoopObserver.h       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/cf/RunLoopObserver.h  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> #define RunLoopObserver_h
</span><span class="cx"> 
</span><span class="cx"> #include <CoreFoundation/CoreFoundation.h>
</span><del>-#include <functional>
</del><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Noncopyable.h>
</span><span class="cx"> #include <wtf/RetainPtr.h>
</span><span class="cx"> 
</span><span class="lines">@@ -36,11 +36,11 @@
</span><span class="cx"> class RunLoopObserver {
</span><span class="cx">     WTF_MAKE_NONCOPYABLE(RunLoopObserver); WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> public:
</span><del>-    typedef std::function<void ()> RunLoopObserverCallback;
</del><ins>+    typedef WTF::Function<void ()> RunLoopObserverCallback;
</ins><span class="cx"> 
</span><del>-    RunLoopObserver(CFIndex order, RunLoopObserverCallback callback)
</del><ins>+    RunLoopObserver(CFIndex order, RunLoopObserverCallback&& callback)
</ins><span class="cx">         : m_order(order)
</span><del>-        , m_callback(callback)
</del><ins>+        , m_callback(WTFMove(callback))
</ins><span class="cx">     { }
</span><span class="cx"> 
</span><span class="cx">     WEBCORE_EXPORT ~RunLoopObserver();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsGraphicsContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/GraphicsContext.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/GraphicsContext.h 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/GraphicsContext.h    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -34,6 +34,7 @@
</span><span class="cx"> #include "Image.h"
</span><span class="cx"> #include "ImageOrientation.h"
</span><span class="cx"> #include "Pattern.h"
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Noncopyable.h>
</span><span class="cx"> 
</span><span class="cx"> #if USE(CG)
</span><span class="lines">@@ -599,8 +600,8 @@
</span><span class="cx"> 
</span><span class="cx"> #if USE(DIRECT2D)
</span><span class="cx">     void platformInit(HDC, ID2D1RenderTarget**, RECT, bool hasAlpha = false);
</span><del>-    void drawWithoutShadow(const FloatRect& boundingRect, const std::function<void(ID2D1RenderTarget*)>&);
-    void drawWithShadow(const FloatRect& boundingRect, const std::function<void(ID2D1RenderTarget*)>&);
</del><ins>+    void drawWithoutShadow(const FloatRect& boundingRect, const WTF::Function<void(ID2D1RenderTarget*)>&);
+    void drawWithShadow(const FloatRect& boundingRect, const WTF::Function<void(ID2D1RenderTarget*)>&);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx">     void savePlatformState();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsGraphicsLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayer.cpp    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -672,7 +672,7 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void GraphicsLayer::traverse(GraphicsLayer& layer, std::function<void (GraphicsLayer&)> traversalFunc)
</del><ins>+void GraphicsLayer::traverse(GraphicsLayer& layer, const WTF::Function<void (GraphicsLayer&)>& traversalFunc)
</ins><span class="cx"> {
</span><span class="cx">     traversalFunc(layer);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsGraphicsLayerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/GraphicsLayer.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/GraphicsLayer.h   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/GraphicsLayer.h      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -37,6 +37,7 @@
</span><span class="cx"> #include "PlatformLayer.h"
</span><span class="cx"> #include "TransformOperations.h"
</span><span class="cx"> #include "WindRule.h"
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/TypeCasts.h>
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_COMPOSITING)
</span><span class="lines">@@ -570,7 +571,7 @@
</span><span class="cx">     virtual bool isGraphicsLayerTextureMapper() const { return false; }
</span><span class="cx">     virtual bool isCoordinatedGraphicsLayer() const { return false; }
</span><span class="cx"> 
</span><del>-    static void traverse(GraphicsLayer&, std::function<void (GraphicsLayer&)>);
</del><ins>+    static void traverse(GraphicsLayer&, const WTF::Function<void (GraphicsLayer&)>&);
</ins><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     WEBCORE_EXPORT explicit GraphicsLayer(Type, GraphicsLayerClient&);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsMediaPlayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -188,7 +188,7 @@
</span><span class="cx">     MediaEngineSupportsKeySystem supportsKeySystem;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-static void addMediaEngine(CreateMediaEnginePlayer, MediaEngineSupportedTypes, MediaEngineSupportsType, MediaEngineOriginsInMediaCache, MediaEngineClearMediaCache, MediaEngineClearMediaCacheForOrigins, MediaEngineSupportsKeySystem);
</del><ins>+static void addMediaEngine(CreateMediaEnginePlayer&&, MediaEngineSupportedTypes, MediaEngineSupportsType, MediaEngineOriginsInMediaCache, MediaEngineClearMediaCache, MediaEngineClearMediaCacheForOrigins, MediaEngineSupportsKeySystem);
</ins><span class="cx"> 
</span><span class="cx"> static Lock& mediaEngineVectorLock()
</span><span class="cx"> {
</span><span class="lines">@@ -269,7 +269,7 @@
</span><span class="cx">     return mutableInstalledMediaEnginesVector();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void addMediaEngine(CreateMediaEnginePlayer constructor, MediaEngineSupportedTypes getSupportedTypes, MediaEngineSupportsType supportsType,
</del><ins>+static void addMediaEngine(CreateMediaEnginePlayer&& constructor, MediaEngineSupportedTypes getSupportedTypes, MediaEngineSupportsType supportsType,
</ins><span class="cx">     MediaEngineOriginsInMediaCache originsInMediaCache, MediaEngineClearMediaCache clearMediaCache, MediaEngineClearMediaCacheForOrigins clearMediaCacheForOrigins, MediaEngineSupportsKeySystem supportsKeySystem)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(constructor);
</span><span class="lines">@@ -276,7 +276,7 @@
</span><span class="cx">     ASSERT(getSupportedTypes);
</span><span class="cx">     ASSERT(supportsType);
</span><span class="cx"> 
</span><del>-    mutableInstalledMediaEnginesVector().append(MediaPlayerFactory { constructor, getSupportedTypes, supportsType, originsInMediaCache, clearMediaCache, clearMediaCacheForOrigins, supportsKeySystem });
</del><ins>+    mutableInstalledMediaEnginesVector().append(MediaPlayerFactory { WTFMove(constructor), getSupportedTypes, supportsType, originsInMediaCache, clearMediaCache, clearMediaCacheForOrigins, supportsKeySystem });
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static const AtomicString& applicationOctetStream()
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsMediaPlayerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/MediaPlayer.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/MediaPlayer.h     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/MediaPlayer.h        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -628,7 +628,7 @@
</span><span class="cx"> #endif
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-typedef std::function<std::unique_ptr<MediaPlayerPrivateInterface> (MediaPlayer*)> CreateMediaEnginePlayer;
</del><ins>+using CreateMediaEnginePlayer = WTF::Function<std::unique_ptr<MediaPlayerPrivateInterface> (MediaPlayer*)>;
</ins><span class="cx"> typedef void (*MediaEngineSupportedTypes)(HashSet<String, ASCIICaseInsensitiveHash>& types);
</span><span class="cx"> typedef MediaPlayer::SupportsType (*MediaEngineSupportsType)(const MediaEngineSupportParameters& parameters);
</span><span class="cx"> typedef HashSet<RefPtr<SecurityOrigin>> (*MediaEngineOriginsInMediaCache)(const String& path);
</span><span class="lines">@@ -636,7 +636,7 @@
</span><span class="cx"> typedef void (*MediaEngineClearMediaCacheForOrigins)(const String& path, const HashSet<RefPtr<SecurityOrigin>>&);
</span><span class="cx"> typedef bool (*MediaEngineSupportsKeySystem)(const String& keySystem, const String& mimeType);
</span><span class="cx"> 
</span><del>-typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer, MediaEngineSupportedTypes, MediaEngineSupportsType,
</del><ins>+typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer&&, MediaEngineSupportedTypes, MediaEngineSupportsType,
</ins><span class="cx">     MediaEngineOriginsInMediaCache, MediaEngineClearMediaCache, MediaEngineClearMediaCacheForOrigins, MediaEngineSupportsKeySystem);
</span><span class="cx"> typedef void (*MediaEngineRegister)(MediaEngineRegistrar);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsPathh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/Path.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/Path.h    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/Path.h       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -30,8 +30,8 @@
</span><span class="cx"> 
</span><span class="cx"> #include "FloatRect.h"
</span><span class="cx"> #include "WindRule.h"
</span><del>-#include <functional>
</del><span class="cx"> #include <wtf/FastMalloc.h>
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Forward.h>
</span><span class="cx"> #include <wtf/Vector.h>
</span><span class="cx"> 
</span><span class="lines">@@ -101,7 +101,7 @@
</span><span class="cx">         FloatPoint* points;
</span><span class="cx">     };
</span><span class="cx"> 
</span><del>-    typedef std::function<void (const PathElement&)> PathApplierFunction;
</del><ins>+    using PathApplierFunction = WTF::Function<void (const PathElement&)>;
</ins><span class="cx"> 
</span><span class="cx">     class Path {
</span><span class="cx">         WTF_MAKE_FAST_ALLOCATED;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationMediaPlayerPrivateAVFoundationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -659,7 +659,7 @@
</span><span class="cx"> 
</span><span class="cx">     m_seeking = false;
</span><span class="cx"> 
</span><del>-    std::function<void()> pendingSeek;
</del><ins>+    WTF::Function<void()> pendingSeek;
</ins><span class="cx">     std::swap(pendingSeek, m_pendingSeek);
</span><span class="cx"> 
</span><span class="cx">     if (pendingSeek) {
</span><span class="lines">@@ -790,9 +790,10 @@
</span><span class="cx"> #endif // !LOG_DISABLED
</span><span class="cx">     
</span><span class="cx"> 
</span><del>-void MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification(Notification notification)
</del><ins>+void MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification(Notification&& notification)
</ins><span class="cx"> {
</span><del>-    if (notification.type() != Notification::FunctionType)
</del><ins>+    auto notificationType = notification.type();
+    if (notificationType != Notification::FunctionType)
</ins><span class="cx">         LOG(Media, "MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification(%p) - notification %s", this, notificationName(notification));
</span><span class="cx"> 
</span><span class="cx">     m_queueMutex.lock();
</span><span class="lines">@@ -799,7 +800,7 @@
</span><span class="cx"> 
</span><span class="cx">     // It is important to always process the properties in the order that we are notified,
</span><span class="cx">     // so always go through the queue because notifications happen on different threads.
</span><del>-    m_queuedNotifications.append(notification);
</del><ins>+    m_queuedNotifications.append(WTFMove(notification));
</ins><span class="cx"> 
</span><span class="cx"> #if OS(WINDOWS)
</span><span class="cx">     bool delayDispatch = true;
</span><span class="lines">@@ -820,7 +821,7 @@
</span><span class="cx">     m_queueMutex.unlock();
</span><span class="cx"> 
</span><span class="cx">     if (delayDispatch) {
</span><del>-        if (notification.type() != Notification::FunctionType)
</del><ins>+        if (notificationType != Notification::FunctionType)
</ins><span class="cx">             LOG(Media, "MediaPlayerPrivateAVFoundation::scheduleMainThreadNotification(%p) - early return", this);
</span><span class="cx">         return;
</span><span class="cx">     }
</span><span class="lines">@@ -832,7 +833,7 @@
</span><span class="cx"> {
</span><span class="cx">     ASSERT(isMainThread());
</span><span class="cx"> 
</span><del>-    Notification notification = Notification();
</del><ins>+    Notification notification;
</ins><span class="cx">     {
</span><span class="cx">         LockHolder lock(m_queueMutex);
</span><span class="cx">         
</span><span class="lines">@@ -841,8 +842,7 @@
</span><span class="cx">         
</span><span class="cx">         if (!m_delayCallbacks) {
</span><span class="cx">             // Only dispatch one notification callback per invocation because they can cause recursion.
</span><del>-            notification = m_queuedNotifications.first();
-            m_queuedNotifications.remove(0);
</del><ins>+            notification = m_queuedNotifications.takeFirst();
</ins><span class="cx">         }
</span><span class="cx">         
</span><span class="cx">         if (!m_queuedNotifications.isEmpty() && !m_mainThreadCallPending) {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationMediaPlayerPrivateAVFoundationh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -32,7 +32,8 @@
</span><span class="cx"> #include "InbandTextTrackPrivateAVF.h"
</span><span class="cx"> #include "MediaPlayerPrivate.h"
</span><span class="cx"> #include "Timer.h"
</span><del>-#include <functional>
</del><ins>+#include <wtf/Deque.h>
+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/HashSet.h>
</span><span class="cx"> #include <wtf/Lock.h>
</span><span class="cx"> #include <wtf/RetainPtr.h>
</span><span class="lines">@@ -113,10 +114,10 @@
</span><span class="cx">         {
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        Notification(std::function<void ()> function)
</del><ins>+        Notification(WTF::Function<void ()>&& function)
</ins><span class="cx">             : m_type(FunctionType)
</span><span class="cx">             , m_finished(false)
</span><del>-            , m_function(function)
</del><ins>+            , m_function(WTFMove(function))
</ins><span class="cx">         {
</span><span class="cx">         }
</span><span class="cx">         
</span><span class="lines">@@ -124,16 +125,16 @@
</span><span class="cx">         bool isValid() { return m_type != None; }
</span><span class="cx">         MediaTime time() { return m_time; }
</span><span class="cx">         bool finished() { return m_finished; }
</span><del>-        std::function<void ()>& function() { return m_function; }
</del><ins>+        WTF::Function<void ()>& function() { return m_function; }
</ins><span class="cx">         
</span><span class="cx">     private:
</span><span class="cx">         Type m_type;
</span><span class="cx">         MediaTime m_time;
</span><span class="cx">         bool m_finished;
</span><del>-        std::function<void ()> m_function;
</del><ins>+        WTF::Function<void ()> m_function;
</ins><span class="cx">     };
</span><span class="cx"> 
</span><del>-    void scheduleMainThreadNotification(Notification);
</del><ins>+    void scheduleMainThreadNotification(Notification&&);
</ins><span class="cx">     void scheduleMainThreadNotification(Notification::Type, const MediaTime& = MediaTime::zeroTime());
</span><span class="cx">     void scheduleMainThreadNotification(Notification::Type, bool completed);
</span><span class="cx">     void dispatchNotification();
</span><span class="lines">@@ -317,9 +318,9 @@
</span><span class="cx"> 
</span><span class="cx">     WeakPtrFactory<MediaPlayerPrivateAVFoundation> m_weakPtrFactory;
</span><span class="cx"> 
</span><del>-    std::function<void()> m_pendingSeek;
</del><ins>+    WTF::Function<void()> m_pendingSeek;
</ins><span class="cx"> 
</span><del>-    Vector<Notification> m_queuedNotifications;
</del><ins>+    Deque<Notification> m_queuedNotifications;
</ins><span class="cx">     mutable Lock m_queueMutex;
</span><span class="cx"> 
</span><span class="cx">     mutable std::unique_ptr<PlatformTimeRanges> m_cachedLoadedTimeRanges;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationobjcMediaPlayerPrivateAVFoundationObjCmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -3375,7 +3375,7 @@
</span><span class="cx">     }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    std::function<void ()> function;
</del><ins>+    WTF::Function<void ()> function;
</ins><span class="cx"> 
</span><span class="cx">     if (context == MediaPlayerAVFoundationObservationContextAVPlayerLayer) {
</span><span class="cx">         if ([keyPath isEqualToString:@"readyForDisplay"])
</span><span class="lines">@@ -3450,7 +3450,7 @@
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="cx">     auto weakThis = m_callback->createWeakPtr();
</span><del>-    m_callback->scheduleMainThreadNotification(MediaPlayerPrivateAVFoundation::Notification([weakThis, function]{
</del><ins>+    m_callback->scheduleMainThreadNotification(MediaPlayerPrivateAVFoundation::Notification([weakThis, function = WTFMove(function)]{
</ins><span class="cx">         // weakThis and function both refer to the same MediaPlayerPrivateAVFoundationObjC instance. If the WeakPtr has
</span><span class="cx">         // been cleared, the underlying object has been destroyed, and it is unsafe to call function().
</span><span class="cx">         if (!weakThis)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsavfoundationobjcMediaPlayerPrivateMediaStreamAVFObjCmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -41,6 +41,7 @@
</span><span class="cx"> #import <QuartzCore/CALayer.h>
</span><span class="cx"> #import <QuartzCore/CATransaction.h>
</span><span class="cx"> #import <objc_runtime.h>
</span><ins>+#import <wtf/Function.h>
</ins><span class="cx"> #import <wtf/MainThread.h>
</span><span class="cx"> #import <wtf/NeverDestroyed.h>
</span><span class="cx"> 
</span><span class="lines">@@ -325,7 +326,7 @@
</span><span class="cx">     return m_videoTransform;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void runWithoutAnimations(std::function<void()> function)
</del><ins>+static void runWithoutAnimations(const WTF::Function<void()>& function)
</ins><span class="cx"> {
</span><span class="cx">     [CATransaction begin];
</span><span class="cx">     [CATransaction setAnimationDuration:0];
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscocoaIOSurfaceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.h 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.h    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -96,7 +96,7 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     WEBCORE_EXPORT static bool allowConversionFromFormatToFormat(Format, Format);
</span><del>-    WEBCORE_EXPORT static void convertToFormat(std::unique_ptr<WebCore::IOSurface>&& inSurface, Format, std::function<void(std::unique_ptr<WebCore::IOSurface>)>);
</del><ins>+    WEBCORE_EXPORT static void convertToFormat(std::unique_ptr<WebCore::IOSurface>&& inSurface, Format, WTF::Function<void(std::unique_ptr<WebCore::IOSurface>)>&&);
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscocoaIOSurfacemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm        2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/cocoa/IOSurface.mm   2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -380,7 +380,7 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebCore::IOSurface::convertToFormat(std::unique_ptr<WebCore::IOSurface>&& inSurface, Format format, std::function<void(std::unique_ptr<WebCore::IOSurface>)> callback)
</del><ins>+void WebCore::IOSurface::convertToFormat(std::unique_ptr<WebCore::IOSurface>&& inSurface, Format format, WTF::Function<void(std::unique_ptr<WebCore::IOSurface>)>&& callback)
</ins><span class="cx"> {
</span><span class="cx">     static IOSurfaceAcceleratorRef accelerator;
</span><span class="cx">     if (!accelerator) {
</span><span class="lines">@@ -403,10 +403,10 @@
</span><span class="cx"> 
</span><span class="cx">     IOSurfaceRef destinationIOSurfaceRef = destinationSurface->surface();
</span><span class="cx">     IOSurfaceAcceleratorCompletion completion;
</span><del>-    completion.completionRefCon = new std::function<void(std::unique_ptr<WebCore::IOSurface>)> (WTFMove(callback));
</del><ins>+    completion.completionRefCon = new WTF::Function<void(std::unique_ptr<WebCore::IOSurface>)> (WTFMove(callback));
</ins><span class="cx">     completion.completionRefCon2 = destinationSurface.release();
</span><span class="cx">     completion.completionCallback = [](void *completionRefCon, IOReturn, void * completionRefCon2) {
</span><del>-        auto* callback = static_cast<std::function<void(std::unique_ptr<WebCore::IOSurface>)>*>(completionRefCon);
</del><ins>+        auto* callback = static_cast<WTF::Function<void(std::unique_ptr<WebCore::IOSurface>)>*>(completionRefCon);
</ins><span class="cx">         auto destinationSurface = std::unique_ptr<WebCore::IOSurface>(static_cast<WebCore::IOSurface*>(completionRefCon2));
</span><span class="cx">         
</span><span class="cx">         (*callback)(WTFMove(destinationSurface));
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsgstreamerMainThreadNotifierh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MainThreadNotifier.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/gstreamer/MainThreadNotifier.h    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MainThreadNotifier.h       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     template<typename F>
</span><del>-    void notify(T notificationType, const F& callbackFunctor)
</del><ins>+    void notify(T notificationType, F&& callbackFunctor)
</ins><span class="cx">     {
</span><span class="cx">         ASSERT(m_isValid.load());
</span><span class="cx">         if (isMainThread()) {
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx">         if (!addPendingNotification(notificationType))
</span><span class="cx">             return;
</span><span class="cx"> 
</span><del>-        RunLoop::main().dispatch([this, protectedThis = makeRef(*this), notificationType, callback = std::function<void()>(callbackFunctor)] {
</del><ins>+        RunLoop::main().dispatch([this, protectedThis = makeRef(*this), notificationType, callback = WTF::Function<void()>(WTFMove(callbackFunctor))] {
</ins><span class="cx">             if (!m_isValid.load())
</span><span class="cx">                 return;
</span><span class="cx">             if (removePendingNotification(notificationType))
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsgstreamerMediaPlayerRequestInstallMissingPluginsCallbackh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -21,6 +21,7 @@
</span><span class="cx"> #define MediaPlayerRequestInstallMissingPluginsCallback_h
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(VIDEO) && USE(GSTREAMER)
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/RefCounted.h>
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -28,7 +29,7 @@
</span><span class="cx"> class MediaPlayerRequestInstallMissingPluginsCallback : public RefCounted<MediaPlayerRequestInstallMissingPluginsCallback> {
</span><span class="cx">     WTF_MAKE_FAST_ALLOCATED();
</span><span class="cx"> public:
</span><del>-    static Ref<MediaPlayerRequestInstallMissingPluginsCallback> create(std::function<void (uint32_t)>&& function)
</del><ins>+    static Ref<MediaPlayerRequestInstallMissingPluginsCallback> create(WTF::Function<void (uint32_t)>&& function)
</ins><span class="cx">     {
</span><span class="cx">         return adoptRef(*new MediaPlayerRequestInstallMissingPluginsCallback(WTFMove(function)));
</span><span class="cx">     }
</span><span class="lines">@@ -47,12 +48,12 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    MediaPlayerRequestInstallMissingPluginsCallback(std::function<void (uint32_t)>&& function)
</del><ins>+    MediaPlayerRequestInstallMissingPluginsCallback(WTF::Function<void (uint32_t)>&& function)
</ins><span class="cx">         : m_function(WTFMove(function))
</span><span class="cx">     {
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    std::function<void (uint32_t)> m_function;
</del><ins>+    WTF::Function<void (uint32_t)> m_function;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicswinGraphicsContextDirect2Dcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -935,7 +935,7 @@
</span><span class="cx">     flush();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void GraphicsContext::drawWithoutShadow(const FloatRect& /*boundingRect*/, const std::function<void(ID2D1RenderTarget*)>& drawCommands)
</del><ins>+void GraphicsContext::drawWithoutShadow(const FloatRect& /*boundingRect*/, const WTF::Function<void(ID2D1RenderTarget*)>& drawCommands)
</ins><span class="cx"> {
</span><span class="cx">     drawCommands(platformContext());
</span><span class="cx"> }
</span><span class="lines">@@ -981,7 +981,7 @@
</span><span class="cx">     deviceContext->DrawImage(compositor.get(), D2D1_INTERPOLATION_MODE_LINEAR);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void GraphicsContext::drawWithShadow(const FloatRect& boundingRect, const std::function<void(ID2D1RenderTarget*)>& drawCommands)
</del><ins>+void GraphicsContext::drawWithShadow(const FloatRect& boundingRect, const WTF::Function<void(ID2D1RenderTarget*)>& drawCommands)
</ins><span class="cx"> {
</span><span class="cx">     auto context = platformContext();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgtkPasteboardHelpercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/gtk/PasteboardHelper.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/gtk/PasteboardHelper.cpp   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/gtk/PasteboardHelper.cpp      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -265,7 +265,7 @@
</span><span class="cx"> static SelectionData* settingClipboardSelection;
</span><span class="cx"> 
</span><span class="cx"> struct ClipboardSetData {
</span><del>-    ClipboardSetData(SelectionData& selection, std::function<void()>&& selectionClearedCallback)
</del><ins>+    ClipboardSetData(SelectionData& selection, WTF::Function<void()>&& selectionClearedCallback)
</ins><span class="cx">         : selectionData(selection)
</span><span class="cx">         , selectionClearedCallback(WTFMove(selectionClearedCallback))
</span><span class="cx">     {
</span><span class="lines">@@ -276,7 +276,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     Ref<SelectionData> selectionData;
</span><del>-    std::function<void()> selectionClearedCallback;
</del><ins>+    WTF::Function<void()> selectionClearedCallback;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> static void getClipboardContentsCallback(GtkClipboard*, GtkSelectionData *selectionData, guint info, gpointer userData)
</span><span class="lines">@@ -292,7 +292,7 @@
</span><span class="cx">         data->selectionClearedCallback();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void PasteboardHelper::writeClipboardContents(GtkClipboard* clipboard, const SelectionData& selection, std::function<void()>&& primarySelectionCleared)
</del><ins>+void PasteboardHelper::writeClipboardContents(GtkClipboard* clipboard, const SelectionData& selection, WTF::Function<void()>&& primarySelectionCleared)
</ins><span class="cx"> {
</span><span class="cx">     GRefPtr<GtkTargetList> list = targetListForSelectionData(selection);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgtkPasteboardHelperh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/gtk/PasteboardHelper.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/gtk/PasteboardHelper.h     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/gtk/PasteboardHelper.h        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx"> #define PasteboardHelper_h
</span><span class="cx"> 
</span><span class="cx"> #include "GRefPtrGtk.h"
</span><del>-#include <functional>
</del><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Noncopyable.h>
</span><span class="cx"> #include <wtf/Vector.h>
</span><span class="cx"> #include <wtf/glib/GRefPtr.h>
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx">     void fillSelectionData(const SelectionData&, unsigned, GtkSelectionData*);
</span><span class="cx">     void fillSelectionData(GtkSelectionData*, unsigned, SelectionData&);
</span><span class="cx">     Vector<GdkAtom> dropAtomsForContext(GtkWidget*, GdkDragContext*);
</span><del>-    void writeClipboardContents(GtkClipboard*, const SelectionData&, std::function<void()>&& primarySelectionCleared = nullptr);
</del><ins>+    void writeClipboardContents(GtkClipboard*, const SelectionData&, WTF::Function<void()>&& primarySelectionCleared = nullptr);
</ins><span class="cx">     void getClipboardContents(GtkClipboard*, SelectionData&);
</span><span class="cx"> 
</span><span class="cx">     enum PasteboardTargetType { TargetTypeMarkup, TargetTypeText, TargetTypeImage, TargetTypeURIList, TargetTypeNetscapeURL, TargetTypeSmartPaste, TargetTypeUnknown };
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgtkPlatformPasteboardGtkcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/gtk/PlatformPasteboardGtk.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/gtk/PlatformPasteboardGtk.cpp      2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/gtk/PlatformPasteboardGtk.cpp 2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">     ASSERT(m_clipboard);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void PlatformPasteboard::writeToClipboard(const SelectionData& selection, std::function<void()>&& primarySelectionCleared)
</del><ins>+void PlatformPasteboard::writeToClipboard(const SelectionData& selection, WTF::Function<void()>&& primarySelectionCleared)
</ins><span class="cx"> {
</span><span class="cx">     PasteboardHelper::singleton().writeClipboardContents(m_clipboard, selection, gtk_clipboard_get(GDK_SELECTION_PRIMARY) == m_clipboard ? WTFMove(primarySelectionCleared) : nullptr);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKith"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -34,8 +34,8 @@
</span><span class="cx"> #include "PlatformLayer.h"
</span><span class="cx"> #include "WebPlaybackSessionInterfaceAVKit.h"
</span><span class="cx"> #include "WebVideoFullscreenModel.h"
</span><del>-#include <functional>
</del><span class="cx"> #include <objc/objc.h>
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/RefCounted.h>
</span><span class="cx"> #include <wtf/RefPtr.h>
</span><span class="cx"> #include <wtf/RetainPtr.h>
</span><span class="lines">@@ -101,7 +101,7 @@
</span><span class="cx">     HTMLMediaElementEnums::VideoFullscreenMode mode() const { return m_mode; }
</span><span class="cx">     bool allowsPictureInPicturePlayback() const { return m_allowsPictureInPicturePlayback; }
</span><span class="cx">     WEBCORE_EXPORT bool mayAutomaticallyShowVideoPictureInPicture() const;
</span><del>-    void fullscreenMayReturnToInline(std::function<void(bool)> callback);
</del><ins>+    void fullscreenMayReturnToInline(WTF::Function<void(bool)>&& callback);
</ins><span class="cx">     bool wirelessVideoPlaybackDisabled() const;
</span><span class="cx">     void applicationDidBecomeActive();
</span><span class="cx"> 
</span><span class="lines">@@ -138,7 +138,7 @@
</span><span class="cx">     RetainPtr<UIWindow> m_parentWindow;
</span><span class="cx">     RetainPtr<WebAVPlayerLayerView> m_playerLayerView;
</span><span class="cx">     HTMLMediaElementEnums::VideoFullscreenMode m_mode { HTMLMediaElementEnums::VideoFullscreenModeNone };
</span><del>-    std::function<void(bool)> m_prepareToInlineCallback;
</del><ins>+    WTF::Function<void(bool)> m_prepareToInlineCallback;
</ins><span class="cx">     RunLoop::Timer<WebVideoFullscreenInterfaceAVKit> m_watchdogTimer;
</span><span class="cx">     bool m_allowsPictureInPicturePlayback { false };
</span><span class="cx">     bool m_exitRequested { false };
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformiosWebVideoFullscreenInterfaceAVKitmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -844,7 +844,7 @@
</span><span class="cx">         
</span><span class="cx">         [m_playerViewController view].frame = [m_parentView convertRect:inlineRect toView:[m_playerViewController view].superview];
</span><span class="cx"> 
</span><del>-        std::function<void(bool)> callback = WTFMove(m_prepareToInlineCallback);
</del><ins>+        WTF::Function<void(bool)> callback = WTFMove(m_prepareToInlineCallback);
</ins><span class="cx">         callback(visible);
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="lines">@@ -854,9 +854,9 @@
</span><span class="cx">     return [playerController() isPlaying] && m_mode == HTMLMediaElementEnums::VideoFullscreenModeStandard && supportsPictureInPicture();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void WebVideoFullscreenInterfaceAVKit::fullscreenMayReturnToInline(std::function<void(bool)> callback)
</del><ins>+void WebVideoFullscreenInterfaceAVKit::fullscreenMayReturnToInline(WTF::Function<void(bool)>&& callback)
</ins><span class="cx"> {
</span><del>-    m_prepareToInlineCallback = callback;
</del><ins>+    m_prepareToInlineCallback = WTFMove(callback);
</ins><span class="cx">     if (m_fullscreenChangeObserver)
</span><span class="cx">         m_fullscreenChangeObserver->fullscreenMayReturnToInline();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacPowerObserverMaccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/PowerObserverMac.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/PowerObserverMac.cpp   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mac/PowerObserverMac.cpp      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -30,8 +30,8 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-PowerObserver::PowerObserver(const std::function<void()>& powerOnHander)
-    : m_powerOnHander(powerOnHander)
</del><ins>+PowerObserver::PowerObserver(WTF::Function<void()>&& powerOnHander)
+    : m_powerOnHander(WTFMove(powerOnHander))
</ins><span class="cx">     , m_powerConnection(0)
</span><span class="cx">     , m_notificationPort(nullptr)
</span><span class="cx">     , m_notifierReference(0)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacPowerObserverMach"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/PowerObserverMac.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/PowerObserverMac.h     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mac/PowerObserverMac.h        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -28,7 +28,7 @@
</span><span class="cx"> 
</span><span class="cx"> #import <IOKit/IOMessage.h>
</span><span class="cx"> #import <IOKit/pwr_mgt/IOPMLib.h>
</span><del>-#import <functional>
</del><ins>+#import <wtf/Function.h>
</ins><span class="cx"> #import <wtf/Noncopyable.h>
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -37,13 +37,13 @@
</span><span class="cx">     WTF_MAKE_NONCOPYABLE(PowerObserver); WTF_MAKE_FAST_ALLOCATED;
</span><span class="cx"> 
</span><span class="cx"> public:
</span><del>-    PowerObserver(const std::function<void()>& powerOnHander);
</del><ins>+    PowerObserver(WTF::Function<void()>&& powerOnHander);
</ins><span class="cx">     ~PowerObserver();
</span><span class="cx"> 
</span><span class="cx"> private:
</span><span class="cx">     void didReceiveSystemPowerNotification(io_service_t, uint32_t messageType, void* messageArgument);
</span><span class="cx"> 
</span><del>-    std::function<void()> m_powerOnHander;
</del><ins>+    WTF::Function<void()> m_powerOnHander;
</ins><span class="cx">     io_connect_t m_powerConnection;
</span><span class="cx">     IONotificationPortRef m_notificationPort;
</span><span class="cx">     io_object_t m_notifierReference;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacWebCoreNSURLExtrasmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mac/WebCoreNSURLExtras.mm     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx"> #import "WebCoreNSStringExtras.h"
</span><span class="cx"> #import "WebCoreNSURLExtras.h"
</span><span class="cx"> #import "WebCoreSystemInterface.h"
</span><del>-#import <functional>
</del><ins>+#import <wtf/Function.h>
</ins><span class="cx"> #import <wtf/HexNumber.h>
</span><span class="cx"> #import <wtf/ObjcRuntimeExtras.h>
</span><span class="cx"> #import <wtf/RetainPtr.h>
</span><span class="lines">@@ -271,7 +271,7 @@
</span><span class="cx">     return YES;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static bool isSecondLevelDomainNameAllowedByTLDRules(const UChar* buffer, int32_t length, const std::function<bool(UChar)>& characterIsAllowed)
</del><ins>+static bool isSecondLevelDomainNameAllowedByTLDRules(const UChar* buffer, int32_t length, const WTF::Function<bool(UChar)>& characterIsAllowed)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(length > 0);
</span><span class="cx"> 
</span><span class="lines">@@ -294,7 +294,7 @@
</span><span class="cx">     { \
</span><span class="cx">         static const int32_t suffixLength = sizeof(suffix) / sizeof(suffix[0]); \
</span><span class="cx">         if (length > suffixLength && 0 == memcmp(buffer + length - suffixLength, suffix, sizeof(suffix))) \
</span><del>-            return isSecondLevelDomainNameAllowedByTLDRules(buffer, length - suffixLength, function); \
</del><ins>+            return isSecondLevelDomainNameAllowedByTLDRules(buffer, length - suffixLength, [](UChar c) { return function(c); }); \
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> static bool isRussianDomainNameCharacter(UChar ch)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamCaptureDeviceManagercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.cpp       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.cpp  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">     return ++nextToken;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-CaptureDeviceManager::ObserverToken CaptureDeviceManager::addCaptureDeviceChangedObserver(CaptureDeviceChangedCallback observer)
</del><ins>+CaptureDeviceManager::ObserverToken CaptureDeviceManager::addCaptureDeviceChangedObserver(CaptureDeviceChangedCallback&& observer)
</ins><span class="cx"> {
</span><span class="cx">     auto token = nextObserverToken();
</span><span class="cx">     m_observers.set(token, WTFMove(observer));
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamCaptureDeviceManagerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.h 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mediastream/CaptureDeviceManager.h    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -34,9 +34,9 @@
</span><span class="cx"> 
</span><span class="cx"> class CaptureDeviceManager {
</span><span class="cx"> public:
</span><del>-    using CaptureDeviceChangedCallback = std::function<void()>;
</del><ins>+    using CaptureDeviceChangedCallback = WTF::Function<void()>;
</ins><span class="cx">     using ObserverToken = uint32_t;
</span><del>-    virtual ObserverToken addCaptureDeviceChangedObserver(CaptureDeviceChangedCallback);
</del><ins>+    virtual ObserverToken addCaptureDeviceChangedObserver(CaptureDeviceChangedCallback&&);
</ins><span class="cx">     virtual void removeCaptureDeviceChangedObserver(ObserverToken);
</span><span class="cx"> 
</span><span class="cx">     virtual Vector<CaptureDevice>& captureDevices() = 0;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamRealtimeMediaSourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp        2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp   2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -882,7 +882,7 @@
</span><span class="cx">     settingsDidChange();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void RealtimeMediaSource::scheduleDeferredTask(std::function<void()>&& function)
</del><ins>+void RealtimeMediaSource::scheduleDeferredTask(WTF::Function<void()>&& function)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(function);
</span><span class="cx">     callOnMainThread([weakThis = createWeakPtr(), function = WTFMove(function)] {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamRealtimeMediaSourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.h  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mediastream/RealtimeMediaSource.h     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -190,8 +190,8 @@
</span><span class="cx">     virtual const RealtimeMediaSourceCapabilities& capabilities() const = 0;
</span><span class="cx">     virtual const RealtimeMediaSourceSettings& settings() const = 0;
</span><span class="cx"> 
</span><del>-    using SuccessHandler = std::function<void()>;
-    using FailureHandler = std::function<void(const String& badConstraint, const String& errorString)>;
</del><ins>+    using SuccessHandler = WTF::Function<void()>;
+    using FailureHandler = WTF::Function<void(const String& badConstraint, const String& errorString)>;
</ins><span class="cx">     virtual void applyConstraints(const MediaConstraints&, SuccessHandler&&, FailureHandler&&);
</span><span class="cx">     std::optional<std::pair<String, String>> applyConstraints(const MediaConstraints&);
</span><span class="cx"> 
</span><span class="lines">@@ -212,7 +212,7 @@
</span><span class="cx"> protected:
</span><span class="cx">     RealtimeMediaSource(const String& id, Type, const String& name);
</span><span class="cx"> 
</span><del>-    void scheduleDeferredTask(std::function<void()>&&);
</del><ins>+    void scheduleDeferredTask(WTF::Function<void()>&&);
</ins><span class="cx"> 
</span><span class="cx">     virtual void beginConfiguration() { }
</span><span class="cx">     virtual void commitConfiguration() { }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreamiosAVAudioSessionCaptureDeviceManagermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm      2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm 2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -40,18 +40,18 @@
</span><span class="cx"> void* AvailableInputsContext = &AvailableInputsContext;
</span><span class="cx"> 
</span><span class="cx"> @interface WebAVAudioSessionAvailableInputsListener : NSObject {
</span><del>-    std::function<void()> _callback;
</del><ins>+    WTF::Function<void()> _callback;
</ins><span class="cx"> }
</span><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> @implementation WebAVAudioSessionAvailableInputsListener
</span><del>-- (id)initWithCallback:(std::function<void()>)callback
</del><ins>+- (id)initWithCallback:(WTF::Function<void()>&&)callback
</ins><span class="cx"> {
</span><span class="cx">     self = [super init];
</span><span class="cx">     if (!self)
</span><span class="cx">         return nil;
</span><span class="cx"> 
</span><del>-    _callback = callback;
</del><ins>+    _callback = WTFMove(callback);
</ins><span class="cx">     return self;
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmediastreammacCoreAudioCaptureSourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mediastream/mac/CoreAudioCaptureSource.h      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx">     void addEchoCancellationSource(AudioSampleDataSource&);
</span><span class="cx">     void removeEchoCancellationSource(AudioSampleDataSource&);
</span><span class="cx"> 
</span><del>-    using MicrophoneDataCallback = std::function<void(const MediaTime& sampleTime, const PlatformAudioData& audioData, const AudioStreamDescription& description, size_t sampleCount)>;
</del><ins>+    using MicrophoneDataCallback = WTF::Function<void(const MediaTime& sampleTime, const PlatformAudioData& audioData, const AudioStreamDescription& description, size_t sampleCount)>;
</ins><span class="cx"> 
</span><span class="cx">     uint64_t addMicrophoneDataConsumer(MicrophoneDataCallback&&);
</span><span class="cx">     void removeMicrophoneDataConsumer(uint64_t);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmockScrollAnimatorMockcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.cpp        2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.cpp   2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-ScrollAnimatorMock::ScrollAnimatorMock(ScrollableArea& scrollableArea, std::function<void(const String&)>&& logger)
</del><ins>+ScrollAnimatorMock::ScrollAnimatorMock(ScrollableArea& scrollableArea, WTF::Function<void(const String&)>&& logger)
</ins><span class="cx">     : ScrollAnimator(scrollableArea)
</span><span class="cx">     , m_logger(WTFMove(logger))
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmockScrollAnimatorMockh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.h  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/mock/ScrollAnimatorMock.h     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -40,7 +40,7 @@
</span><span class="cx"> // the internal setting enableMockScrollAnimator.
</span><span class="cx"> class ScrollAnimatorMock final : public ScrollAnimator {
</span><span class="cx"> public:
</span><del>-    ScrollAnimatorMock(ScrollableArea&, std::function<void(const String&)>&&);
</del><ins>+    ScrollAnimatorMock(ScrollableArea&, WTF::Function<void(const String&)>&&);
</ins><span class="cx">     virtual ~ScrollAnimatorMock();
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(RUBBER_BANDING)
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx">     void mouseExitedScrollbar(Scrollbar*) const override;
</span><span class="cx">     void mouseIsDownInScrollbar(Scrollbar*, bool) const override;
</span><span class="cx"> 
</span><del>-    std::function<void(const String&)> m_logger;
</del><ins>+    WTF::Function<void(const String&)> m_logger;
</ins><span class="cx">     Scrollbar* m_verticalScrollbar { nullptr };
</span><span class="cx">     Scrollbar* m_horizontalScrollbar { nullptr };
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkCookieStorageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/CookieStorage.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/CookieStorage.h    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/CookieStorage.h       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -25,13 +25,13 @@
</span><span class="cx"> 
</span><span class="cx"> #pragma once
</span><span class="cx"> 
</span><del>-#include <functional>
</del><ins>+#include <wtf/Function.h>
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class NetworkStorageSession;
</span><span class="cx"> 
</span><del>-WEBCORE_EXPORT void startObservingCookieChanges(const NetworkStorageSession&, std::function<void ()>&&);
</del><ins>+WEBCORE_EXPORT void startObservingCookieChanges(const NetworkStorageSession&, WTF::Function<void ()>&&);
</ins><span class="cx"> WEBCORE_EXPORT void stopObservingCookieChanges(const NetworkStorageSession&);
</span><span class="cx"> 
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkNetworkStateNotifiercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/NetworkStateNotifier.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/NetworkStateNotifier.cpp   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/NetworkStateNotifier.cpp      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx">     return networkStateNotifier;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void NetworkStateNotifier::addNetworkStateChangeListener(std::function<void (bool)> listener)
</del><ins>+void NetworkStateNotifier::addNetworkStateChangeListener(WTF::Function<void (bool)>&& listener)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(listener);
</span><span class="cx"> #if PLATFORM(IOS)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkNetworkStateNotifierh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/NetworkStateNotifier.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/NetworkStateNotifier.h     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/NetworkStateNotifier.h        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -26,8 +26,8 @@
</span><span class="cx"> #ifndef NetworkStateNotifier_h
</span><span class="cx"> #define NetworkStateNotifier_h
</span><span class="cx"> 
</span><del>-#include <functional>
</del><span class="cx"> #include <wtf/FastMalloc.h>
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Noncopyable.h>
</span><span class="cx"> #include <wtf/Vector.h>
</span><span class="cx"> 
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     ~NetworkStateNotifier();
</span><span class="cx"> #endif
</span><del>-    void addNetworkStateChangeListener(std::function<void (bool isOnLine)>);
</del><ins>+    void addNetworkStateChangeListener(WTF::Function<void (bool isOnLine)>&&);
</ins><span class="cx"> 
</span><span class="cx">     bool onLine() const;
</span><span class="cx"> 
</span><span class="lines">@@ -67,7 +67,7 @@
</span><span class="cx"> #if !PLATFORM(IOS)
</span><span class="cx">     bool m_isOnLine;
</span><span class="cx"> #endif
</span><del>-    Vector<std::function<void (bool)>> m_listeners;
</del><ins>+    Vector<WTF::Function<void (bool)>> m_listeners;
</ins><span class="cx"> 
</span><span class="cx">     void notifyNetworkStateChange() const;
</span><span class="cx">     void updateState();
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkNetworkStorageSessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/NetworkStorageSession.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/NetworkStorageSession.cpp  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/NetworkStorageSession.cpp     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx">     globalSessionMap().remove(sessionID);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void NetworkStorageSession::forEach(std::function<void(const WebCore::NetworkStorageSession&)> functor)
</del><ins>+void NetworkStorageSession::forEach(const WTF::Function<void(const WebCore::NetworkStorageSession&)>& functor)
</ins><span class="cx"> {
</span><span class="cx">     functor(defaultStorageSession());
</span><span class="cx">     for (auto& storageSession : globalSessionMap().values())
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkNetworkStorageSessionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/NetworkStorageSession.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/NetworkStorageSession.h    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/NetworkStorageSession.h       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> 
</span><span class="cx"> #include "CredentialStorage.h"
</span><span class="cx"> #include "SessionID.h"
</span><del>-#include <functional>
</del><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/HashSet.h>
</span><span class="cx"> #include <wtf/text/WTFString.h>
</span><span class="cx"> 
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">     WEBCORE_EXPORT static void ensurePrivateBrowsingSession(SessionID, const String& identifierBase = String());
</span><span class="cx">     WEBCORE_EXPORT static void ensureSession(SessionID, const String& identifierBase = String());
</span><span class="cx">     WEBCORE_EXPORT static void destroySession(SessionID);
</span><del>-    WEBCORE_EXPORT static void forEach(std::function<void(const WebCore::NetworkStorageSession&)>);
</del><ins>+    WEBCORE_EXPORT static void forEach(const WTF::Function<void(const WebCore::NetworkStorageSession&)>&);
</ins><span class="cx"> 
</span><span class="cx">     WEBCORE_EXPORT static void switchToNewTestingSession();
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkcfCookieStorageCFNetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/cf/CookieStorageCFNet.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/cf/CookieStorageCFNet.cpp  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/cf/CookieStorageCFNet.cpp     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #include "CookieStorage.h"
</span><span class="cx"> 
</span><span class="cx"> #include "NetworkStorageSession.h"
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/HashMap.h>
</span><span class="cx"> #include <wtf/MainThread.h>
</span><span class="cx"> #include <wtf/NeverDestroyed.h>
</span><span class="lines">@@ -43,9 +44,9 @@
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(WIN)
</span><span class="cx"> 
</span><del>-static HashMap<CFHTTPCookieStorageRef, std::function<void ()>>& cookieChangeCallbackMap()
</del><ins>+static HashMap<CFHTTPCookieStorageRef, WTF::Function<void ()>>& cookieChangeCallbackMap()
</ins><span class="cx"> {
</span><del>-    static NeverDestroyed<HashMap<CFHTTPCookieStorageRef, std::function<void ()>>> map;
</del><ins>+    static NeverDestroyed<HashMap<CFHTTPCookieStorageRef, WTF::Function<void ()>>> map;
</ins><span class="cx">     return map;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -52,8 +53,9 @@
</span><span class="cx"> static void notifyCookiesChanged(CFHTTPCookieStorageRef cookieStorage, void *)
</span><span class="cx"> {
</span><span class="cx">     callOnMainThread([cookieStorage] {
</span><del>-        if (auto callback = cookieChangeCallbackMap().get(cookieStorage))
-            callback();
</del><ins>+        auto it = cookieChangeCallbackMap().find(cookieStorage);
+        if (it != cookieChangeCallbackMap().end())
+            it->value();
</ins><span class="cx">     });
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -68,7 +70,7 @@
</span><span class="cx">     return loaderRunLoop();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void startObservingCookieChanges(const NetworkStorageSession& storageSession, std::function<void ()>&& callback)
</del><ins>+void startObservingCookieChanges(const NetworkStorageSession& storageSession, WTF::Function<void ()>&& callback)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(isMainThread());
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkcfSocketStreamHandleImplCFNetcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/cf/SocketStreamHandleImplCFNet.cpp    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -144,7 +144,7 @@
</span><span class="cx">     return CFSTR("WebSocket proxy PAC file execution");
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static void callOnMainThreadAndWait(std::function<void()> function)
</del><ins>+static void callOnMainThreadAndWait(WTF::Function<void()>&& function)
</ins><span class="cx"> {
</span><span class="cx">     if (isMainThread()) {
</span><span class="cx">         function();
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx"> 
</span><span class="cx">     bool isFinished = false;
</span><span class="cx"> 
</span><del>-    callOnMainThread([&] {
</del><ins>+    callOnMainThread([&, function = WTFMove(function)] {
</ins><span class="cx">         function();
</span><span class="cx"> 
</span><span class="cx">         std::lock_guard<Lock> lock(mutex);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkmacCookieStorageMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/mac/CookieStorageMac.mm (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/mac/CookieStorageMac.mm    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/mac/CookieStorageMac.mm       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -23,19 +23,20 @@
</span><span class="cx">  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
</span><span class="cx">  */
</span><span class="cx"> 
</span><del>-#include "config.h"
-#include "CookieStorage.h"
</del><ins>+#import "config.h"
+#import "CookieStorage.h"
</ins><span class="cx"> 
</span><span class="cx"> #import "WebCoreSystemInterface.h"
</span><ins>+#import <wtf/Function.h>
</ins><span class="cx"> 
</span><span class="cx"> using namespace WebCore;
</span><span class="cx"> 
</span><span class="cx"> @interface WebCookieStorageObjCAdapter : NSObject {
</span><del>-    std::function<void ()> m_cookieChangeCallback;
</del><ins>+    WTF::Function<void ()> m_cookieChangeCallback;
</ins><span class="cx"> }
</span><span class="cx"> -(void)notifyCookiesChangedOnMainThread;
</span><span class="cx"> -(void)cookiesChangedNotificationHandler:(NSNotification *)notification;
</span><del>--(void)startListeningForCookieChangeNotificationsWithCallback:(std::function<void ()>&&)callback;
</del><ins>+-(void)startListeningForCookieChangeNotificationsWithCallback:(WTF::Function<void ()>&&)callback;
</ins><span class="cx"> -(void)stopListeningForCookieChangeNotifications;
</span><span class="cx"> @end
</span><span class="cx"> 
</span><span class="lines">@@ -53,7 +54,7 @@
</span><span class="cx">     [self performSelectorOnMainThread:@selector(notifyCookiesChangedOnMainThread) withObject:nil waitUntilDone:FALSE];
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>--(void)startListeningForCookieChangeNotificationsWithCallback:(std::function<void ()>&&)callback
</del><ins>+-(void)startListeningForCookieChangeNotificationsWithCallback:(WTF::Function<void ()>&&)callback
</ins><span class="cx"> {
</span><span class="cx">     ASSERT(!m_cookieChangeCallback);
</span><span class="cx">     m_cookieChangeCallback = WTFMove(callback);
</span><span class="lines">@@ -72,7 +73,7 @@
</span><span class="cx"> 
</span><span class="cx"> static WebCookieStorageObjCAdapter *cookieStorageAdapter;
</span><span class="cx"> 
</span><del>-void startObservingCookieChanges(const NetworkStorageSession&, std::function<void ()>&& callback)
</del><ins>+void startObservingCookieChanges(const NetworkStorageSession&, WTF::Function<void ()>&& callback)
</ins><span class="cx"> {
</span><span class="cx">     if (!cookieStorageAdapter)
</span><span class="cx">         cookieStorageAdapter = [[WebCookieStorageObjCAdapter alloc] init];
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworksoupCookieStorageSoupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/soup/CookieStorageSoup.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/soup/CookieStorageSoup.cpp 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/soup/CookieStorageSoup.cpp    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -23,7 +23,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><del>-void startObservingCookieChanges(const NetworkStorageSession&, std::function<void ()>&&)
</del><ins>+void startObservingCookieChanges(const NetworkStorageSession&, WTF::Function<void ()>&&)
</ins><span class="cx"> {
</span><span class="cx">     ASSERT_NOT_REACHED();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworksoupSoupNetworkSessioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.cpp        2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.cpp   2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -293,7 +293,7 @@
</span><span class="cx">     gIgnoreTLSErrors = ignoreTLSErrors;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void SoupNetworkSession::checkTLSErrors(SoupRequest* soupRequest, SoupMessage* message, std::function<void (const ResourceError&)>&& completionHandler)
</del><ins>+void SoupNetworkSession::checkTLSErrors(SoupRequest* soupRequest, SoupMessage* message, WTF::Function<void (const ResourceError&)>&& completionHandler)
</ins><span class="cx"> {
</span><span class="cx">     if (gIgnoreTLSErrors) {
</span><span class="cx">         completionHandler({ });
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworksoupSoupNetworkSessionh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.h  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.h     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -26,8 +26,8 @@
</span><span class="cx"> #ifndef SoupNetworkSession_h
</span><span class="cx"> #define SoupNetworkSession_h
</span><span class="cx"> 
</span><del>-#include <functional>
</del><span class="cx"> #include <glib-object.h>
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Noncopyable.h>
</span><span class="cx"> #include <wtf/Vector.h>
</span><span class="cx"> #include <wtf/glib/GRefPtr.h>
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx">     void setAcceptLanguages(const CString&);
</span><span class="cx"> 
</span><span class="cx">     static void setShouldIgnoreTLSErrors(bool);
</span><del>-    static void checkTLSErrors(SoupRequest*, SoupMessage*, std::function<void (const ResourceError&)>&&);
</del><ins>+    static void checkTLSErrors(SoupRequest*, SoupMessage*, WTF::Function<void (const ResourceError&)>&&);
</ins><span class="cx">     static void allowSpecificHTTPSCertificateForHost(const CertificateInfo&, const String& host);
</span><span class="cx"> 
</span><span class="cx">     static void setCustomProtocolRequestType(GType);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformsqlSQLiteDatabasecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp     2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/sql/SQLiteDatabase.cpp        2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -515,19 +515,19 @@
</span><span class="cx"> 
</span><span class="cx"> static void destroyCollationFunction(void* arg)
</span><span class="cx"> {
</span><del>-    auto f = static_cast<std::function<int(int, const void*, int, const void*)>*>(arg);
</del><ins>+    auto f = static_cast<WTF::Function<int(int, const void*, int, const void*)>*>(arg);
</ins><span class="cx">     delete f;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static int callCollationFunction(void* arg, int aLength, const void* a, int bLength, const void* b)
</span><span class="cx"> {
</span><del>-    auto f = static_cast<std::function<int(int, const void*, int, const void*)>*>(arg);
</del><ins>+    auto f = static_cast<WTF::Function<int(int, const void*, int, const void*)>*>(arg);
</ins><span class="cx">     return (*f)(aLength, a, bLength, b);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void SQLiteDatabase::setCollationFunction(const String& collationName, std::function<int(int, const void*, int, const void*)> collationFunction)
</del><ins>+void SQLiteDatabase::setCollationFunction(const String& collationName, WTF::Function<int(int, const void*, int, const void*)>&& collationFunction)
</ins><span class="cx"> {
</span><del>-    auto functionObject = new std::function<int(int, const void*, int, const void*)>(collationFunction);
</del><ins>+    auto functionObject = new WTF::Function<int(int, const void*, int, const void*)>(WTFMove(collationFunction));
</ins><span class="cx">     sqlite3_create_collation_v2(m_db, collationName.utf8().data(), SQLITE_UTF8, functionObject, callCollationFunction, destroyCollationFunction);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformsqlSQLiteDatabaseh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/sql/SQLiteDatabase.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/sql/SQLiteDatabase.h       2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/platform/sql/SQLiteDatabase.h  2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -125,7 +125,7 @@
</span><span class="cx">     enum AutoVacuumPragma { AutoVacuumNone = 0, AutoVacuumFull = 1, AutoVacuumIncremental = 2 };
</span><span class="cx">     bool turnOnIncrementalAutoVacuum();
</span><span class="cx"> 
</span><del>-    WEBCORE_EXPORT void setCollationFunction(const String& collationName, std::function<int(int, const void*, int, const void*)>);
</del><ins>+    WEBCORE_EXPORT void setCollationFunction(const String& collationName, WTF::Function<int(int, const void*, int, const void*)>&&);
</ins><span class="cx">     void removeCollationFunction(const String& collationName);
</span><span class="cx"> 
</span><span class="cx">     // Set this flag to allow access from multiple threads.  Not all multi-threaded accesses are safe!
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderLayerBackingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderLayerBacking.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderLayerBacking.cpp    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/rendering/RenderLayerBacking.cpp       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -2089,7 +2089,7 @@
</span><span class="cx"> // Returning true stops the traversal.
</span><span class="cx"> enum class LayerTraversal { Continue, Stop };
</span><span class="cx"> 
</span><del>-static LayerTraversal traverseVisibleNonCompositedDescendantLayers(RenderLayer& parent, std::function<LayerTraversal (const RenderLayer&)> layerFunc)
</del><ins>+static LayerTraversal traverseVisibleNonCompositedDescendantLayers(RenderLayer& parent, const WTF::Function<LayerTraversal (const RenderLayer&)>& layerFunc)
</ins><span class="cx"> {
</span><span class="cx">     // FIXME: We shouldn't be called with a stale z-order lists. See bug 85512.
</span><span class="cx">     parent.updateLayerListsIfNeeded();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListBoxcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListBox.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListBox.cpp 2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/rendering/RenderListBox.cpp    2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -286,7 +286,7 @@
</span><span class="cx">     return LayoutRect(x, y, contentWidth(), itemHeight());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-void RenderListBox::paintItem(PaintInfo& paintInfo, const LayoutPoint& paintOffset, PaintFunction paintFunction)
</del><ins>+void RenderListBox::paintItem(PaintInfo& paintInfo, const LayoutPoint& paintOffset, const PaintFunction& paintFunction)
</ins><span class="cx"> {
</span><span class="cx">     int listItemsSize = numItems();
</span><span class="cx">     int firstVisibleItem = m_indexOfFirstVisibleItemInsidePaddingTopArea.value_or(m_indexOffset);
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderListBoxh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderListBox.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderListBox.h   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/rendering/RenderListBox.h      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -143,8 +143,8 @@
</span><span class="cx">     // NOTE: This should only be called by the overriden setScrollOffset from ScrollableArea.
</span><span class="cx">     void scrollTo(int newOffset);
</span><span class="cx"> 
</span><del>-    using PaintFunction = std::function<void(PaintInfo&, const LayoutPoint&, int listItemIndex)>;
-    void paintItem(PaintInfo&, const LayoutPoint&, PaintFunction);
</del><ins>+    using PaintFunction = WTF::Function<void(PaintInfo&, const LayoutPoint&, int listItemIndex)>;
+    void paintItem(PaintInfo&, const LayoutPoint&, const PaintFunction&);
</ins><span class="cx"> 
</span><span class="cx">     void setHasVerticalScrollbar(bool hasScrollbar);
</span><span class="cx">     Ref<Scrollbar> createScrollbar();
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingSimpleLineLayoutcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/SimpleLineLayout.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/SimpleLineLayout.cpp      2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/rendering/SimpleLineLayout.cpp 2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -254,9 +254,9 @@
</span><span class="cx"> #ifndef NDEBUG
</span><span class="cx">     static std::once_flag onceFlag;
</span><span class="cx">     std::call_once(onceFlag, [] {
</span><del>-        registerNotifyCallback("com.apple.WebKit.showSimpleLineLayoutCoverage", printSimpleLineLayoutCoverage);
-        registerNotifyCallback("com.apple.WebKit.showSimpleLineLayoutReasons", printSimpleLineLayoutBlockList);
-        registerNotifyCallback("com.apple.WebKit.toggleSimpleLineLayout", toggleSimpleLineLayout);
</del><ins>+        registerNotifyCallback("com.apple.WebKit.showSimpleLineLayoutCoverage", [] { printSimpleLineLayoutCoverage(); });
+        registerNotifyCallback("com.apple.WebKit.showSimpleLineLayoutReasons", [] { printSimpleLineLayoutBlockList(); });
+        registerNotifyCallback("com.apple.WebKit.toggleSimpleLineLayout", [] { toggleSimpleLineLayout(); });
</ins><span class="cx">     });
</span><span class="cx"> #endif
</span><span class="cx">     AvoidanceReasonFlags reasons = { };
</span></span></pre></div>
<a id="trunkSourceWebCorerenderinglineBreakingContexth"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/line/BreakingContext.h (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/line/BreakingContext.h    2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/rendering/line/BreakingContext.h       2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -38,6 +38,7 @@
</span><span class="cx"> #include "RenderRubyRun.h"
</span><span class="cx"> #include "RenderSVGInlineText.h"
</span><span class="cx"> #include "TrailingObjects.h"
</span><ins>+#include <wtf/Function.h>
</ins><span class="cx"> #include <wtf/Optional.h>
</span><span class="cx"> #include <wtf/text/StringView.h>
</span><span class="cx"> #include <wtf/unicode/CharacterNames.h>
</span><span class="lines">@@ -191,7 +192,7 @@
</span><span class="cx">             this->append(initial);
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        void push(std::function<void(InlineIterator& modifyMe)> updater)
</del><ins>+        void push(const WTF::Function<void(InlineIterator& modifyMe)>& updater)
</ins><span class="cx">         {
</span><span class="cx">             ASSERT(!this->isEmpty());
</span><span class="cx">             if (m_capacity != 1)
</span><span class="lines">@@ -201,7 +202,7 @@
</span><span class="cx">                 this->resize(m_capacity);
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        void update(std::function<void(InlineIterator& modifyMe)> updater)
</del><ins>+        void update(const WTF::Function<void(InlineIterator& modifyMe)>& updater)
</ins><span class="cx">         {
</span><span class="cx">             ASSERT(!this->isEmpty());
</span><span class="cx">             updater(this->at(0));
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/Worker.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/Worker.cpp  2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/workers/Worker.cpp     2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (!allWorkers) {
</span><span class="cx">         allWorkers = new HashSet<Worker*>;
</span><del>-        networkStateNotifier().addNetworkStateChangeListener(networkStateChanged);
</del><ins>+        networkStateNotifier().addNetworkStateChangeListener([] (bool isOnLine) { networkStateChanged(isOnLine); });
</ins><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx">     auto addResult = allWorkers->add(this);
</span></span></pre></div>
<a id="trunkSourceWebCoreworkersWorkerRunLoopcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/workers/WorkerRunLoop.cpp (218614 => 218615)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/workers/WorkerRunLoop.cpp   2017-06-20 23:22:16 UTC (rev 218614)
+++ trunk/Source/WebCore/workers/WorkerRunLoop.cpp      2017-06-20 23:42:18 UTC (rev 218615)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> class WorkerSharedTimer final : public SharedTimer {
</span><span class="cx"> public:
</span><span class="cx">     // SharedTimer interface.
</span><del>-    void setFiredFunction(std::function<void()>&& function) override { m_sharedTimerFunction = WTFMove(function); }
</del><ins>+    void setFiredFunction(WTF::Function<void()>&& function) override { m_sharedTimerFunction = WTFMove(function); }
</ins><span class="cx">     void setFireInterval(Seconds interval) override { m_nextFireTime = interval + WallTime::now(); }
</span><span class="cx">     void stop() override { m_nextFireTime = WallTime(); }
</span><span class="cx"> 
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx">     void fire() { m_sharedTimerFunction(); }
</span><span class="cx"> 
</span><span class="cx"> private:
</span><del>-    std::function<void()> m_sharedTimerFunction;
</del><ins>+    WTF::Function<void()> m_sharedTimerFunction;
</ins><span class="cx">     WallTime m_nextFireTime;
</span><span class="cx"> };
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>