Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: Source/core/fetch/FontResource.h

Issue 268803005: Replace SVGDocument by XMLDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add rootElement() variant Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/fetch/DocumentResource.cpp ('k') | Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
28 28
29 #include "core/fetch/ResourceClient.h" 29 #include "core/fetch/ResourceClient.h"
30 #include "core/fetch/ResourcePtr.h" 30 #include "core/fetch/ResourcePtr.h"
31 #include "platform/Timer.h" 31 #include "platform/Timer.h"
32 #include "platform/fonts/FontOrientation.h" 32 #include "platform/fonts/FontOrientation.h"
33 #include "platform/fonts/FontWidthVariant.h" 33 #include "platform/fonts/FontWidthVariant.h"
34 #include "wtf/OwnPtr.h" 34 #include "wtf/OwnPtr.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class Document;
38 class ResourceFetcher; 39 class ResourceFetcher;
39 class FontPlatformData; 40 class FontPlatformData;
40 class SVGDocument;
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 50
(...skipping 24 matching lines...) Expand all
75 virtual void checkNotify() OVERRIDE; 75 virtual void checkNotify() OVERRIDE;
76 void fontLoadWaitLimitCallback(Timer<FontResource>*); 76 void fontLoadWaitLimitCallback(Timer<FontResource>*);
77 77
78 OwnPtr<FontCustomPlatformData> m_fontData; 78 OwnPtr<FontCustomPlatformData> m_fontData;
79 bool m_loadInitiated; 79 bool m_loadInitiated;
80 bool m_exceedsFontLoadWaitLimit; 80 bool m_exceedsFontLoadWaitLimit;
81 bool m_corsFailed; 81 bool m_corsFailed;
82 Timer<FontResource> m_fontLoadWaitLimitTimer; 82 Timer<FontResource> m_fontLoadWaitLimitTimer;
83 83
84 #if ENABLE(SVG_FONTS) 84 #if ENABLE(SVG_FONTS)
85 RefPtr<WebCore::SVGDocument> m_externalSVGDocument; 85 RefPtr<WebCore::Document> m_externalSVGDocument;
86 #endif 86 #endif
87 87
88 friend class MemoryCache; 88 friend class MemoryCache;
89 }; 89 };
90 90
91 DEFINE_RESOURCE_TYPE_CASTS(Font); 91 DEFINE_RESOURCE_TYPE_CASTS(Font);
92 92
93 class FontResourceClient : public ResourceClient { 93 class FontResourceClient : public ResourceClient {
94 public: 94 public:
95 virtual ~FontResourceClient() { } 95 virtual ~FontResourceClient() { }
96 static ResourceClientType expectedType() { return FontType; } 96 static ResourceClientType expectedType() { return FontType; }
97 virtual ResourceClientType resourceClientType() const OVERRIDE FINAL { retur n expectedType(); } 97 virtual ResourceClientType resourceClientType() const OVERRIDE FINAL { retur n expectedType(); }
98 virtual void fontLoaded(FontResource*) { } 98 virtual void fontLoaded(FontResource*) { }
99 virtual void didStartFontLoad(FontResource*) { } 99 virtual void didStartFontLoad(FontResource*) { }
100 virtual void fontLoadWaitLimitExceeded(FontResource*) { } 100 virtual void fontLoadWaitLimitExceeded(FontResource*) { }
101 virtual void corsFailed(FontResource*) { } 101 virtual void corsFailed(FontResource*) { }
102 }; 102 };
103 103
104 } 104 }
105 105
106 #endif 106 #endif
OLDNEW
« no previous file with comments | « Source/core/fetch/DocumentResource.cpp ('k') | Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698