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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 ExecutionContext* getExecutionContext() const override; | 82 ExecutionContext* getExecutionContext() const override; |
83 const AtomicString& interfaceName() const override; | 83 const AtomicString& interfaceName() const override; |
84 | 84 |
85 Document* document() const; | 85 Document* document() const; |
86 | 86 |
87 void didLayout(); | 87 void didLayout(); |
88 void beginFontLoading(FontFace*); | 88 void beginFontLoading(FontFace*); |
89 void fontLoaded(FontFace*); | 89 void fontLoaded(FontFace*); |
90 void loadError(FontFace*); | 90 void loadError(FontFace*); |
91 | 91 |
| 92 bool hasBlankText() const; |
| 93 |
92 // ActiveDOMObject | 94 // ActiveDOMObject |
93 void suspend() override; | 95 void suspend() override; |
94 void resume() override; | 96 void resume() override; |
95 void stop() override; | 97 void stop() override; |
96 | 98 |
97 static FontFaceSet* from(Document&); | 99 static FontFaceSet* from(Document&); |
98 static void didLayout(Document&); | 100 static void didLayout(Document&); |
| 101 static bool hasBlankText(Document&); |
99 | 102 |
100 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*); | 103 void addFontFacesToFontFaceCache(FontFaceCache*, CSSFontSelector*); |
101 | 104 |
102 DECLARE_VIRTUAL_TRACE(); | 105 DECLARE_VIRTUAL_TRACE(); |
103 | 106 |
104 private: | 107 private: |
105 static FontFaceSet* create(Document& document) | 108 static FontFaceSet* create(Document& document) |
106 { | 109 { |
107 return new FontFaceSet(document); | 110 return new FontFaceSet(document); |
108 } | 111 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; | 170 HeapListHashSet<Member<FontFace>> m_nonCSSConnectedFaces; |
168 | 171 |
169 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; | 172 Member<AsyncMethodRunner<FontFaceSet>> m_asyncRunner; |
170 | 173 |
171 FontLoadHistogram m_histogram; | 174 FontLoadHistogram m_histogram; |
172 }; | 175 }; |
173 | 176 |
174 } // namespace blink | 177 } // namespace blink |
175 | 178 |
176 #endif // FontFaceSet_h | 179 #endif // FontFaceSet_h |
OLD | NEW |