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

Side by Side Diff: Source/core/css/CSSFontSelector.h

Issue 953693002: InlinedVisitor: Migrate css to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); 69 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*);
70 #endif 70 #endif
71 71
72 Document* document() const { return m_document; } 72 Document* document() const { return m_document; }
73 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; } 73 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
74 FontLoader* fontLoader() { return m_fontLoader.get(); } 74 FontLoader* fontLoader() { return m_fontLoader.get(); }
75 75
76 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; } 76 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; }
77 void updateGenericFontFamilySettings(Document&); 77 void updateGenericFontFamilySettings(Document&);
78 78
79 virtual void trace(Visitor*) override; 79 DECLARE_VIRTUAL_TRACE();
80 80
81 protected: 81 protected:
82 explicit CSSFontSelector(Document*); 82 explicit CSSFontSelector(Document*);
83 83
84 private: 84 private:
85 85
86 void dispatchInvalidationCallbacks(); 86 void dispatchInvalidationCallbacks();
87 87
88 // FIXME: Oilpan: Ideally this should just be a traced Member but that will 88 // FIXME: Oilpan: Ideally this should just be a traced Member but that will
89 // currently leak because LayoutStyle and its data are not on the heap. 89 // currently leak because LayoutStyle and its data are not on the heap.
90 // See crbug.com/383860 for details. 90 // See crbug.com/383860 for details.
91 RawPtrWillBeWeakMember<Document> m_document; 91 RawPtrWillBeWeakMember<Document> m_document;
92 // FIXME: Move to Document or StyleEngine. 92 // FIXME: Move to Document or StyleEngine.
93 FontFaceCache m_fontFaceCache; 93 FontFaceCache m_fontFaceCache;
94 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients; 94 WillBeHeapHashSet<RawPtrWillBeWeakMember<CSSFontSelectorClient> > m_clients;
95 95
96 RefPtrWillBeMember<FontLoader> m_fontLoader; 96 RefPtrWillBeMember<FontLoader> m_fontLoader;
97 GenericFontFamilySettings m_genericFontFamilySettings; 97 GenericFontFamilySettings m_genericFontFamilySettings;
98 }; 98 };
99 99
100 } // namespace blink 100 } // namespace blink
101 101
102 #endif // CSSFontSelector_h 102 #endif // CSSFontSelector_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698