| Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| index f6628b6448252e74358d5de8bdf1a83e0f12c688..4a9a73bf46cd73e282b3b891f1bc02cb6ae6bd96 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| @@ -811,6 +811,14 @@ void StyleEngine::keyframesRulesAdded()
|
| document().timeline().invalidateKeyframeEffects();
|
| }
|
|
|
| +void StyleEngine::purgeMemory()
|
| +{
|
| + clearFontCache();
|
| + clearResolver();
|
| + m_textToSheetCache.clear();
|
| + m_sheetToTextCache.clear();
|
| +}
|
| +
|
| DEFINE_TRACE(StyleEngine)
|
| {
|
| visitor->trace(m_document);
|
|
|