| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Torch Mobile, Inc. | 3 * Copyright (C) 2009 Torch Mobile, Inc. |
| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 , m_exceedsFontLoadWaitLimit(false) | 72 , m_exceedsFontLoadWaitLimit(false) |
| 73 , m_corsFailed(false) | 73 , m_corsFailed(false) |
| 74 , m_fontLoadWaitLimitTimer(this, &FontResource::fontLoadWaitLimitCallback) | 74 , m_fontLoadWaitLimitTimer(this, &FontResource::fontLoadWaitLimitCallback) |
| 75 { | 75 { |
| 76 } | 76 } |
| 77 | 77 |
| 78 FontResource::~FontResource() | 78 FontResource::~FontResource() |
| 79 { | 79 { |
| 80 } | 80 } |
| 81 | 81 |
| 82 void FontResource::trace(Visitor* visitor) | |
| 83 { | |
| 84 Resource::trace(visitor); | |
| 85 } | |
| 86 | |
| 87 void FontResource::didScheduleLoad() | 82 void FontResource::didScheduleLoad() |
| 88 { | 83 { |
| 89 if (m_state == Unloaded) | 84 if (m_state == Unloaded) |
| 90 m_state = LoadScheduled; | 85 m_state = LoadScheduled; |
| 91 } | 86 } |
| 92 | 87 |
| 93 void FontResource::didUnscheduleLoad() | 88 void FontResource::didUnscheduleLoad() |
| 94 { | 89 { |
| 95 if (m_state == LoadScheduled) | 90 if (m_state == LoadScheduled) |
| 96 m_state = Unloaded; | 91 m_state = Unloaded; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 164 |
| 170 void FontResource::checkNotify() | 165 void FontResource::checkNotify() |
| 171 { | 166 { |
| 172 m_fontLoadWaitLimitTimer.stop(); | 167 m_fontLoadWaitLimitTimer.stop(); |
| 173 ResourceClientWalker<FontResourceClient> w(m_clients); | 168 ResourceClientWalker<FontResourceClient> w(m_clients); |
| 174 while (FontResourceClient* c = w.next()) | 169 while (FontResourceClient* c = w.next()) |
| 175 c->fontLoaded(this); | 170 c->fontLoaded(this); |
| 176 } | 171 } |
| 177 | 172 |
| 178 } | 173 } |
| OLD | NEW |