| 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 063abb03f90b2b3e0d45974732d43eafb74beb80..b5cf637144af79fe31b935b227ce0670efbc9ee6 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -5939,6 +5939,20 @@ LayoutViewItem Document::layoutViewItem() const
|
| return LayoutViewItem(m_layoutView);
|
| }
|
|
|
| +void Document::purgeMemory()
|
| +{
|
| + m_styleEngine->purgeMemory();
|
| + if (&axObjectCacheOwner() == this)
|
| + clearAXObjectCache();
|
| +
|
| + if (m_fetcher)
|
| + m_fetcher->purgeMemory();
|
| +
|
| + m_selectorQueryCache.reset();
|
| + m_canvasFontCache.clear();
|
| + m_mediaQueryMatcher.clear();
|
| +}
|
| +
|
| DEFINE_TRACE(Document)
|
| {
|
| visitor->trace(m_importsController);
|
|
|