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 18 matching lines...) Expand all Loading... |
29 | 29 |
30 #include "core/fetch/ResourceClientWalker.h" | 30 #include "core/fetch/ResourceClientWalker.h" |
31 #include "core/html/parser/TextResourceDecoder.h" | 31 #include "core/html/parser/TextResourceDecoder.h" |
32 #include "platform/SharedBuffer.h" | 32 #include "platform/SharedBuffer.h" |
33 #include "platform/fonts/FontCustomPlatformData.h" | 33 #include "platform/fonts/FontCustomPlatformData.h" |
34 #include "platform/fonts/FontPlatformData.h" | 34 #include "platform/fonts/FontPlatformData.h" |
35 #include "public/platform/Platform.h" | 35 #include "public/platform/Platform.h" |
36 #include "wtf/CurrentTime.h" | 36 #include "wtf/CurrentTime.h" |
37 | 37 |
38 #if ENABLE(SVG_FONTS) | 38 #if ENABLE(SVG_FONTS) |
39 #include "SVGNames.h" | 39 #include "core/SVGNames.h" |
40 #include "core/dom/XMLDocument.h" | 40 #include "core/dom/XMLDocument.h" |
41 #include "core/html/HTMLCollection.h" | 41 #include "core/html/HTMLCollection.h" |
42 #include "core/svg/SVGFontElement.h" | 42 #include "core/svg/SVGFontElement.h" |
43 #endif | 43 #endif |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 static const double fontLoadWaitLimitSec = 3.0; | 47 static const double fontLoadWaitLimitSec = 3.0; |
48 | 48 |
49 enum FontPackageFormat { | 49 enum FontPackageFormat { |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 void FontResource::checkNotify() | 220 void FontResource::checkNotify() |
221 { | 221 { |
222 m_fontLoadWaitLimitTimer.stop(); | 222 m_fontLoadWaitLimitTimer.stop(); |
223 ResourceClientWalker<FontResourceClient> w(m_clients); | 223 ResourceClientWalker<FontResourceClient> w(m_clients); |
224 while (FontResourceClient* c = w.next()) | 224 while (FontResourceClient* c = w.next()) |
225 c->fontLoaded(this); | 225 c->fontLoaded(this); |
226 } | 226 } |
227 | 227 |
228 } | 228 } |
OLD | NEW |