OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 // FontFace::LoadFontCallback | 96 // FontFace::LoadFontCallback |
97 void notifyLoaded(FontFace*) override; | 97 void notifyLoaded(FontFace*) override; |
98 void notifyError(FontFace*) override; | 98 void notifyError(FontFace*) override; |
99 | 99 |
100 size_t approximateBlankCharacterCount() const; | 100 size_t approximateBlankCharacterCount() const; |
101 | 101 |
102 // ActiveDOMObject | 102 // ActiveDOMObject |
103 void suspend() override; | 103 void suspend() override; |
104 void resume() override; | 104 void resume() override; |
105 void stop() override; | 105 void contextDestroyed() override; |
106 | 106 |
107 static FontFaceSet* from(Document&); | 107 static FontFaceSet* from(Document&); |
108 static void didLayout(Document&); | 108 static void didLayout(Document&); |
109 static size_t approximateBlankCharacterCount(Document&); | 109 static size_t approximateBlankCharacterCount(Document&); |
110 | 110 |
111 static const char* supplementName() { return "FontFaceSet"; } | 111 static const char* supplementName() { return "FontFaceSet"; } |
112 | 112 |
113 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*); | 113 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*); |
114 | 114 |
115 DECLARE_VIRTUAL_TRACE(); | 115 DECLARE_VIRTUAL_TRACE(); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; | 185 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; |
186 | 186 |
187 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; | 187 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; |
188 | 188 |
189 FontLoadHistogram m_histogram; | 189 FontLoadHistogram m_histogram; |
190 }; | 190 }; |
191 | 191 |
192 } // namespace blink | 192 } // namespace blink |
193 | 193 |
194 #endif // FontFaceSet_h | 194 #endif // FontFaceSet_h |
OLD | NEW |