| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 4d3879f0bf462007b32696b6634d67a7c6243500..dc9467a1d7cdd908e0a7c0ede66887bc3603ea40 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -5870,6 +5870,18 @@ void Document::enforceStrictMixedContentChecking()
|
| frame()->loader().client()->didEnforceStrictMixedContentChecking();
|
| }
|
|
|
| +void Document::purgeMemory(DeviceKind deviceKind)
|
| +{
|
| + m_styleEngine->purgeMemory(deviceKind);
|
| + if (&axObjectCacheOwner() == this)
|
| + clearAXObjectCache();
|
| + if (m_fetcher)
|
| + m_fetcher->purgeMemory();
|
| + m_selectorQueryCache.clear();
|
| + m_canvasFontCache.clear();
|
| + m_mediaQueryMatcher.clear();
|
| +}
|
| +
|
| DEFINE_TRACE(Document)
|
| {
|
| #if ENABLE(OILPAN)
|
|
|