| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 void FontFaceSet::suspend() { | 191 void FontFaceSet::suspend() { |
| 192 m_asyncRunner->suspend(); | 192 m_asyncRunner->suspend(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void FontFaceSet::resume() { | 195 void FontFaceSet::resume() { |
| 196 m_asyncRunner->resume(); | 196 m_asyncRunner->resume(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 void FontFaceSet::contextDestroyed() { | 199 void FontFaceSet::contextDestroyed(ExecutionContext*) { |
| 200 m_asyncRunner->stop(); | 200 m_asyncRunner->stop(); |
| 201 } | 201 } |
| 202 | 202 |
| 203 void FontFaceSet::beginFontLoading(FontFace* fontFace) { | 203 void FontFaceSet::beginFontLoading(FontFace* fontFace) { |
| 204 m_histogram.incrementCount(); | 204 m_histogram.incrementCount(); |
| 205 addToLoadingFonts(fontFace); | 205 addToLoadingFonts(fontFace); |
| 206 } | 206 } |
| 207 | 207 |
| 208 void FontFaceSet::notifyLoaded(FontFace* fontFace) { | 208 void FontFaceSet::notifyLoaded(FontFace* fontFace) { |
| 209 m_histogram.updateStatus(fontFace); | 209 m_histogram.updateStatus(fontFace); |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 visitor->trace(m_failedFonts); | 561 visitor->trace(m_failedFonts); |
| 562 visitor->trace(m_nonCSSConnectedFaces); | 562 visitor->trace(m_nonCSSConnectedFaces); |
| 563 visitor->trace(m_asyncRunner); | 563 visitor->trace(m_asyncRunner); |
| 564 EventTargetWithInlineData::trace(visitor); | 564 EventTargetWithInlineData::trace(visitor); |
| 565 Supplement<Document>::trace(visitor); | 565 Supplement<Document>::trace(visitor); |
| 566 SuspendableObject::trace(visitor); | 566 SuspendableObject::trace(visitor); |
| 567 FontFace::LoadFontCallback::trace(visitor); | 567 FontFace::LoadFontCallback::trace(visitor); |
| 568 } | 568 } |
| 569 | 569 |
| 570 } // namespace blink | 570 } // namespace blink |
| OLD | NEW |