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

Side by Side Diff: sky/engine/core/css/CSSFontSelector.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/css/CSSFontFeatureValue.h ('k') | sky/engine/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*); 73 void unregisterForInvalidationCallbacks(CSSFontSelectorClient*);
74 #endif 74 #endif
75 75
76 Document* document() const { return m_document; } 76 Document* document() const { return m_document; }
77 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; } 77 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
78 FontLoader* fontLoader() { return m_fontLoader.get(); } 78 FontLoader* fontLoader() { return m_fontLoader.get(); }
79 79
80 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; } 80 const GenericFontFamilySettings& genericFontFamilySettings() const { return m_genericFontFamilySettings; }
81 void updateGenericFontFamilySettings(Document&); 81 void updateGenericFontFamilySettings(Document&);
82 82
83 virtual void trace(Visitor*);
84
85 private: 83 private:
86 explicit CSSFontSelector(Document*); 84 explicit CSSFontSelector(Document*);
87 85
88 void dispatchInvalidationCallbacks(); 86 void dispatchInvalidationCallbacks();
89 87
90 // 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
91 // currently leak because RenderStyle and its data are not on the heap. 89 // currently leak because RenderStyle and its data are not on the heap.
92 // See crbug.com/383860 for details. 90 // See crbug.com/383860 for details.
93 RawPtr<Document> m_document; 91 RawPtr<Document> m_document;
94 // FIXME: Move to Document or StyleEngine. 92 // FIXME: Move to Document or StyleEngine.
95 FontFaceCache m_fontFaceCache; 93 FontFaceCache m_fontFaceCache;
96 HashSet<RawPtr<CSSFontSelectorClient> > m_clients; 94 HashSet<RawPtr<CSSFontSelectorClient> > m_clients;
97 95
98 RefPtr<FontLoader> m_fontLoader; 96 RefPtr<FontLoader> m_fontLoader;
99 GenericFontFamilySettings m_genericFontFamilySettings; 97 GenericFontFamilySettings m_genericFontFamilySettings;
100 }; 98 };
101 99
102 } // namespace blink 100 } // namespace blink
103 101
104 #endif // CSSFontSelector_h 102 #endif // CSSFontSelector_h
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSFontFeatureValue.h ('k') | sky/engine/core/css/CSSFontSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698