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

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

Issue 18375005: [oilpan] Move CSSFontFace and CSSSegmentedFontFace to the managed heap (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 6 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/CSSFontFaceSource.h
diff --git a/Source/core/css/CSSFontFaceSource.h b/Source/core/css/CSSFontFaceSource.h
index 9e9f9ea9c3a4c1f19b66c4208e85920c7b5cc3fb..0576936c8b871521758cbd3ebf751a67ec8b4e7f 100644
--- a/Source/core/css/CSSFontFaceSource.h
+++ b/Source/core/css/CSSFontFaceSource.h
@@ -55,7 +55,7 @@ public:
const AtomicString& string() const { return m_string; }
- void setFontFace(CSSFontFace* face) { m_face = face; }
+ void setFontFace(Handle<CSSFontFace> face) { m_face = face; }
virtual void fontLoaded(CachedFont*);
@@ -78,7 +78,7 @@ private:
AtomicString m_string; // URI for remote, built-in font name for local.
CachedResourceHandle<CachedFont> m_font; // For remote fonts, a pointer to our cached resource.
- CSSFontFace* m_face; // Our owning font face.
+ Persistent<CSSFontFace> m_face; // Our owning font face.
Mads Ager (chromium) 2013/07/02 14:59:23 This looks like a definite leak. The CSSFontFace h
haraken 2013/07/03 04:39:20 Good point. Done.
HashMap<unsigned, RefPtr<SimpleFontData> > m_fontDataTable; // The hash key is composed of size synthetic styles.
#if ENABLE(SVG_FONTS)

Powered by Google App Engine
This is Rietveld 408576698