OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 bool isEmpty() const; | 67 bool isEmpty() const; |
68 | 68 |
69 virtual void registerForInvalidationCallbacks(FontSelectorClient*); | 69 virtual void registerForInvalidationCallbacks(FontSelectorClient*); |
70 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*); | 70 virtual void unregisterForInvalidationCallbacks(FontSelectorClient*); |
71 | 71 |
72 Document* document() const { return m_document; } | 72 Document* document() const { return m_document; } |
73 | 73 |
74 void beginLoadingFontSoon(FontResource*); | 74 void beginLoadingFontSoon(FontResource*); |
75 | 75 |
76 private: | 76 private: |
77 CSSFontSelector(Document*); | 77 explicit CSSFontSelector(Document*); |
78 | 78 |
79 void dispatchInvalidationCallbacks(); | 79 void dispatchInvalidationCallbacks(); |
80 | 80 |
81 void beginLoadTimerFired(Timer<CSSFontSelector>*); | 81 void beginLoadTimerFired(Timer<CSSFontSelector>*); |
82 | 82 |
83 Document* m_document; | 83 Document* m_document; |
84 HashMap<String, OwnPtr<Vector<RefPtr<CSSFontFace> > >, CaseFoldingHash> m_fo
ntFaces; | 84 HashMap<String, OwnPtr<Vector<RefPtr<CSSFontFace> > >, CaseFoldingHash> m_fo
ntFaces; |
85 HashMap<String, OwnPtr<Vector<RefPtr<CSSFontFace> > >, CaseFoldingHash> m_lo
callyInstalledFontFaces; | 85 HashMap<String, OwnPtr<Vector<RefPtr<CSSFontFace> > >, CaseFoldingHash> m_lo
callyInstalledFontFaces; |
86 HashMap<String, OwnPtr<HashMap<unsigned, RefPtr<CSSSegmentedFontFace> > >, C
aseFoldingHash> m_fonts; | 86 HashMap<String, OwnPtr<HashMap<unsigned, RefPtr<CSSSegmentedFontFace> > >, C
aseFoldingHash> m_fonts; |
87 HashSet<FontSelectorClient*> m_clients; | 87 HashSet<FontSelectorClient*> m_clients; |
88 | 88 |
89 Vector<ResourcePtr<FontResource> > m_fontsToBeginLoading; | 89 Vector<ResourcePtr<FontResource> > m_fontsToBeginLoading; |
90 Timer<CSSFontSelector> m_beginLoadingTimer; | 90 Timer<CSSFontSelector> m_beginLoadingTimer; |
91 | 91 |
92 unsigned m_version; | 92 unsigned m_version; |
93 }; | 93 }; |
94 | 94 |
95 } // namespace WebCore | 95 } // namespace WebCore |
96 | 96 |
97 #endif // CSSFontSelector_h | 97 #endif // CSSFontSelector_h |
OLD | NEW |