| 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 b225c0941afb20b79e1157522a89e75d7fd1788c..a708c8a72be49402c2b1954bd4468e06f505b74a 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
|
| @@ -451,7 +451,9 @@ void StyleEngine::didDetach() {
|
| m_activeTreeScopes.clear();
|
| m_viewportResolver = nullptr;
|
| m_mediaQueryEvaluator = nullptr;
|
| - clearFontCache();
|
| + if (m_fontSelector)
|
| + m_fontSelector->fontFaceCache()->clearAll();
|
| + m_fontSelector = nullptr;
|
| }
|
|
|
| void StyleEngine::clearFontCache() {
|
|
|