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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2728513002: Revert of Move the FontFaceCache stored in CSSFontSelector to be stored in Document. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3d72eb0d5f58abd4fa4a25164c8fca92fbca39bf..6a5d1cee16dcd80a5e82f980cc0b12abbbd8b548 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -461,13 +461,13 @@
m_viewportResolver = nullptr;
m_mediaQueryEvaluator = nullptr;
if (m_fontSelector)
- m_document->fontFaceCache()->clearAll();
+ m_fontSelector->fontFaceCache()->clearAll();
m_fontSelector = nullptr;
}
void StyleEngine::clearFontCache() {
if (m_fontSelector)
- m_document->fontFaceCache()->clearCSSConnected();
+ m_fontSelector->fontFaceCache()->clearCSSConnected();
if (m_resolver)
m_resolver->invalidateMatchedPropertiesCache();
}
@@ -491,7 +491,7 @@
if (!m_fontSelector)
return;
- FontFaceCache* cache = m_document->fontFaceCache();
+ FontFaceCache* cache = m_fontSelector->fontFaceCache();
for (const auto& rule : fontFaceRules)
cache->remove(rule);
if (m_resolver)
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698