| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |