<!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>[173265] trunk/Source</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/173265">173265</a></dd>
<dt>Author</dt> <dd>psolanki@apple.com</dd>
<dt>Date</dt> <dd>2014-09-04 10:36:21 -0700 (Thu, 04 Sep 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove iOS specific disk image cache
https://bugs.webkit.org/show_bug.cgi?id=136517

Reviewed by Antti Koivisto.

Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
this now since we don't enable it in WebKit2 on iOS.

Source/WebCore:

* WebCore.exp.in:
* WebCore.xcodeproj/project.pbxproj:
* loader/ResourceBuffer.cpp:
(WebCore::ResourceBuffer::isUsingDiskImageCache): Deleted.
* loader/ResourceBuffer.h:
* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::canUseDiskImageCache): Deleted.
(WebCore::CachedImage::useDiskImageCache): Deleted.
* loader/cache/CachedImage.h:
* loader/cache/CachedResource.cpp:
(WebCore::CachedResource::isUsingDiskImageCache): Deleted.
* loader/cache/CachedResource.h:
(WebCore::CachedResource::canUseDiskImageCache): Deleted.
(WebCore::CachedResource::useDiskImageCache): Deleted.
* loader/cache/MemoryCache.cpp:
(WebCore::MemoryCache::TypeStatistic::addResource):
(WebCore::MemoryCache::dumpStats):
(WebCore::MemoryCache::dumpLRULists):
(WebCore::MemoryCache::flushCachedImagesToDisk): Deleted.
* loader/cache/MemoryCache.h:
(WebCore::MemoryCache::TypeStatistic::TypeStatistic):
* loader/ios/DiskImageCacheClientIOS.h: Removed.
* loader/ios/DiskImageCacheIOS.h: Removed.
* loader/ios/DiskImageCacheIOS.mm: Removed.
* platform/Logging.h:
* platform/SharedBuffer.cpp:
(WebCore::SharedBuffer::SharedBuffer):
(WebCore::SharedBuffer::~SharedBuffer):
(WebCore::SharedBuffer::data):
(WebCore::SharedBuffer::append):
(WebCore::SharedBuffer::buffer):
(WebCore::SharedBuffer::getSomeData):
(WebCore::SharedBuffer::isAllowedToBeMemoryMapped): Deleted.
(WebCore::SharedBuffer::allowToBeMemoryMapped): Deleted.
(WebCore::SharedBuffer::failedMemoryMap): Deleted.
(WebCore::SharedBuffer::markAsMemoryMapped): Deleted.
(WebCore::SharedBuffer::memoryMappedNotificationCallbackData): Deleted.
(WebCore::SharedBuffer::memoryMappedNotificationCallback): Deleted.
(WebCore::SharedBuffer::setMemoryMappedNotificationCallback): Deleted.
* platform/SharedBuffer.h:
(WebCore::SharedBuffer::isMemoryMapped): Deleted.
* platform/cf/SharedBufferCF.cpp:
(WebCore::SharedBuffer::SharedBuffer):
* platform/mac/SharedBufferMac.mm:
(-[WebCoreSharedBufferData length]):
(-[WebCoreSharedBufferData bytes]):
(WebCore::SharedBuffer::createCFData):
(-[WebCoreSharedBufferData initWithMemoryMappedSharedBuffer:]): Deleted.

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/ios:

* WebCoreSupport/WebDiskImageCacheClientIOS.h: Removed.
* WebCoreSupport/WebDiskImageCacheClientIOS.mm: Removed.
* WebView/WebPDFViewPlaceholder.mm:
(-[WebPDFViewPlaceholder finishedLoadingWithDataSource:]):
(-[WebPDFViewPlaceholder dataSourceMemoryMapped]): Deleted.
(-[WebPDFViewPlaceholder dataSourceMemoryMapFailed]): Deleted.

Source/WebKit/mac:

* Misc/WebCache.mm:
(+[WebCache statistics]):
* WebView/WebDataSource.mm:
(-[WebDataSource _setAllowToBeMemoryMapped]):
(-[WebDataSource setDataSourceDelegate:]):
(-[WebDataSource dataSourceDelegate]):
(-[WebDataSource dealloc]):
(BufferMemoryMapped): Deleted.
* WebView/WebPreferenceKeysPrivate.h:
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):
(-[WebPreferences diskImageCacheEnabled]): Deleted.
(-[WebPreferences setDiskImageCacheEnabled:]): Deleted.
(-[WebPreferences diskImageCacheMinimumImageSize]): Deleted.
(-[WebPreferences setDiskImageCacheMinimumImageSize:]): Deleted.
(-[WebPreferences diskImageCacheMaximumCacheSize]): Deleted.
(-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Deleted.
(-[WebPreferences _diskImageCacheSavedCacheDirectory]): Deleted.
(-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Deleted.
* WebView/WebPreferencesPrivate.h:
* WebView/WebView.mm:
(-[WebView _commonInitializationWithFrameName:groupName:]):
(+[WebView _handleMemoryWarning]):
(-[WebView _preferencesChanged:]):

Source/WTF:

* wtf/FeatureDefines.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfFeatureDefinesh">trunk/Source/WTF/wtf/FeatureDefines.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCoreexpin">trunk/Source/WebCore/WebCore.exp.in</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCoreloaderResourceBuffercpp">trunk/Source/WebCore/loader/ResourceBuffer.cpp</a></li>
<li><a href="#trunkSourceWebCoreloaderResourceBufferh">trunk/Source/WebCore/loader/ResourceBuffer.h</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedImagecpp">trunk/Source/WebCore/loader/cache/CachedImage.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedImageh">trunk/Source/WebCore/loader/cache/CachedImage.h</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedResourcecpp">trunk/Source/WebCore/loader/cache/CachedResource.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheCachedResourceh">trunk/Source/WebCore/loader/cache/CachedResource.h</a></li>
<li><a href="#trunkSourceWebCoreloadercacheMemoryCachecpp">trunk/Source/WebCore/loader/cache/MemoryCache.cpp</a></li>
<li><a href="#trunkSourceWebCoreloadercacheMemoryCacheh">trunk/Source/WebCore/loader/cache/MemoryCache.h</a></li>
<li><a href="#trunkSourceWebCoreplatformLoggingh">trunk/Source/WebCore/platform/Logging.h</a></li>
<li><a href="#trunkSourceWebCoreplatformSharedBuffercpp">trunk/Source/WebCore/platform/SharedBuffer.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformSharedBufferh">trunk/Source/WebCore/platform/SharedBuffer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformcfSharedBufferCFcpp">trunk/Source/WebCore/platform/cf/SharedBufferCF.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformmacSharedBufferMacmm">trunk/Source/WebCore/platform/mac/SharedBufferMac.mm</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebKitxcodeprojprojectpbxproj">trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebKitiosChangeLog">trunk/Source/WebKit/ios/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitiosWebViewWebPDFViewPlaceholdermm">trunk/Source/WebKit/ios/WebView/WebPDFViewPlaceholder.mm</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacMiscWebCachemm">trunk/Source/WebKit/mac/Misc/WebCache.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebDataSourcemm">trunk/Source/WebKit/mac/WebView/WebDataSource.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebPreferenceKeysPrivateh">trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebPreferencesmm">trunk/Source/WebKit/mac/WebView/WebPreferences.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebPreferencesPrivateh">trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit/mac/WebView/WebView.mm</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li>trunk/Source/WebCore/loader/ios/</li>
<li><a href="#trunkSourceWebKitiosWebCoreSupportWebDiskImageCacheClientIOSh">trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.h</a></li>
<li><a href="#trunkSourceWebKitiosWebCoreSupportWebDiskImageCacheClientIOSmm">trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WTF/ChangeLog        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2014-09-04  Pratik Solanki  &lt;psolanki@apple.com&gt;
+
+        Remove iOS specific disk image cache
+        https://bugs.webkit.org/show_bug.cgi?id=136517
+
+        Reviewed by Antti Koivisto.
+
+        Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
+        this now since we don't enable it in WebKit2 on iOS.
+
+        * wtf/FeatureDefines.h:
+
</ins><span class="cx"> 2014-09-03  Dan Bernstein  &lt;mitz@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Get rid of HIGH_DPI_CANVAS leftovers
</span></span></pre></div>
<a id="trunkSourceWTFwtfFeatureDefinesh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/FeatureDefines.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/FeatureDefines.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WTF/wtf/FeatureDefines.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -70,10 +70,6 @@
</span><span class="cx"> #define ENABLE_CURSOR_SUPPORT 0
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if !defined(ENABLE_DISK_IMAGE_CACHE)
-#define ENABLE_DISK_IMAGE_CACHE 1
-#endif
-
</del><span class="cx"> #if !defined(ENABLE_DRAG_SUPPORT)
</span><span class="cx"> #define ENABLE_DRAG_SUPPORT 0
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/ChangeLog        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -1,3 +1,62 @@
</span><ins>+2014-09-04  Pratik Solanki  &lt;psolanki@apple.com&gt;
+
+        Remove iOS specific disk image cache
+        https://bugs.webkit.org/show_bug.cgi?id=136517
+
+        Reviewed by Antti Koivisto.
+
+        Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
+        this now since we don't enable it in WebKit2 on iOS.
+
+        * WebCore.exp.in:
+        * WebCore.xcodeproj/project.pbxproj:
+        * loader/ResourceBuffer.cpp:
+        (WebCore::ResourceBuffer::isUsingDiskImageCache): Deleted.
+        * loader/ResourceBuffer.h:
+        * loader/cache/CachedImage.cpp:
+        (WebCore::CachedImage::canUseDiskImageCache): Deleted.
+        (WebCore::CachedImage::useDiskImageCache): Deleted.
+        * loader/cache/CachedImage.h:
+        * loader/cache/CachedResource.cpp:
+        (WebCore::CachedResource::isUsingDiskImageCache): Deleted.
+        * loader/cache/CachedResource.h:
+        (WebCore::CachedResource::canUseDiskImageCache): Deleted.
+        (WebCore::CachedResource::useDiskImageCache): Deleted.
+        * loader/cache/MemoryCache.cpp:
+        (WebCore::MemoryCache::TypeStatistic::addResource):
+        (WebCore::MemoryCache::dumpStats):
+        (WebCore::MemoryCache::dumpLRULists):
+        (WebCore::MemoryCache::flushCachedImagesToDisk): Deleted.
+        * loader/cache/MemoryCache.h:
+        (WebCore::MemoryCache::TypeStatistic::TypeStatistic):
+        * loader/ios/DiskImageCacheClientIOS.h: Removed.
+        * loader/ios/DiskImageCacheIOS.h: Removed.
+        * loader/ios/DiskImageCacheIOS.mm: Removed.
+        * platform/Logging.h:
+        * platform/SharedBuffer.cpp:
+        (WebCore::SharedBuffer::SharedBuffer):
+        (WebCore::SharedBuffer::~SharedBuffer):
+        (WebCore::SharedBuffer::data):
+        (WebCore::SharedBuffer::append):
+        (WebCore::SharedBuffer::buffer):
+        (WebCore::SharedBuffer::getSomeData):
+        (WebCore::SharedBuffer::isAllowedToBeMemoryMapped): Deleted.
+        (WebCore::SharedBuffer::allowToBeMemoryMapped): Deleted.
+        (WebCore::SharedBuffer::failedMemoryMap): Deleted.
+        (WebCore::SharedBuffer::markAsMemoryMapped): Deleted.
+        (WebCore::SharedBuffer::memoryMappedNotificationCallbackData): Deleted.
+        (WebCore::SharedBuffer::memoryMappedNotificationCallback): Deleted.
+        (WebCore::SharedBuffer::setMemoryMappedNotificationCallback): Deleted.
+        * platform/SharedBuffer.h:
+        (WebCore::SharedBuffer::isMemoryMapped): Deleted.
+        * platform/cf/SharedBufferCF.cpp:
+        (WebCore::SharedBuffer::SharedBuffer):
+        * platform/mac/SharedBufferMac.mm:
+        (-[WebCoreSharedBufferData length]):
+        (-[WebCoreSharedBufferData bytes]):
+        (WebCore::SharedBuffer::createCFData):
+        (-[WebCoreSharedBufferData initWithMemoryMappedSharedBuffer:]): Deleted.
+
</ins><span class="cx"> 2014-09-04  Brian J. Burg  &lt;burg@cs.washington.edu&gt;
</span><span class="cx"> 
</span><span class="cx">         LegacyProfiler: ProfileNodes should be used more like structs
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCoreexpin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.exp.in (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.exp.in        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/WebCore.exp.in        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -3021,16 +3021,6 @@
</span><span class="cx"> __ZNK7WebCore8Document16annotatedRegionsEv
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-__ZN7WebCore11MemoryCache23flushCachedImagesToDiskEv
-__ZN7WebCore12SharedBuffer21allowToBeMemoryMappedEv
-__ZN7WebCore12SharedBuffer35setMemoryMappedNotificationCallbackEPFvN3WTF10PassRefPtrIS0_EENS0_16CompletionStatusEPvES5_
-__ZN7WebCore14diskImageCacheEv
-__ZNK7WebCore12SharedBuffer25isAllowedToBeMemoryMappedEv
-__ZNK7WebCore12SharedBuffer32memoryMappedNotificationCallbackEv
-__ZNK7WebCore12SharedBuffer36memoryMappedNotificationCallbackDataEv
-#endif
-
</del><span class="cx"> #if ENABLE(DRAG_SUPPORT)
</span><span class="cx"> __ZN7WebCore12EventHandler17dragSourceEndedAtERKNS_18PlatformMouseEventENS_13DragOperationE
</span><span class="cx"> __ZN7WebCore14DragController10dragExitedERNS_8DragDataE
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -3780,7 +3780,6 @@
</span><span class="cx">                 A5ABB78713B904BC00F197E3 /* LineBreakIteratorPoolICU.h in Headers */ = {isa = PBXBuildFile; fileRef = A5ABB78613B904BC00F197E3 /* LineBreakIteratorPoolICU.h */; };
</span><span class="cx">                 A5AFB34F115151A700B045CB /* StepRange.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5AFB34D115151A700B045CB /* StepRange.cpp */; };
</span><span class="cx">                 A5AFB350115151A700B045CB /* StepRange.h in Headers */ = {isa = PBXBuildFile; fileRef = A5AFB34E115151A700B045CB /* StepRange.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><del>-                A5C566AB127A3AAD00E8A3FF /* DiskImageCacheClientIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = A5C566AA127A3AAD00E8A3FF /* DiskImageCacheClientIOS.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><span class="cx">                 A5DEBDA316FB908700836FE0 /* WebKitPlaybackTargetAvailabilityEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5DEBD9F16FB908700836FE0 /* WebKitPlaybackTargetAvailabilityEvent.cpp */; };
</span><span class="cx">                 A5DEBDA416FB908700836FE0 /* WebKitPlaybackTargetAvailabilityEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = A5DEBDA016FB908700836FE0 /* WebKitPlaybackTargetAvailabilityEvent.h */; };
</span><span class="cx">                 A5E616731894581F009ADF50 /* WebDebuggerAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5E616711894581F009ADF50 /* WebDebuggerAgent.cpp */; };
</span><span class="lines">@@ -3788,8 +3787,6 @@
</span><span class="cx">                 A5F36D3A18F758720054C024 /* PageScriptDebugServer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5F36D3818F758720054C024 /* PageScriptDebugServer.cpp */; };
</span><span class="cx">                 A5F36D3B18F758720054C024 /* PageScriptDebugServer.h in Headers */ = {isa = PBXBuildFile; fileRef = A5F36D3918F758720054C024 /* PageScriptDebugServer.h */; };
</span><span class="cx">                 A5F6E16B132ED46E008EDAE3 /* Autocapitalize.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A5F6E16C132ED46E008EDAE3 /* Autocapitalize.cpp */; };
</span><del>-                A5F9EF701266750D00FCCF52 /* DiskImageCacheIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = A5F9EF6E1266750D00FCCF52 /* DiskImageCacheIOS.mm */; };
-                A5F9EF711266750D00FCCF52 /* DiskImageCacheIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = A5F9EF6F1266750D00FCCF52 /* DiskImageCacheIOS.h */; settings = {ATTRIBUTES = (Private, ); }; };
</del><span class="cx">                 A6148A6212E41D3A0044A784 /* DOMHTMLKeygenElementInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = A6148A6112E41D3A0044A784 /* DOMHTMLKeygenElementInternal.h */; };
</span><span class="cx">                 A6148A6712E41D940044A784 /* DOMHTMLKeygenElement.h in Headers */ = {isa = PBXBuildFile; fileRef = A6148A6512E41D940044A784 /* DOMHTMLKeygenElement.h */; };
</span><span class="cx">                 A6148A6812E41D940044A784 /* DOMHTMLKeygenElement.mm in Sources */ = {isa = PBXBuildFile; fileRef = A6148A6612E41D940044A784 /* DOMHTMLKeygenElement.mm */; };
</span><span class="lines">@@ -10932,7 +10929,6 @@
</span><span class="cx">                 A5ABB78613B904BC00F197E3 /* LineBreakIteratorPoolICU.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LineBreakIteratorPoolICU.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A5AFB34D115151A700B045CB /* StepRange.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StepRange.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A5AFB34E115151A700B045CB /* StepRange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StepRange.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                A5C566AA127A3AAD00E8A3FF /* DiskImageCacheClientIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DiskImageCacheClientIOS.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 A5C974CF11485FF10066F2AB /* KeyEventCocoa.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KeyEventCocoa.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A5C974D011485FF10066F2AB /* KeyEventCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KeyEventCocoa.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A5DEBD9F16FB908700836FE0 /* WebKitPlaybackTargetAvailabilityEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebKitPlaybackTargetAvailabilityEvent.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -10943,8 +10939,6 @@
</span><span class="cx">                 A5F36D3818F758720054C024 /* PageScriptDebugServer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PageScriptDebugServer.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A5F36D3918F758720054C024 /* PageScriptDebugServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageScriptDebugServer.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A5F6E16C132ED46E008EDAE3 /* Autocapitalize.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Autocapitalize.cpp; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><del>-                A5F9EF6E1266750D00FCCF52 /* DiskImageCacheIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DiskImageCacheIOS.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
-                A5F9EF6F1266750D00FCCF52 /* DiskImageCacheIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DiskImageCacheIOS.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</del><span class="cx">                 A6148A6112E41D3A0044A784 /* DOMHTMLKeygenElementInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMHTMLKeygenElementInternal.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A6148A6512E41D940044A784 /* DOMHTMLKeygenElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMHTMLKeygenElement.h; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="cx">                 A6148A6612E41D940044A784 /* DOMHTMLKeygenElement.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DOMHTMLKeygenElement.mm; sourceTree = &quot;&lt;group&gt;&quot;; };
</span><span class="lines">@@ -21538,16 +21532,6 @@
</span><span class="cx">                         path = ios;
</span><span class="cx">                         sourceTree = &quot;&lt;group&gt;&quot;;
</span><span class="cx">                 };
</span><del>-                CE79D68617F220ED00815C00 /* ios */ = {
-                        isa = PBXGroup;
-                        children = (
-                                A5C566AA127A3AAD00E8A3FF /* DiskImageCacheClientIOS.h */,
-                                A5F9EF6F1266750D00FCCF52 /* DiskImageCacheIOS.h */,
-                                A5F9EF6E1266750D00FCCF52 /* DiskImageCacheIOS.mm */,
-                        );
-                        path = ios;
-                        sourceTree = &quot;&lt;group&gt;&quot;;
-                };
</del><span class="cx">                 DF9AFD6F13FC31B00015FEB7 /* objc */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><span class="lines">@@ -23687,8 +23671,6 @@
</span><span class="cx">                                 D0BD4F5D1408850F006839B6 /* DictationCommandIOS.h in Headers */,
</span><span class="cx">                                 316023F01532C40C00D50FF4 /* Dictionary.h in Headers */,
</span><span class="cx">                                 FDAF19991513D131008DB0C3 /* DirectConvolver.h in Headers */,
</span><del>-                                A5C566AB127A3AAD00E8A3FF /* DiskImageCacheClientIOS.h in Headers */,
-                                A5F9EF711266750D00FCCF52 /* DiskImageCacheIOS.h in Headers */,
</del><span class="cx">                                 49AF2D6914435D050016A784 /* DisplayRefreshMonitor.h in Headers */,
</span><span class="cx">                                 5D8C4DC01428222C0026CE72 /* DisplaySleepDisablerCocoa.h in Headers */,
</span><span class="cx">                                 FD31609112B026F700C1A359 /* Distance.h in Headers */,
</span><span class="lines">@@ -27339,7 +27321,6 @@
</span><span class="cx">                                 D0BD4F5C1408850F006839B6 /* DictationCommandIOS.cpp in Sources */,
</span><span class="cx">                                 312D67B11535691F00563D0D /* Dictionary.cpp in Sources */,
</span><span class="cx">                                 FDAF19981513D131008DB0C3 /* DirectConvolver.cpp in Sources */,
</span><del>-                                A5F9EF701266750D00FCCF52 /* DiskImageCacheIOS.mm in Sources */,
</del><span class="cx">                                 49FC7A501444AF5F00A5D864 /* DisplayRefreshMonitor.cpp in Sources */,
</span><span class="cx">                                 0F97A658155DA81E00FADD4C /* DisplayRefreshMonitorIOS.mm in Sources */,
</span><span class="cx">                                 49AF2D6C14435D210016A784 /* DisplayRefreshMonitorMac.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderResourceBuffercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/ResourceBuffer.cpp (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/ResourceBuffer.cpp        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/ResourceBuffer.cpp        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -119,12 +119,4 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-bool ResourceBuffer::isUsingDiskImageCache() const
-{
-    ASSERT(m_sharedBuffer);
-    return m_sharedBuffer &amp;&amp; m_sharedBuffer-&gt;isAllowedToBeMemoryMapped();
-}
-#endif
-
</del><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkSourceWebCoreloaderResourceBufferh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/ResourceBuffer.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/ResourceBuffer.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/ResourceBuffer.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -74,9 +74,6 @@
</span><span class="cx"> #if USE(CF)
</span><span class="cx">     RetainPtr&lt;CFDataRef&gt; createCFData();
</span><span class="cx"> #endif
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    bool isUsingDiskImageCache() const;
-#endif
</del><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     WEBCORE_EXPORT ResourceBuffer();
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedImagecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedImage.cpp (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedImage.cpp        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/cache/CachedImage.cpp        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -56,10 +56,6 @@
</span><span class="cx"> #include &quot;PDFDocumentImage.h&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-#include &quot;DiskImageCacheIOS.h&quot;
-#endif
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> CachedImage::CachedImage(const ResourceRequest&amp; resourceRequest, SessionID sessionID)
</span><span class="lines">@@ -505,40 +501,6 @@
</span><span class="cx">     return image-&gt;currentFrameKnownToBeOpaque();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-bool CachedImage::canUseDiskImageCache() const
-{
-    if (isLoading() || errorOccurred())
-        return false;
-
-    if (!m_data)
-        return false;
-
-    if (m_data-&gt;size() &lt; diskImageCache().minimumImageSize())
-        return false;
-
-    // &quot;Cache-Control: no-store&quot; resources may be marked as such because they may
-    // contain sensitive information. We should not write these resources to disk.
-    if (m_response.cacheControlContainsNoStore())
-        return false;
-
-    // Testing shows that PDF images did not work when memory mapped.
-    // However, SVG images and Bitmap images were fine. See:
-    // &lt;rdar://problem/8591834&gt; Disk Image Cache should support PDF Images
-    if (m_response.mimeType() == &quot;application/pdf&quot;)
-        return false;
-
-    return true;
-}
-
-void CachedImage::useDiskImageCache()
-{
-    ASSERT(canUseDiskImageCache());
-    ASSERT(!isUsingDiskImageCache());
-    m_data-&gt;sharedBuffer()-&gt;allowToBeMemoryMapped();
-}
-#endif
-
</del><span class="cx"> bool CachedImage::isOriginClean(SecurityOrigin* securityOrigin)
</span><span class="cx"> {
</span><span class="cx">     if (!image()-&gt;hasSingleSecurityOrigin())
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedImageh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedImage.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedImage.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/cache/CachedImage.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -85,11 +85,6 @@
</span><span class="cx">     bool isManuallyCached() const { return m_isManuallyCached; }
</span><span class="cx">     virtual bool mustRevalidateDueToCacheHeaders(CachePolicy) const;
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    virtual bool canUseDiskImageCache() const override;
-    virtual void useDiskImageCache() override;
-#endif
-
</del><span class="cx">     bool isOriginClean(SecurityOrigin*);
</span><span class="cx"> 
</span><span class="cx"> private:
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedResourcecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedResource.cpp (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedResource.cpp        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/cache/CachedResource.cpp        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -850,13 +850,6 @@
</span><span class="cx">     m_resource-&gt;didAddClient(m_client);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-bool CachedResource::isUsingDiskImageCache() const
-{
-    return m_data &amp;&amp; m_data-&gt;isUsingDiskImageCache();
-}
-#endif
-
</del><span class="cx"> #if USE(FOUNDATION)
</span><span class="cx"> void CachedResource::tryReplaceEncodedData(PassRefPtr&lt;SharedBuffer&gt; newBuffer)
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheCachedResourceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/CachedResource.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/CachedResource.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/cache/CachedResource.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -247,12 +247,6 @@
</span><span class="cx">     void setLoadFinishTime(double finishTime) { m_loadFinishTime = finishTime; }
</span><span class="cx">     double loadFinishTime() const { return m_loadFinishTime; }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    bool isUsingDiskImageCache() const;
-    virtual bool canUseDiskImageCache() const { return false; }
-    virtual void useDiskImageCache() { ASSERT(canUseDiskImageCache()); }
-#endif
-
</del><span class="cx">     virtual bool canReuse(const ResourceRequest&amp;) const { return true; }
</span><span class="cx"> 
</span><span class="cx"> #if USE(FOUNDATION)
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheMemoryCachecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/MemoryCache.cpp (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/MemoryCache.cpp        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/cache/MemoryCache.cpp        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -49,11 +49,6 @@
</span><span class="cx"> #include &lt;wtf/TemporaryChange.h&gt;
</span><span class="cx"> #include &lt;wtf/text/CString.h&gt;
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-#include &quot;DiskImageCacheIOS.h&quot;
-#include &quot;ResourceBuffer.h&quot;
-#endif
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> static const int cDefaultCacheCapacity = 8192 * 1024;
</span><span class="lines">@@ -448,45 +443,6 @@
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-void MemoryCache::flushCachedImagesToDisk()
-{
-    if (!diskImageCache().isEnabled())
-        return;
-
-#ifndef NDEBUG
-    double start = WTF::currentTimeMS();
-    unsigned resourceCount = 0;
-    unsigned cachedSize = 0;
-#endif
-
-    for (size_t i = m_allResources.size(); i; ) {
-        --i;
-        CachedResource* current = m_allResources[i].m_tail;
-        while (current) {
-            CachedResource* previous = current-&gt;m_prevInAllResourcesList;
-
-            if (!current-&gt;isUsingDiskImageCache() &amp;&amp; current-&gt;canUseDiskImageCache()) {
-                current-&gt;useDiskImageCache();
-                current-&gt;destroyDecodedData();
-#ifndef NDEBUG
-                LOG(DiskImageCache, &quot;Cache::diskCacheResources(): attempting to save (%d) bytes&quot;, current-&gt;resourceBuffer()-&gt;sharedBuffer()-&gt;size());
-                ++resourceCount;
-                cachedSize += current-&gt;resourceBuffer()-&gt;sharedBuffer()-&gt;size();
-#endif
-            }
-
-            current = previous;
-        }
-    }
-
-#ifndef NDEBUG
-    double end = WTF::currentTimeMS();
-    LOG(DiskImageCache, &quot;DiskImageCache: took (%f) ms to cache (%d) bytes for (%d) resources&quot;, end - start, cachedSize, resourceCount);
-#endif
-}
-#endif // ENABLE(DISK_IMAGE_CACHE)
-
</del><span class="cx"> void MemoryCache::setCapacities(unsigned minDeadBytes, unsigned maxDeadBytes, unsigned totalBytes)
</span><span class="cx"> {
</span><span class="cx">     ASSERT(minDeadBytes &lt;= maxDeadBytes);
</span><span class="lines">@@ -845,10 +801,6 @@
</span><span class="cx">     size += o-&gt;size();
</span><span class="cx">     liveSize += o-&gt;hasClients() ? o-&gt;size() : 0;
</span><span class="cx">     decodedSize += o-&gt;decodedSize();
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    // Only the data inside the resource was mapped, not the entire resource.
-    mappedSize += o-&gt;isUsingDiskImageCache() ? o-&gt;resourceBuffer()-&gt;sharedBuffer()-&gt;size() : 0;
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> MemoryCache::Statistics MemoryCache::getStatistics()
</span><span class="lines">@@ -944,15 +896,9 @@
</span><span class="cx"> void MemoryCache::dumpStats()
</span><span class="cx"> {
</span><span class="cx">     Statistics s = getStatistics();
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    printf(&quot;%-13s %-13s %-13s %-13s %-13s %-13s %-13s\n&quot;, &quot;&quot;, &quot;Count&quot;, &quot;Size&quot;, &quot;LiveSize&quot;, &quot;DecodedSize&quot;, &quot;Mapped&quot;, &quot;\&quot;Real\&quot;&quot;);
-    printf(&quot;%-13s %-13s %-13s %-13s %-13s %-13s %-13s\n&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;);
-    printf(&quot;%-13s %13d %13d %13d %13d %13d %13d\n&quot;, &quot;Images&quot;, s.images.count, s.images.size, s.images.liveSize, s.images.decodedSize, s.images.mappedSize, s.images.size - s.images.mappedSize);
-#else
</del><span class="cx">     printf(&quot;%-13s %-13s %-13s %-13s %-13s\n&quot;, &quot;&quot;, &quot;Count&quot;, &quot;Size&quot;, &quot;LiveSize&quot;, &quot;DecodedSize&quot;);
</span><span class="cx">     printf(&quot;%-13s %-13s %-13s %-13s %-13s\n&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;, &quot;-------------&quot;);
</span><span class="cx">     printf(&quot;%-13s %13d %13d %13d %13d\n&quot;, &quot;Images&quot;, s.images.count, s.images.size, s.images.liveSize, s.images.decodedSize);
</span><del>-#endif
</del><span class="cx">     printf(&quot;%-13s %13d %13d %13d %13d\n&quot;, &quot;CSS&quot;, s.cssStyleSheets.count, s.cssStyleSheets.size, s.cssStyleSheets.liveSize, s.cssStyleSheets.decodedSize);
</span><span class="cx"> #if ENABLE(XSLT)
</span><span class="cx">     printf(&quot;%-13s %13d %13d %13d %13d\n&quot;, &quot;XSL&quot;, s.xslStyleSheets.count, s.xslStyleSheets.size, s.xslStyleSheets.liveSize, s.xslStyleSheets.decodedSize);
</span><span class="lines">@@ -964,11 +910,7 @@
</span><span class="cx"> 
</span><span class="cx"> void MemoryCache::dumpLRULists(bool includeLive) const
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    printf(&quot;LRU-SP lists in eviction order (Kilobytes decoded, Kilobytes encoded, Access count, Referenced, isMemoryMapped):\n&quot;);
-#else
</del><span class="cx">     printf(&quot;LRU-SP lists in eviction order (Kilobytes decoded, Kilobytes encoded, Access count, Referenced):\n&quot;);
</span><del>-#endif
</del><span class="cx"> 
</span><span class="cx">     int size = m_allResources.size();
</span><span class="cx">     for (int i = size - 1; i &gt;= 0; i--) {
</span><span class="lines">@@ -977,11 +919,7 @@
</span><span class="cx">         while (current) {
</span><span class="cx">             CachedResource* prev = current-&gt;m_prevInAllResourcesList;
</span><span class="cx">             if (includeLive || !current-&gt;hasClients())
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-                printf(&quot;(%.1fK, %.1fK, %uA, %dR, %d); &quot;, current-&gt;decodedSize() / 1024.0f, (current-&gt;encodedSize() + current-&gt;overheadSize()) / 1024.0f, current-&gt;accessCount(), current-&gt;hasClients(), current-&gt;isUsingDiskImageCache());
-#else
</del><span class="cx">                 printf(&quot;(%.1fK, %.1fK, %uA, %dR); &quot;, current-&gt;decodedSize() / 1024.0f, (current-&gt;encodedSize() + current-&gt;overheadSize()) / 1024.0f, current-&gt;accessCount(), current-&gt;hasClients());
</span><del>-#endif
</del><span class="cx"> 
</span><span class="cx">             current = prev;
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkSourceWebCoreloadercacheMemoryCacheh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/loader/cache/MemoryCache.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/loader/cache/MemoryCache.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/loader/cache/MemoryCache.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -85,19 +85,13 @@
</span><span class="cx">         int size;
</span><span class="cx">         int liveSize;
</span><span class="cx">         int decodedSize;
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-        int mappedSize;
-#endif
</del><span class="cx"> 
</span><span class="cx">         TypeStatistic()
</span><span class="cx">             : count(0)
</span><span class="cx">             , size(0)
</span><span class="cx">             , liveSize(0)
</span><span class="cx">             , decodedSize(0)
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-            , mappedSize(0)
-#endif
-        {
</del><ins>+        { 
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         void addResource(CachedResource*);
</span><span class="lines">@@ -158,10 +152,6 @@
</span><span class="cx">     void addToLiveResourcesSize(CachedResource*);
</span><span class="cx">     void removeFromLiveResourcesSize(CachedResource*);
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    WEBCORE_EXPORT void flushCachedImagesToDisk(); // Flush encoded data from resources still referenced by web pages.
-#endif
-
</del><span class="cx">     static void removeUrlFromCache(ScriptExecutionContext*, const String&amp; urlString, SessionID);
</span><span class="cx">     static void removeRequestFromCache(ScriptExecutionContext*, const ResourceRequest&amp;, SessionID);
</span><span class="cx">     static void removeRequestFromSessionCaches(ScriptExecutionContext*, const ResourceRequest&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformLoggingh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/Logging.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/Logging.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/platform/Logging.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -42,7 +42,6 @@
</span><span class="cx">     M(Archives) \
</span><span class="cx">     M(BackForward) \
</span><span class="cx">     M(Compositing) \
</span><del>-    M(DiskImageCache) \
</del><span class="cx">     M(Editing) \
</span><span class="cx">     M(Events) \
</span><span class="cx">     M(FTP) \
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformSharedBuffercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/SharedBuffer.cpp (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/SharedBuffer.cpp        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/platform/SharedBuffer.cpp        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -31,10 +31,6 @@
</span><span class="cx"> #include &lt;wtf/PassOwnPtr.h&gt;
</span><span class="cx"> #include &lt;wtf/unicode/UTF8.h&gt;
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-#include &quot;DiskImageCacheIOS.h&quot;
-#endif
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> #if !USE(NETWORK_CFDATA_ARRAY_CALLBACK)
</span><span class="lines">@@ -66,36 +62,18 @@
</span><span class="cx"> SharedBuffer::SharedBuffer()
</span><span class="cx">     : m_size(0)
</span><span class="cx">     , m_buffer(adoptRef(new DataBuffer))
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    , m_isMemoryMapped(false)
-    , m_diskImageCacheId(DiskImageCache::invalidDiskCacheId)
-    , m_notifyMemoryMappedCallback(nullptr)
-    , m_notifyMemoryMappedCallbackData(nullptr)
-#endif
</del><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> SharedBuffer::SharedBuffer(unsigned size)
</span><span class="cx">     : m_size(size)
</span><span class="cx">     , m_buffer(adoptRef(new DataBuffer))
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    , m_isMemoryMapped(false)
-    , m_diskImageCacheId(DiskImageCache::invalidDiskCacheId)
-    , m_notifyMemoryMappedCallback(nullptr)
-    , m_notifyMemoryMappedCallbackData(nullptr)
-#endif
</del><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> SharedBuffer::SharedBuffer(const char* data, unsigned size)
</span><span class="cx">     : m_size(0)
</span><span class="cx">     , m_buffer(adoptRef(new DataBuffer))
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    , m_isMemoryMapped(false)
-    , m_diskImageCacheId(DiskImageCache::invalidDiskCacheId)
-    , m_notifyMemoryMappedCallback(nullptr)
-    , m_notifyMemoryMappedCallbackData(nullptr)
-#endif
</del><span class="cx"> {
</span><span class="cx">     append(data, size);
</span><span class="cx"> }
</span><span class="lines">@@ -103,25 +81,12 @@
</span><span class="cx"> SharedBuffer::SharedBuffer(const unsigned char* data, unsigned size)
</span><span class="cx">     : m_size(0)
</span><span class="cx">     , m_buffer(adoptRef(new DataBuffer))
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    , m_isMemoryMapped(false)
-    , m_diskImageCacheId(DiskImageCache::invalidDiskCacheId)
-    , m_notifyMemoryMappedCallback(nullptr)
-    , m_notifyMemoryMappedCallbackData(nullptr)
-#endif
</del><span class="cx"> {
</span><span class="cx">     append(reinterpret_cast&lt;const char*&gt;(data), size);
</span><span class="cx"> }
</span><span class="cx">     
</span><span class="cx"> SharedBuffer::~SharedBuffer()
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    if (m_diskImageCacheId) {
-        diskImageCache().removeItem(m_diskImageCacheId);
-        m_isMemoryMapped = false;
-        m_diskImageCacheId = DiskImageCache::invalidDiskCacheId;
-    }
-#endif
</del><span class="cx">     clear();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -141,72 +106,8 @@
</span><span class="cx">     return m_size;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-bool SharedBuffer::isAllowedToBeMemoryMapped() const
-{
-    return m_diskImageCacheId != DiskImageCache::invalidDiskCacheId;
-}
-
-SharedBuffer::MemoryMappingState SharedBuffer::allowToBeMemoryMapped()
-{
-    if (isMemoryMapped())
-        return SharedBuffer::SuccessAlreadyMapped;
-
-    if (isAllowedToBeMemoryMapped())
-        return SharedBuffer::PreviouslyQueuedForMapping;
-
-    m_diskImageCacheId = diskImageCache().writeItem(this);
-    if (m_diskImageCacheId == DiskImageCache::invalidDiskCacheId)
-        return SharedBuffer::FailureCacheFull;
-
-    return SharedBuffer::QueuedForMapping;
-}
-
-void SharedBuffer::failedMemoryMap()
-{
-    if (m_notifyMemoryMappedCallback)
-        m_notifyMemoryMappedCallback(this, SharedBuffer::Failed, m_notifyMemoryMappedCallbackData);
-}
-
-void SharedBuffer::markAsMemoryMapped()
-{
-    ASSERT(!isMemoryMapped());
-
-    m_isMemoryMapped = true;
-    unsigned savedSize = size();
-    clear();
-    m_size = savedSize;
-
-    if (m_notifyMemoryMappedCallback)
-        m_notifyMemoryMappedCallback(this, SharedBuffer::Succeeded, m_notifyMemoryMappedCallbackData);
-}
-
-SharedBuffer::MemoryMappedNotifyCallbackData SharedBuffer::memoryMappedNotificationCallbackData() const
-{
-    return m_notifyMemoryMappedCallbackData;
-}
-
-SharedBuffer::MemoryMappedNotifyCallback SharedBuffer::memoryMappedNotificationCallback() const
-{
-    return m_notifyMemoryMappedCallback;
-}
-
-void SharedBuffer::setMemoryMappedNotificationCallback(MemoryMappedNotifyCallback callback, MemoryMappedNotifyCallbackData data)
-{
-    ASSERT(!m_notifyMemoryMappedCallback || !callback);
-    ASSERT(!m_notifyMemoryMappedCallbackData || !data);
-
-    m_notifyMemoryMappedCallback = callback;
-    m_notifyMemoryMappedCallbackData = data;
-}
-#endif
-
</del><span class="cx"> const char* SharedBuffer::data() const
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    if (isMemoryMapped())
-        return static_cast&lt;const char*&gt;(diskImageCache().dataForItem(m_diskImageCacheId));
-#endif
</del><span class="cx"> 
</span><span class="cx">     if (hasPlatformData())
</span><span class="cx">         return platformData();
</span><span class="lines">@@ -258,9 +159,6 @@
</span><span class="cx"> 
</span><span class="cx"> void SharedBuffer::append(const char* data, unsigned length)
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    ASSERT(!isMemoryMapped());
-#endif
</del><span class="cx">     if (!length)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -393,9 +291,6 @@
</span><span class="cx"> 
</span><span class="cx"> const Vector&lt;char&gt;&amp; SharedBuffer::buffer() const
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    ASSERT(!isMemoryMapped());
-#endif
</del><span class="cx">     unsigned bufferSize = m_buffer-&gt;data.size();
</span><span class="cx">     if (m_size &gt; bufferSize) {
</span><span class="cx">         duplicateDataBufferIfNecessary();
</span><span class="lines">@@ -413,15 +308,6 @@
</span><span class="cx">         return 0;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    ASSERT(position &lt; size());
-    if (isMemoryMapped()) {
-        const char* data = static_cast&lt;const char*&gt;(diskImageCache().dataForItem(m_diskImageCacheId));
-        someData = data + position;
-        return size() - position;
-    }
-#endif
-
</del><span class="cx">     if (hasPlatformData()) {
</span><span class="cx">         ASSERT_WITH_SECURITY_IMPLICATION(position &lt; size());
</span><span class="cx">         someData = data() + position;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformSharedBufferh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/SharedBuffer.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/SharedBuffer.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/platform/SharedBuffer.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -118,30 +118,6 @@
</span><span class="cx">     //      }
</span><span class="cx">     WEBCORE_EXPORT unsigned getSomeData(const char*&amp; data, unsigned position = 0) const;
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    enum MemoryMappingState { QueuedForMapping, PreviouslyQueuedForMapping, SuccessAlreadyMapped, FailureCacheFull };
-
-    // Calling this will cause this buffer to be memory mapped.
-    WEBCORE_EXPORT MemoryMappingState allowToBeMemoryMapped();
-    WEBCORE_EXPORT bool isAllowedToBeMemoryMapped() const;
-
-    // This is called to indicate that the memory mapping failed.
-    void failedMemoryMap();
-
-    // This is called only once the buffer has been completely memory mapped.
-    void markAsMemoryMapped();
-    bool isMemoryMapped() const { return m_isMemoryMapped; }
-
-    // This callback function will be called when either the buffer has been memory mapped or failed to be memory mapped.
-    enum CompletionStatus { Failed, Succeeded };
-    typedef void* MemoryMappedNotifyCallbackData;
-    typedef void (*MemoryMappedNotifyCallback)(PassRefPtr&lt;SharedBuffer&gt;, CompletionStatus, MemoryMappedNotifyCallbackData);
-
-    WEBCORE_EXPORT MemoryMappedNotifyCallbackData memoryMappedNotificationCallbackData() const;
-    WEBCORE_EXPORT MemoryMappedNotifyCallback memoryMappedNotificationCallback() const;
-    WEBCORE_EXPORT void setMemoryMappedNotificationCallback(MemoryMappedNotifyCallback, MemoryMappedNotifyCallbackData);
-#endif
-
</del><span class="cx">     void tryReplaceContentsWithPlatformBuffer(SharedBuffer*);
</span><span class="cx">     WEBCORE_EXPORT bool hasPlatformData() const;
</span><span class="cx"> 
</span><span class="lines">@@ -182,12 +158,6 @@
</span><span class="cx"> #else
</span><span class="cx">     mutable Vector&lt;char*&gt; m_segments;
</span><span class="cx"> #endif
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    bool m_isMemoryMapped;
-    unsigned m_diskImageCacheId; // DiskImageCacheId is unsigned.
-    MemoryMappedNotifyCallback m_notifyMemoryMappedCallback;
-    MemoryMappedNotifyCallbackData m_notifyMemoryMappedCallbackData;
-#endif
</del><span class="cx"> #if USE(CF)
</span><span class="cx">     explicit SharedBuffer(CFDataRef);
</span><span class="cx">     RetainPtr&lt;CFDataRef&gt; m_cfData;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformcfSharedBufferCFcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/cf/SharedBufferCF.cpp (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/cf/SharedBufferCF.cpp        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/platform/cf/SharedBufferCF.cpp        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -30,21 +30,11 @@
</span><span class="cx"> 
</span><span class="cx"> #include &lt;wtf/cf/TypeCasts.h&gt;
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-#include &quot;DiskImageCacheIOS.h&quot;
-#endif
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> SharedBuffer::SharedBuffer(CFDataRef cfData)
</span><span class="cx">     : m_size(0)
</span><span class="cx">     , m_buffer(adoptRef(new DataBuffer))
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    , m_isMemoryMapped(false)
-    , m_diskImageCacheId(DiskImageCache::invalidDiskCacheId)
-    , m_notifyMemoryMappedCallback(nullptr)
-    , m_notifyMemoryMappedCallbackData(nullptr)
-#endif
</del><span class="cx">     , m_cfData(cfData)
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="lines">@@ -128,12 +118,6 @@
</span><span class="cx"> SharedBuffer::SharedBuffer(CFArrayRef cfDataArray)
</span><span class="cx">     : m_size(0)
</span><span class="cx">     , m_buffer(adoptRef(new DataBuffer))
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    , m_isMemoryMapped(false)
-    , m_diskImageCacheId(DiskImageCache::invalidDiskCacheId)
-    , m_notifyMemoryMappedCallback(nullptr)
-    , m_notifyMemoryMappedCallbackData(nullptr)
-#endif
</del><span class="cx">     , m_cfData(nullptr)
</span><span class="cx"> {
</span><span class="cx">     CFIndex dataArrayCount = CFArrayGetCount(cfDataArray);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformmacSharedBufferMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/mac/SharedBufferMac.mm (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/mac/SharedBufferMac.mm        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebCore/platform/mac/SharedBufferMac.mm        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -37,15 +37,9 @@
</span><span class="cx"> @interface WebCoreSharedBufferData : NSData
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;SharedBuffer::DataBuffer&gt; sharedBufferDataBuffer;
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    RefPtr&lt;SharedBuffer&gt; sharedBuffer;
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (id)initWithSharedBufferDataBuffer:(SharedBuffer::DataBuffer*)dataBuffer;
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-- (id)initWithMemoryMappedSharedBuffer:(SharedBuffer&amp;)memoryMappedSharedBuffer;
-#endif
</del><span class="cx"> @end
</span><span class="cx"> 
</span><span class="cx"> @implementation WebCoreSharedBufferData
</span><span class="lines">@@ -82,35 +76,13 @@
</span><span class="cx">     return self;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-- (id)initWithMemoryMappedSharedBuffer:(SharedBuffer&amp;)memoryMappedSharedBuffer
-{
-    ASSERT(memoryMappedSharedBuffer.isMemoryMapped());
-    self = [super init];
-
-    if (!self)
-        return nil;
-
-    sharedBuffer = &amp;memoryMappedSharedBuffer;
-    return self;
-}
-#endif
-
</del><span class="cx"> - (NSUInteger)length
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    if (sharedBuffer)
-        return sharedBuffer-&gt;size();
-#endif
</del><span class="cx">     return sharedBufferDataBuffer-&gt;data.size();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (const void *)bytes
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    if (sharedBuffer)
-        return sharedBuffer-&gt;data();
-#endif
</del><span class="cx">     return sharedBufferDataBuffer-&gt;data.data();
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -146,11 +118,6 @@
</span><span class="cx">     if (CFDataRef cfData = existingCFData())
</span><span class="cx">         return cfData;
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    if (isMemoryMapped())
-        return adoptCF((CFDataRef)adoptNS([[WebCoreSharedBufferData alloc] initWithMemoryMappedSharedBuffer:*this]).leakRef());
-#endif
-
</del><span class="cx">     data(); // Force data into m_buffer from segments or data array.
</span><span class="cx">     return adoptCF((CFDataRef)adoptNS([[WebCoreSharedBufferData alloc] initWithSharedBufferDataBuffer:m_buffer.get()]).leakRef());
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/ChangeLog        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2014-09-04  Pratik Solanki  &lt;psolanki@apple.com&gt;
+
+        Remove iOS specific disk image cache
+        https://bugs.webkit.org/show_bug.cgi?id=136517
+
+        Reviewed by Antti Koivisto.
+
+        Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
+        this now since we don't enable it in WebKit2 on iOS.
+
+        * WebKit.xcodeproj/project.pbxproj:
+
</ins><span class="cx"> 2014-08-29  Csaba Osztrogonác  &lt;ossy@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviwed, remove empty directories.
</span></span></pre></div>
<a id="trunkSourceWebKitWebKitxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -358,8 +358,6 @@
</span><span class="cx">                 A10C1D631820300E0036883A /* WebCaretChangeListener.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D491820300E0036883A /* WebCaretChangeListener.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 A10C1D641820300E0036883A /* WebChromeClientIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D4A1820300E0036883A /* WebChromeClientIOS.h */; };
</span><span class="cx">                 A10C1D651820300E0036883A /* WebChromeClientIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = A10C1D4B1820300E0036883A /* WebChromeClientIOS.mm */; };
</span><del>-                A10C1D661820300E0036883A /* WebDiskImageCacheClientIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D4C1820300E0036883A /* WebDiskImageCacheClientIOS.h */; };
-                A10C1D671820300E0036883A /* WebDiskImageCacheClientIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = A10C1D4D1820300E0036883A /* WebDiskImageCacheClientIOS.mm */; };
</del><span class="cx">                 A10C1D681820300E0036883A /* WebFixedPositionContent.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D4E1820300E0036883A /* WebFixedPositionContent.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 A10C1D691820300E0036883A /* WebFixedPositionContent.mm in Sources */ = {isa = PBXBuildFile; fileRef = A10C1D4F1820300E0036883A /* WebFixedPositionContent.mm */; };
</span><span class="cx">                 A10C1D6A1820300E0036883A /* WebFixedPositionContentInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D501820300E0036883A /* WebFixedPositionContentInternal.h */; };
</span><span class="lines">@@ -744,8 +742,6 @@
</span><span class="cx">                 A10C1D491820300E0036883A /* WebCaretChangeListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebCaretChangeListener.h; path = ios/WebCoreSupport/WebCaretChangeListener.h; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D4A1820300E0036883A /* WebChromeClientIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebChromeClientIOS.h; path = ios/WebCoreSupport/WebChromeClientIOS.h; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D4B1820300E0036883A /* WebChromeClientIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WebChromeClientIOS.mm; path = ios/WebCoreSupport/WebChromeClientIOS.mm; sourceTree = SOURCE_ROOT; };
</span><del>-                A10C1D4C1820300E0036883A /* WebDiskImageCacheClientIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebDiskImageCacheClientIOS.h; path = ios/WebCoreSupport/WebDiskImageCacheClientIOS.h; sourceTree = SOURCE_ROOT; };
-                A10C1D4D1820300E0036883A /* WebDiskImageCacheClientIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WebDiskImageCacheClientIOS.mm; path = ios/WebCoreSupport/WebDiskImageCacheClientIOS.mm; sourceTree = SOURCE_ROOT; };
</del><span class="cx">                 A10C1D4E1820300E0036883A /* WebFixedPositionContent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebFixedPositionContent.h; path = ios/WebCoreSupport/WebFixedPositionContent.h; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D4F1820300E0036883A /* WebFixedPositionContent.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WebFixedPositionContent.mm; path = ios/WebCoreSupport/WebFixedPositionContent.mm; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D501820300E0036883A /* WebFixedPositionContentInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebFixedPositionContentInternal.h; path = ios/WebCoreSupport/WebFixedPositionContentInternal.h; sourceTree = SOURCE_ROOT; };
</span><span class="lines">@@ -1440,8 +1436,6 @@
</span><span class="cx">                                 A10C1D491820300E0036883A /* WebCaretChangeListener.h */,
</span><span class="cx">                                 A10C1D4A1820300E0036883A /* WebChromeClientIOS.h */,
</span><span class="cx">                                 A10C1D4B1820300E0036883A /* WebChromeClientIOS.mm */,
</span><del>-                                A10C1D4C1820300E0036883A /* WebDiskImageCacheClientIOS.h */,
-                                A10C1D4D1820300E0036883A /* WebDiskImageCacheClientIOS.mm */,
</del><span class="cx">                                 A10C1D4E1820300E0036883A /* WebFixedPositionContent.h */,
</span><span class="cx">                                 A10C1D4F1820300E0036883A /* WebFixedPositionContent.mm */,
</span><span class="cx">                                 A10C1D501820300E0036883A /* WebFixedPositionContentInternal.h */,
</span><span class="lines">@@ -1688,7 +1682,6 @@
</span><span class="cx">                                 7C01CB85173435C900C5D807 /* PopupMenuMac.h in Headers */,
</span><span class="cx">                                 A10C1D1E18202F9C0036883A /* WebDefaultUIKitDelegate.h in Headers */,
</span><span class="cx">                                 1A2DBE9F0F251E3A0036F8A6 /* ProxyInstance.h in Headers */,
</span><del>-                                A10C1D661820300E0036883A /* WebDiskImageCacheClientIOS.h in Headers */,
</del><span class="cx">                                 E169836211346D1B00894115 /* ProxyRuntimeObject.h in Headers */,
</span><span class="cx">                                 7C01CB87173435C900C5D807 /* SearchPopupMenuMac.h in Headers */,
</span><span class="cx">                                 A10C1D6F1820300E0036883A /* WebGeolocationInternal.h in Headers */,
</span><span class="lines">@@ -2192,7 +2185,6 @@
</span><span class="cx">                                 939811130824BF01008DF038 /* WebHistory.mm in Sources */,
</span><span class="cx">                                 939810BD0824BF01008DF038 /* WebHistoryItem.mm in Sources */,
</span><span class="cx">                                 1AAF5FC00EDE3A92008D883D /* WebHostedNetscapePluginView.mm in Sources */,
</span><del>-                                A10C1D671820300E0036883A /* WebDiskImageCacheClientIOS.mm in Sources */,
</del><span class="cx">                                 939810F30824BF01008DF038 /* WebHTMLRepresentation.mm in Sources */,
</span><span class="cx">                                 939810F40824BF01008DF038 /* WebHTMLView.mm in Sources */,
</span><span class="cx">                                 A10C1D7F1820303D0036883A /* WebFrameViewWAKCompatibility.m in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebKitiosChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/ChangeLog (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/ChangeLog        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/ios/ChangeLog        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2014-09-04  Pratik Solanki  &lt;psolanki@apple.com&gt;
+
+        Remove iOS specific disk image cache
+        https://bugs.webkit.org/show_bug.cgi?id=136517
+
+        Reviewed by Antti Koivisto.
+
+        Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
+        this now since we don't enable it in WebKit2 on iOS.
+
+        * WebCoreSupport/WebDiskImageCacheClientIOS.h: Removed.
+        * WebCoreSupport/WebDiskImageCacheClientIOS.mm: Removed.
+        * WebView/WebPDFViewPlaceholder.mm:
+        (-[WebPDFViewPlaceholder finishedLoadingWithDataSource:]):
+        (-[WebPDFViewPlaceholder dataSourceMemoryMapped]): Deleted.
+        (-[WebPDFViewPlaceholder dataSourceMemoryMapFailed]): Deleted.
+
</ins><span class="cx"> 2014-08-31  Tim Horton  &lt;timothy_horton@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove unnecessary (and unnecessarily iOS-specific) setStrokeAndFillColor
</span></span></pre></div>
<a id="trunkSourceWebKitiosWebCoreSupportWebDiskImageCacheClientIOSh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -1,39 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-
-#import &lt;WebCore/DiskImageCacheClientIOS.h&gt;
-
-class WebDiskImageCacheClient final : public WebCore::DiskImageCacheClient {
-public:
-    static PassRefPtr&lt;WebDiskImageCacheClient&gt; create() { return adoptRef(new WebDiskImageCacheClient()); }
-private:
-    virtual void didCreateDiskImageCacheDirectory(const WTF::String&amp; directory) override;
-};
-
-void WebKitInitializeWebDiskImageCache();
-
-#endif
</del></span></pre></div>
<a id="trunkSourceWebKitiosWebCoreSupportWebDiskImageCacheClientIOSmm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.mm (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.mm        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/ios/WebCoreSupport/WebDiskImageCacheClientIOS.mm        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -1,108 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import &quot;WebDiskImageCacheClientIOS.h&quot;
-
-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-
-#import &quot;WebPreferences.h&quot;
-#import &quot;WebPreferencesPrivate.h&quot;
-#import &lt;WebCore/DiskImageCacheIOS.h&gt;
-#import &lt;sys/param.h&gt;
-
-using namespace WebCore;
-
-void WebDiskImageCacheClient::didCreateDiskImageCacheDirectory(const WTF::String&amp; directory)
-{
-    // Set the NSFileProtectionComplete attribute on the directory so that its contents are inaccessible when the device is locked.
-    NSError *error = nil;
-    NSString *directoryPath = directory;
-    NSDictionary *attributes = @{NSFileProtectionKey: NSFileProtectionComplete};
-    if (![[NSFileManager defaultManager] setAttributes:attributes ofItemAtPath:directoryPath error:&amp;error])
-        NSLog(@&quot;DiskImageCache: Failed to set attributes on disk image cache directory: %@&quot;, error);
-
-    WebPreferences *standardPreferences = [WebPreferences standardPreferences];
-    ASSERT(![[standardPreferences _diskImageCacheSavedCacheDirectory] length]);
-    [standardPreferences _setDiskImageCacheSavedCacheDirectory:directory];
-}
-
-static void removeOldDiskImageCacheDirectory()
-{
-    WebPreferences *standardPreferences = [WebPreferences standardPreferences];
-    NSString *oldDirectory = [standardPreferences _diskImageCacheSavedCacheDirectory];
-    [standardPreferences _setDiskImageCacheSavedCacheDirectory:@&quot;&quot;];
-
-    if (![oldDirectory length])
-        return;
-
-    const char* oldDirectoryCString = [oldDirectory fileSystemRepresentation];
-    const size_t length = strlen(oldDirectoryCString) + 1; // For NULL terminator.
-    ASSERT(length &lt; MAXPATHLEN);
-    if (length &gt;= MAXPATHLEN)
-        return;
-
-    // This deletes whatever directory was named in the user defaults key.
-    // To be safe, we resolve the absolute path, and verify that the
-    // last path component starts with &quot;DiskImageCache&quot;.
-
-    // Resolve the old directory path to an absolute path.
-    Vector&lt;char, MAXPATHLEN&gt; path(length);
-    memcpy(path.data(), oldDirectoryCString, length);
-    char absolutePath[MAXPATHLEN];
-    if (!realpath(path.data(), absolutePath)) {
-        NSLog(@&quot;DiskImageCache: Could not resolve the absolute path of the old directory.&quot;);
-        return;
-    }
-
-    // Verify the last path component starts with &quot;DiskImageCache&quot;.
-    const size_t absoluteLength = strlen(absolutePath);
-    NSString *resolvedAbsolutePath = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:absolutePath length:absoluteLength];
-    NSString *prefix = @&quot;DiskImageCache&quot;;
-    if (![[resolvedAbsolutePath lastPathComponent] hasPrefix:prefix]) {
-        NSLog(@&quot;DiskImageCache: The old directory did not start with the proper prefix.&quot;);
-        return;
-    }
-
-    dispatch_async(dispatch_get_global_queue(0, 0), ^{
-        NSError *error;
-        if (![[NSFileManager defaultManager] removeItemAtPath:oldDirectory error:&amp;error])
-            NSLog(@&quot;DiskImageCache: Failed to Remove Old Directory: %@&quot;, [error localizedFailureReason]);
-    });
-}
-
-void WebKitInitializeWebDiskImageCache()
-{
-    static bool initialized = false;
-    if (initialized)
-        return;
-    initialized = true;
-
-    removeOldDiskImageCacheDirectory();
-
-    RefPtr&lt;WebDiskImageCacheClient&gt; sharedClient = WebDiskImageCacheClient::create();
-    diskImageCache().setClient(sharedClient.release());
-}
-
-#endif // ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
</del></span></pre></div>
<a id="trunkSourceWebKitiosWebViewWebPDFViewPlaceholdermm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/WebView/WebPDFViewPlaceholder.mm (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebView/WebPDFViewPlaceholder.mm        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/ios/WebView/WebPDFViewPlaceholder.mm        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -249,32 +249,6 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#pragma mark WebDataSourcePrivateDelegate protocol
-
-#if ENABLE(DISK_IMAGE_CACHE)
-- (void)dataSourceMemoryMapped
-{
-    _didFinishLoadAndMemoryMap = YES;
-
-    CGDataProviderRef provider = CGDataProviderCreateWithCFData((CFDataRef)[_dataSource data]);
-    if (!provider)
-        return;
-
-    _document = CGPDFDocumentCreateWithProvider(provider);
-
-    // Dump the data provider as soon as possible since the CGPDFDocument will not hold onto it.
-    CGDataProviderRelease(provider);
-
-    [self _doPostLoadOrUnlockTasks];
-}
-
-- (void)dataSourceMemoryMapFailed
-{
-    // Nothing we can do about this, just do what we would normally do in memory.
-    [self dataSourceMemoryMapped];
-}
-#endif
-
</del><span class="cx"> #pragma mark WebDocumentRepresentation protocol
</span><span class="cx"> 
</span><span class="cx"> - (void)receivedData:(NSData *)data withDataSource:(WebDataSource *)dataSource
</span><span class="lines">@@ -302,13 +276,6 @@
</span><span class="cx"> - (void)finishedLoadingWithDataSource:(WebDataSource *)dataSource
</span><span class="cx"> {
</span><span class="cx">     [self dataSourceUpdated:dataSource];
</span><del>-
-#if ENABLE(DISK_IMAGE_CACHE)
-    [dataSource setDataSourceDelegate:(NSObject&lt;WebDataSourcePrivateDelegate&gt; *)self];
-    [dataSource _setAllowToBeMemoryMapped];
-#else
-    [self dataSourceMemoryMapped];
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (BOOL)canProvideDocumentSource
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/mac/ChangeLog        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -1,3 +1,38 @@
</span><ins>+2014-09-04  Pratik Solanki  &lt;psolanki@apple.com&gt;
+
+        Remove iOS specific disk image cache
+        https://bugs.webkit.org/show_bug.cgi?id=136517
+
+        Reviewed by Antti Koivisto.
+
+        Disk image cache code unnecessarily complicates SharedBuffer implementation. We can remove
+        this now since we don't enable it in WebKit2 on iOS.
+
+        * Misc/WebCache.mm:
+        (+[WebCache statistics]):
+        * WebView/WebDataSource.mm:
+        (-[WebDataSource _setAllowToBeMemoryMapped]):
+        (-[WebDataSource setDataSourceDelegate:]):
+        (-[WebDataSource dataSourceDelegate]):
+        (-[WebDataSource dealloc]):
+        (BufferMemoryMapped): Deleted.
+        * WebView/WebPreferenceKeysPrivate.h:
+        * WebView/WebPreferences.mm:
+        (+[WebPreferences initialize]):
+        (-[WebPreferences diskImageCacheEnabled]): Deleted.
+        (-[WebPreferences setDiskImageCacheEnabled:]): Deleted.
+        (-[WebPreferences diskImageCacheMinimumImageSize]): Deleted.
+        (-[WebPreferences setDiskImageCacheMinimumImageSize:]): Deleted.
+        (-[WebPreferences diskImageCacheMaximumCacheSize]): Deleted.
+        (-[WebPreferences setDiskImageCacheMaximumCacheSize:]): Deleted.
+        (-[WebPreferences _diskImageCacheSavedCacheDirectory]): Deleted.
+        (-[WebPreferences _setDiskImageCacheSavedCacheDirectory:]): Deleted.
+        * WebView/WebPreferencesPrivate.h:
+        * WebView/WebView.mm:
+        (-[WebView _commonInitializationWithFrameName:groupName:]):
+        (+[WebView _handleMemoryWarning]):
+        (-[WebView _preferencesChanged:]):
+
</ins><span class="cx"> 2014-09-04  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [iOS] Make iOS build when ENABLE_TOUCH_EVENT and ENABLE_IOS_TOUCH_EVENTS disabled
</span></span></pre></div>
<a id="trunkSourceWebKitmacMiscWebCachemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Misc/WebCache.mm (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Misc/WebCache.mm        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/mac/Misc/WebCache.mm        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -108,18 +108,6 @@
</span><span class="cx"> #endif
</span><span class="cx">             [NSNumber numberWithInt:s.scripts.decodedSize], @&quot;JavaScript&quot;,
</span><span class="cx">             nil],
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-        [NSDictionary dictionaryWithObjectsAndKeys:
-            [NSNumber numberWithInt:s.images.mappedSize], @&quot;Images&quot;,
-            [NSNumber numberWithInt:s.cssStyleSheets.mappedSize] ,@&quot;CSS&quot;,
-#if ENABLE(XSLT)
-            [NSNumber numberWithInt:s.xslStyleSheets.mappedSize], @&quot;XSL&quot;,
-#else
-            [NSNumber numberWithInt:0], @&quot;XSL&quot;,
-#endif
-            [NSNumber numberWithInt:s.scripts.mappedSize], @&quot;JavaScript&quot;,
-            nil],
-#endif // ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
</del><span class="cx">         nil];
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebDataSourcemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebDataSource.mm (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebDataSource.mm        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/mac/WebView/WebDataSource.mm        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -112,17 +112,6 @@
</span><span class="cx">     return reinterpret_cast&lt;WebDataSourcePrivate*&gt;(privateAttribute);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-static void BufferMemoryMapped(PassRefPtr&lt;SharedBuffer&gt; buffer, SharedBuffer::CompletionStatus mapStatus, SharedBuffer::MemoryMappedNotifyCallbackData data)
-{
-    NSObject&lt;WebDataSourcePrivateDelegate&gt; *delegate = [(WebDataSource *)data dataSourceDelegate];
-    if (mapStatus == SharedBuffer::Succeeded)
-        [delegate dataSourceMemoryMapped];
-    else
-        [delegate dataSourceMemoryMapFailed];
-}
-#endif
-
</del><span class="cx"> @interface WebDataSource (WebFileInternal)
</span><span class="cx"> @end
</span><span class="cx"> 
</span><span class="lines">@@ -234,50 +223,15 @@
</span><span class="cx"> 
</span><span class="cx"> - (void)_setAllowToBeMemoryMapped
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-    RefPtr&lt;ResourceBuffer&gt; mainResourceBuffer = toPrivate(_private)-&gt;loader-&gt;mainResourceData();
-    if (!mainResourceBuffer)
-        return;
-
-    RefPtr&lt;SharedBuffer&gt; mainResourceData = mainResourceBuffer-&gt;sharedBuffer();
-    if (!mainResourceData)
-        return;
-
-    if (mainResourceData-&gt;memoryMappedNotificationCallback() != BufferMemoryMapped) {
-        ASSERT(!mainResourceData-&gt;memoryMappedNotificationCallback() &amp;&amp; !mainResourceData-&gt;memoryMappedNotificationCallbackData());
-        mainResourceData-&gt;setMemoryMappedNotificationCallback(BufferMemoryMapped, self);
-    }
-
-    switch (mainResourceData-&gt;allowToBeMemoryMapped()) {
-    case SharedBuffer::SuccessAlreadyMapped:
-        [[self dataSourceDelegate] dataSourceMemoryMapped];
-        return;
-    case SharedBuffer::PreviouslyQueuedForMapping:
-    case SharedBuffer::QueuedForMapping:
-        return;
-    case SharedBuffer::FailureCacheFull:
-        [[self dataSourceDelegate] dataSourceMemoryMapFailed];
-        return;
-    }
-    ASSERT_NOT_REACHED();
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (void)setDataSourceDelegate:(NSObject&lt;WebDataSourcePrivateDelegate&gt; *)delegate
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-    ASSERT(!toPrivate(_private)-&gt;_dataSourceDelegate);
-    toPrivate(_private)-&gt;_dataSourceDelegate = delegate;
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> - (NSObject&lt;WebDataSourcePrivateDelegate&gt; *)dataSourceDelegate
</span><span class="cx"> {
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-    return toPrivate(_private)-&gt;_dataSourceDelegate;
-#else
</del><span class="cx">     return nullptr;
</span><del>-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> @end
</span><span class="lines">@@ -480,24 +434,6 @@
</span><span class="cx">     if (toPrivate(_private) &amp;&amp; toPrivate(_private)-&gt;includedInWebKitStatistics)
</span><span class="cx">         --WebDataSourceCount;
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-    // The code to remove memory mapped notification is only needed when we are viewing a PDF file.
-    // In such a case, WebPDFViewPlaceholder sets itself as the dataSourceDelegate. Guard the access
-    // to mainResourceData with this nil check so that we avoid assertions due to the resource being
-    // made purgeable.
-    if (_private &amp;&amp; [self dataSourceDelegate]) {
-        RefPtr&lt;ResourceBuffer&gt; mainResourceBuffer = toPrivate(_private)-&gt;loader-&gt;mainResourceData();
-        if (mainResourceBuffer) {
-            RefPtr&lt;SharedBuffer&gt; mainResourceData = mainResourceBuffer-&gt;sharedBuffer();
-            if (mainResourceData &amp;&amp; 
-                mainResourceData-&gt;memoryMappedNotificationCallbackData() == self &amp;&amp;
-                mainResourceData-&gt;memoryMappedNotificationCallback() == BufferMemoryMapped) {
-                mainResourceData-&gt;setMemoryMappedNotificationCallback(nullptr, nullptr);
-            }
-        }
-    }
-#endif
-    
</del><span class="cx"> #if USE(QUICK_LOOK)
</span><span class="cx">     // Added in -[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:].
</span><span class="cx">     if (NSURL *url = [[self response] URL])
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebPreferenceKeysPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -187,9 +187,4 @@
</span><span class="cx"> #define WebKitNetworkInterfaceNamePreferenceKey @&quot;WebKitNetworkInterfaceNamePreferenceKey&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#define WebKitDiskImageCacheEnabledPreferenceKey @&quot;WebKitDiskImageCacheEnabled&quot;
-#define WebKitDiskImageCacheMinimumImageSizePreferenceKey @&quot;WebKitDiskImageCacheMinimumImageSize&quot;
-#define WebKitDiskImageCacheMaximumCacheSizePreferenceKey @&quot;WebKitDiskImageCacheMaximumCacheSize&quot;
-#define WebKitDiskImageCacheSavedCacheDirectoryKey @&quot;WebKitDiskImageCacheSavedCacheDirectory&quot;
-
</del><span class="cx"> #define WebKitEnableInheritURIQueryComponentPreferenceKey @&quot;WebKitEnableInheritURIQueryComponent&quot;
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebPreferencesmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebPreferences.mm (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebPreferences.mm        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/mac/WebView/WebPreferences.mm        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -565,11 +565,6 @@
</span><span class="cx"> #if ENABLE(IOS_TEXT_AUTOSIZING)
</span><span class="cx">         [NSNumber numberWithFloat:WKGetMinimumZoomFontSize()], WebKitMinimumZoomFontSizePreferenceKey,
</span><span class="cx"> #endif
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-        [NSNumber numberWithBool:YES], WebKitDiskImageCacheEnabledPreferenceKey,
-        [NSNumber numberWithUnsignedInt:(100 * 1024)], WebKitDiskImageCacheMinimumImageSizePreferenceKey,
-        [NSNumber numberWithUnsignedInt:(100 * 1024 * 1024)], WebKitDiskImageCacheMaximumCacheSizePreferenceKey,
-#endif
</del><span class="cx">         [NSNumber numberWithLongLong:ApplicationCacheStorage::noQuota()], WebKitApplicationCacheTotalQuota,
</span><span class="cx">         [NSNumber numberWithLongLong:ApplicationCacheStorage::noQuota()], WebKitApplicationCacheDefaultOriginQuota,
</span><span class="cx">         [NSNumber numberWithBool:YES],  WebKitQTKitEnabledPreferenceKey,
</span><span class="lines">@@ -1909,48 +1904,6 @@
</span><span class="cx">     [self _setBoolValue:enabled forKey:WebKitAccelerated2dCanvasEnabledPreferenceKey];
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-- (BOOL)diskImageCacheEnabled
-{
-    return [self _boolValueForKey:WebKitDiskImageCacheEnabledPreferenceKey];
-}
-
-- (void)setDiskImageCacheEnabled:(BOOL)enabled
-{
-    [self _setBoolValue:enabled forKey:WebKitDiskImageCacheEnabledPreferenceKey];
-}
-
-- (unsigned)diskImageCacheMinimumImageSize
-{
-    return [self _integerValueForKey:WebKitDiskImageCacheMinimumImageSizePreferenceKey];
-}
-
-- (void)setDiskImageCacheMinimumImageSize:(unsigned)minimumSize
-{
-    [self _setIntegerValue:minimumSize forKey:WebKitDiskImageCacheMinimumImageSizePreferenceKey];
-}
-
-- (unsigned)diskImageCacheMaximumCacheSize
-{
-    return [self _integerValueForKey:WebKitDiskImageCacheMaximumCacheSizePreferenceKey];
-}
-
-- (void)setDiskImageCacheMaximumCacheSize:(unsigned)maximumSize
-{
-    [self _setIntegerValue:maximumSize forKey:WebKitDiskImageCacheMaximumCacheSizePreferenceKey];
-}
-
-- (NSString *)_diskImageCacheSavedCacheDirectory
-{
-    return [[self _stringValueForKey:WebKitDiskImageCacheSavedCacheDirectoryKey] stringByStandardizingPath];
-}
-
-- (void)_setDiskImageCacheSavedCacheDirectory:(NSString *)path
-{
-    [self _setStringValue:[path stringByStandardizingPath] forKey:WebKitDiskImageCacheSavedCacheDirectoryKey];
-}
-#endif // ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-
</del><span class="cx"> - (BOOL)isFrameFlatteningEnabled
</span><span class="cx"> {
</span><span class="cx">     return [self _boolValueForKey:WebKitFrameFlatteningEnabledPreferenceKey];
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebPreferencesPrivateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -271,18 +271,6 @@
</span><span class="cx"> - (void)_setMinimumZoomFontSize:(float)size;
</span><span class="cx"> - (float)_minimumZoomFontSize;
</span><span class="cx"> 
</span><del>-- (BOOL)diskImageCacheEnabled;
-- (void)setDiskImageCacheEnabled:(BOOL)enabled;
-
-- (unsigned)diskImageCacheMinimumImageSize;
-- (void)setDiskImageCacheMinimumImageSize:(unsigned)minimumSize;
-
-- (unsigned)diskImageCacheMaximumCacheSize;
-- (void)setDiskImageCacheMaximumCacheSize:(unsigned)maximumSize;
-
-- (NSString *)_diskImageCacheSavedCacheDirectory;
-- (void)_setDiskImageCacheSavedCacheDirectory:(NSString *)path;
-
</del><span class="cx"> - (void)setMediaPlaybackAllowsAirPlay:(BOOL)flag;
</span><span class="cx"> - (BOOL)mediaPlaybackAllowsAirPlay;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (173264 => 173265)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2014-09-04 17:21:39 UTC (rev 173264)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2014-09-04 17:36:21 UTC (rev 173265)
</span><span class="lines">@@ -254,11 +254,6 @@
</span><span class="cx"> #import &lt;WebKitLegacy/WebDashboardRegion.h&gt;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-#import &quot;WebDiskImageCacheClientIOS.h&quot;
-#import &lt;WebCore/DiskImageCacheIOS.h&gt;
-#endif
-
</del><span class="cx"> #if ENABLE(REMOTE_INSPECTOR)
</span><span class="cx"> #import &lt;JavaScriptCore/RemoteInspector.h&gt;
</span><span class="cx"> #if PLATFORM(IOS)
</span><span class="lines">@@ -278,11 +273,6 @@
</span><span class="cx"> #import &lt;WebCore/WebEventRegion.h&gt;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-#import &quot;WebDiskImageCacheClientIOS.h&quot;
-#import &lt;WebCore/DiskImageCacheIOS.h&gt;
-#endif
-
</del><span class="cx"> #if ENABLE(GAMEPAD)
</span><span class="cx"> #import &lt;WebCore/HIDGamepadProvider.h&gt;
</span><span class="cx"> #endif
</span><span class="lines">@@ -903,9 +893,6 @@
</span><span class="cx"> #endif
</span><span class="cx">         WebKitInitializeStorageIfNecessary();
</span><span class="cx">         WebKitInitializeApplicationCachePathIfNecessary();
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-        WebKitInitializeWebDiskImageCache();
-#endif
</del><span class="cx"> #if ENABLE(GAMEPAD)
</span><span class="cx">         WebKitInitializeGamepadProviderIfNecessary();
</span><span class="cx"> #endif
</span><span class="lines">@@ -1230,13 +1217,6 @@
</span><span class="cx"> 
</span><span class="cx">     tileControllerMemoryHandler().trimUnparentedTilesToTarget(0);
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE)
-    {
-        WebKit::MemoryMeasure measurer(&quot;Memory warning: flushing images to disk.&quot;);
-        WebCore::memoryCache()-&gt;flushCachedImagesToDisk();
-    }
-#endif
-
</del><span class="cx">     [WebStorageManager closeIdleLocalStorageDatabases];
</span><span class="cx"> 
</span><span class="cx">     [WebView _releaseMemoryNow];
</span><span class="lines">@@ -2409,13 +2389,6 @@
</span><span class="cx">     if (_private-&gt;zoomsTextOnly != zoomsTextOnly)
</span><span class="cx">         [self _setZoomMultiplier:_private-&gt;zoomMultiplier isTextOnly:zoomsTextOnly];
</span><span class="cx"> 
</span><del>-#if ENABLE(DISK_IMAGE_CACHE) &amp;&amp; PLATFORM(IOS)
-    DiskImageCache&amp; diskImageCache = WebCore::diskImageCache();
-    diskImageCache.setEnabled([preferences diskImageCacheEnabled]);
-    diskImageCache.setMinimumImageSize([preferences diskImageCacheMinimumImageSize]);
-    diskImageCache.setMaximumCacheSize([preferences diskImageCacheMaximumCacheSize]);
-#endif
-
</del><span class="cx"> #if PLATFORM(IOS)
</span><span class="cx">     [[self window] setTileBordersVisible:[preferences showDebugBorders]];
</span><span class="cx">     [[self window] setTilePaintCountsVisible:[preferences showRepaintCounter]];
</span></span></pre>
</div>
</div>

</body>
</html>