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

Side by Side Diff: Source/core/css/FontLoader.cpp

Issue 953693002: InlinedVisitor: Migrate css to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/css/FontLoader.h" 6 #include "core/css/FontLoader.h"
7 7
8 #include "core/css/CSSFontSelector.h" 8 #include "core/css/CSSFontSelector.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/dom/IncrementLoadEventDelayCount.h" 10 #include "core/dom/IncrementLoadEventDelayCount.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 #endif 104 #endif
105 105
106 void FontLoader::clearPendingFonts() 106 void FontLoader::clearPendingFonts()
107 { 107 {
108 for (const auto& fontToLoad : m_fontsToBeginLoading) 108 for (const auto& fontToLoad : m_fontsToBeginLoading)
109 fontToLoad->fontResource->didUnscheduleLoad(); 109 fontToLoad->fontResource->didUnscheduleLoad();
110 m_fontsToBeginLoading.clear(); 110 m_fontsToBeginLoading.clear();
111 } 111 }
112 112
113 void FontLoader::trace(Visitor* visitor) 113 DEFINE_TRACE(FontLoader)
114 { 114 {
115 visitor->trace(m_resourceFetcher); 115 visitor->trace(m_resourceFetcher);
116 visitor->trace(m_fontSelector); 116 visitor->trace(m_fontSelector);
117 } 117 }
118 118
119 } // namespace blink 119 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698