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

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

Issue 211073002: [Oilpan]: Move CSSFontSelectorClient to the oilpan heap using transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding StyleEngine.cpp change (forgot to upload diff again with WTF change) Created 6 years, 9 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
Index: Source/core/css/CSSFontSelector.h
diff --git a/Source/core/css/CSSFontSelector.h b/Source/core/css/CSSFontSelector.h
index cb6e392f7fb8cc1d78b00ea150753f31df7f740e..e0b1d7a4321447eee3a59062701bc23560c911c4 100644
--- a/Source/core/css/CSSFontSelector.h
+++ b/Source/core/css/CSSFontSelector.h
@@ -28,6 +28,7 @@
#include "core/css/FontFaceCache.h"
#include "core/fetch/ResourcePtr.h"
+#include "heap/Handle.h"
#include "platform/Timer.h"
#include "platform/fonts/FontSelector.h"
#include "platform/fonts/GenericFontFamilySettings.h"
@@ -84,7 +85,9 @@ public:
virtual void fontCacheInvalidated() OVERRIDE;
void registerForInvalidationCallbacks(CSSFontSelectorClient*);
+#if !ENABLE(OILPAN)
void unregisterForInvalidationCallbacks(CSSFontSelectorClient*);
+#endif
Document* document() const { return m_document; }
FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
@@ -103,7 +106,7 @@ private:
Document* m_document;
// FIXME: Move to Document or StyleEngine.
FontFaceCache m_fontFaceCache;
- HashSet<CSSFontSelectorClient*> m_clients;
+ WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients;
FontLoader m_fontLoader;
GenericFontFamilySettings m_genericFontFamilySettings;
« no previous file with comments | « no previous file | Source/core/css/CSSFontSelector.cpp » ('j') | Source/core/css/resolver/ViewportStyleResolver.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698