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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSFontSelector.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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) 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void CSSFontSelector::unregisterForInvalidationCallbacks(CSSFontSelectorClient* client) 74 void CSSFontSelector::unregisterForInvalidationCallbacks(CSSFontSelectorClient* client)
75 { 75 {
76 m_clients.remove(client); 76 m_clients.remove(client);
77 } 77 }
78 #endif 78 #endif
79 79
80 void CSSFontSelector::dispatchInvalidationCallbacks() 80 void CSSFontSelector::dispatchInvalidationCallbacks()
81 { 81 {
82 m_fontFaceCache.incrementVersion(); 82 m_fontFaceCache.incrementVersion();
83 83
84 WillBeHeapVector<RawPtrWillBeMember<CSSFontSelectorClient>> clients; 84 HeapVector<Member<CSSFontSelectorClient>> clients;
85 copyToVector(m_clients, clients); 85 copyToVector(m_clients, clients);
86 for (auto& client : clients) 86 for (auto& client : clients)
87 client->fontsNeedUpdate(this); 87 client->fontsNeedUpdate(this);
88 } 88 }
89 89
90 void CSSFontSelector::fontFaceInvalidated() 90 void CSSFontSelector::fontFaceInvalidated()
91 { 91 {
92 dispatchInvalidationCallbacks(); 92 dispatchInvalidationCallbacks();
93 } 93 }
94 94
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 #if ENABLE(OILPAN) 185 #if ENABLE(OILPAN)
186 visitor->trace(m_document); 186 visitor->trace(m_document);
187 visitor->trace(m_fontFaceCache); 187 visitor->trace(m_fontFaceCache);
188 visitor->trace(m_clients); 188 visitor->trace(m_clients);
189 visitor->trace(m_fontLoader); 189 visitor->trace(m_fontLoader);
190 #endif 190 #endif
191 FontSelector::trace(visitor); 191 FontSelector::trace(visitor);
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698