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

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

Issue 783423003: Make ScriptPromiseResolver RefCountedWillBeRefCountedGarbageCollected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP: 1st trial Created 6 years 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
OLDNEW
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 void fireLoadingEvent(); 143 void fireLoadingEvent();
144 void fireDoneEventIfPossible(); 144 void fireDoneEventIfPossible();
145 bool resolveFontStyle(const String&, Font&); 145 bool resolveFontStyle(const String&, Font&);
146 void handlePendingEventsAndPromisesSoon(); 146 void handlePendingEventsAndPromisesSoon();
147 void handlePendingEventsAndPromises(); 147 void handlePendingEventsAndPromises();
148 const WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> >& cssConnectedFont FaceList() const; 148 const WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> >& cssConnectedFont FaceList() const;
149 bool isCSSConnectedFontFace(FontFace*) const; 149 bool isCSSConnectedFontFace(FontFace*) const;
150 150
151 WillBeHeapHashSet<RefPtrWillBeMember<FontFace> > m_loadingFonts; 151 WillBeHeapHashSet<RefPtrWillBeMember<FontFace> > m_loadingFonts;
152 bool m_shouldFireLoadingEvent; 152 bool m_shouldFireLoadingEvent;
153 Vector<OwnPtr<FontsReadyPromiseResolver> > m_readyResolvers; 153 WillBeHeapVector<OwnPtrWillBeMember<FontsReadyPromiseResolver> > m_readyReso lvers;
154 FontFaceArray m_loadedFonts; 154 FontFaceArray m_loadedFonts;
155 FontFaceArray m_failedFonts; 155 FontFaceArray m_failedFonts;
156 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces; 156 WillBeHeapListHashSet<RefPtrWillBeMember<FontFace> > m_nonCSSConnectedFaces;
157 157
158 AsyncMethodRunner<FontFaceSet> m_asyncRunner; 158 AsyncMethodRunner<FontFaceSet> m_asyncRunner;
159 159
160 FontLoadHistogram m_histogram; 160 FontLoadHistogram m_histogram;
161 }; 161 };
162 162
163 } // namespace blink 163 } // namespace blink
164 164
165 #endif // FontFaceSet_h 165 #endif // FontFaceSet_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698