Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: Source/WebCore/testing/Internals.cpp

Issue 7548016: Merge 92143 - .: REGRESSION (r39725?): Resources removed from document can not be freed until the... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/testing/Internals.h ('k') | Source/WebCore/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/testing/Internals.cpp
===================================================================
--- Source/WebCore/testing/Internals.cpp (revision 92202)
+++ Source/WebCore/testing/Internals.cpp (working copy)
@@ -31,6 +31,7 @@
#include "Element.h"
#include "ExceptionCode.h"
#include "InspectorController.h"
+#include "MemoryCache.h"
#include "NodeRenderingContext.h"
#include "Page.h"
#include "RenderTreeAsText.h"
@@ -136,6 +137,11 @@
return element->shadowPseudoId().string();
}
+void Internals::disableMemoryCache(bool disabled)
+{
+ WebCore::memoryCache()->setDisabled(disabled);
+}
+
#if ENABLE(INSPECTOR)
void Internals::setInspectorResourcesDataSizeLimits(Document* document, int maximumResourcesContentSize, int maximumSingleResourceContentSize, ExceptionCode& ec)
{
« no previous file with comments | « Source/WebCore/testing/Internals.h ('k') | Source/WebCore/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698