Long hangs under IOSurfacePool::evict
https://bugs.webkit.org/show_bug.cgi?id=132549
<rdar://problem/16769469>

Reviewed by Simon Fraser.

* platform/graphics/cg/IOSurfacePool.cpp:
(WebCore::IOSurfacePool::willAddSurface):
Run eviction before adding the new surface to m_bytesCached/m_inUseBytesCached.
We use the additionalSize parameter to make space for the new surface.

(WebCore::IOSurfacePool::evict):
If we want to free up the entire pool, we can do so by throwing away everything.
This also avoids an underflow if additionalSize is larger than the maximum pool size.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@168249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reduce calls to CFURLCacheCopySharedURLCache
https://bugs.webkit.org/show_bug.cgi?id=132464
<rdar://problem/16806694>

Address review comments by collapsing multi-line code into a single ASSERT.

* NetworkProcess/mac/NetworkResourceLoaderMac.mm:
(WebKit::NetworkResourceLoader::tryGetShareableHandleFromSharedBuffer):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@168250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Mark compositing/visibility/visibility-image-layers-dynamic.html as failing after r168244.

* TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@168251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use std::unique_ptr in m_taskTimer of Notification class
https://bugs.webkit.org/show_bug.cgi?id=132544

Reviewed by Andreas Kling.

No new tests, no behavior change.

* Modules/notifications/Notification.cpp:
(WebCore::Notification::Notification):
* Modules/notifications/Notification.h: Use std::unique_ptr instead of OwnPtr.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@168252 268f45cc-cd09-0410-ab3c-d52691b4dbfc