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

Unified Diff: third_party/WebKit/Source/core/html/HTMLDocument.cpp

Issue 2202473002: DO NOT COMMIT: Experimental removal of encoded image data Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) Created 4 years, 3 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
Index: third_party/WebKit/Source/core/html/HTMLDocument.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLDocument.cpp b/third_party/WebKit/Source/core/html/HTMLDocument.cpp
index 1b81adc8e0a6b10cc278c98702eb7f9da89777c3..a748bb458f126087e4ff15c16d295e138dd1c340 100644
--- a/third_party/WebKit/Source/core/html/HTMLDocument.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLDocument.cpp
@@ -54,6 +54,7 @@
#include "bindings/core/v8/ScriptController.h"
#include "core/HTMLNames.h"
+#include "core/fetch/MemoryCache.h"
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLBodyElement.h"
@@ -197,4 +198,10 @@ void HTMLDocument::removeExtraNamedItem(const AtomicString& name)
removeItemFromMap(m_extraNamedItemCounts, name);
}
+void HTMLDocument::captureEvents()
+{
+ // Temporary hack to call pruneAll directly.
+ memoryCache()->pruneAll();
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLDocument.h ('k') | third_party/WebKit/Source/core/loader/ImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698