| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 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 29 matching lines...) Expand all Loading... |
| 40 class FontPlatformData; | 40 class FontPlatformData; |
| 41 class SVGFontElement; | 41 class SVGFontElement; |
| 42 class FontCustomPlatformData; | 42 class FontCustomPlatformData; |
| 43 | 43 |
| 44 class FontResource final : public Resource { | 44 class FontResource final : public Resource { |
| 45 public: | 45 public: |
| 46 typedef ResourceClient ClientType; | 46 typedef ResourceClient ClientType; |
| 47 | 47 |
| 48 FontResource(const ResourceRequest&); | 48 FontResource(const ResourceRequest&); |
| 49 virtual ~FontResource(); | 49 virtual ~FontResource(); |
| 50 virtual void trace(Visitor*) override; | |
| 51 | 50 |
| 52 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&) override; | 51 virtual void load(ResourceFetcher*, const ResourceLoaderOptions&) override; |
| 53 | 52 |
| 54 virtual void didAddClient(ResourceClient*) override; | 53 virtual void didAddClient(ResourceClient*) override; |
| 55 | 54 |
| 56 virtual void allClientsRemoved() override; | 55 virtual void allClientsRemoved() override; |
| 57 void beginLoadIfNeeded(ResourceFetcher* dl); | 56 void beginLoadIfNeeded(ResourceFetcher* dl); |
| 58 virtual bool stillNeedsLoad() const override { return m_state != LoadInitiat
ed; } | 57 virtual bool stillNeedsLoad() const override { return m_state != LoadInitiat
ed; } |
| 59 bool exceedsFontLoadWaitLimit() const { return m_exceedsFontLoadWaitLimit; } | 58 bool exceedsFontLoadWaitLimit() const { return m_exceedsFontLoadWaitLimit; } |
| 60 | 59 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 static ResourceClientType expectedType() { return FontType; } | 93 static ResourceClientType expectedType() { return FontType; } |
| 95 virtual ResourceClientType resourceClientType() const override final { retur
n expectedType(); } | 94 virtual ResourceClientType resourceClientType() const override final { retur
n expectedType(); } |
| 96 virtual void fontLoaded(FontResource*) { } | 95 virtual void fontLoaded(FontResource*) { } |
| 97 virtual void didStartFontLoad(FontResource*) { } | 96 virtual void didStartFontLoad(FontResource*) { } |
| 98 virtual void fontLoadWaitLimitExceeded(FontResource*) { } | 97 virtual void fontLoadWaitLimitExceeded(FontResource*) { } |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } | 100 } |
| 102 | 101 |
| 103 #endif | 102 #endif |
| OLD | NEW |