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

Unified Diff: Source/core/css/CSSFontSelector.cpp

Issue 227083006: [Oilpan]: Moving the FontSelector/FontCacheClient, CSSSegmentedFontFace, and FontFaceCache to the o… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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 | « Source/core/css/CSSFontSelector.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index 5ff2d00ac56d4a8157bfb853f548a7dcb59d96c0..1de90bee88fb2d815a29e6b6d003197a90e84334 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -121,7 +121,9 @@ CSSFontSelector::CSSFontSelector(Document* document)
CSSFontSelector::~CSSFontSelector()
{
clearDocument();
+#if !ENABLE(OILPAN)
FontCache::fontCache()->removeClient(this);
+#endif
}
void CSSFontSelector::registerForInvalidationCallbacks(CSSFontSelectorClient* client)
@@ -227,4 +229,11 @@ void CSSFontSelector::updateGenericFontFamilySettings(Document& document)
m_genericFontFamilySettings = document.settings()->genericFontFamilySettings();
}
+void CSSFontSelector::trace(Visitor* visitor)
+{
+ visitor->trace(m_fontFaceCache);
+ visitor->trace(m_clients);
+ visitor->trace(m_fontLoader);
+}
+
}
« no previous file with comments | « Source/core/css/CSSFontSelector.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698