| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> | 2 Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> |
| 3 Copyright (C) 2011 Cosmin Truta <ctruta@gmail.com> | 3 Copyright (C) 2011 Cosmin Truta <ctruta@gmail.com> |
| 4 Copyright (C) 2012 University of Szeged | 4 Copyright (C) 2012 University of Szeged |
| 5 Copyright (C) 2012 Renata Hodovan <reni@webkit.org> | 5 Copyright (C) 2012 Renata Hodovan <reni@webkit.org> |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 class CORE_EXPORT DocumentResource final : public TextResource { | 39 class CORE_EXPORT DocumentResource final : public TextResource { |
| 40 public: | 40 public: |
| 41 using ClientType = ResourceClient; | 41 using ClientType = ResourceClient; |
| 42 | 42 |
| 43 static DocumentResource* fetchSVGDocument(FetchRequest&, ResourceFetcher*); | 43 static DocumentResource* fetchSVGDocument(FetchRequest&, ResourceFetcher*); |
| 44 ~DocumentResource() override; | 44 ~DocumentResource() override; |
| 45 DECLARE_VIRTUAL_TRACE(); | 45 DECLARE_VIRTUAL_TRACE(); |
| 46 | 46 |
| 47 Document* document() const { return m_document.get(); } | 47 Document* document() const { return m_document.get(); } |
| 48 | 48 |
| 49 void checkNotify() override; | 49 void checkNotify(MarkFinishedOption) override; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 class SVGDocumentResourceFactory : public ResourceFactory { | 52 class SVGDocumentResourceFactory : public ResourceFactory { |
| 53 public: | 53 public: |
| 54 SVGDocumentResourceFactory() | 54 SVGDocumentResourceFactory() |
| 55 : ResourceFactory(Resource::SVGDocument) { } | 55 : ResourceFactory(Resource::SVGDocument) { } |
| 56 | 56 |
| 57 Resource* create(const ResourceRequest& request, const ResourceLoaderOpt
ions& options, const String& charset) const override | 57 Resource* create(const ResourceRequest& request, const ResourceLoaderOpt
ions& options, const String& charset) const override |
| 58 { | 58 { |
| 59 return new DocumentResource(request, Resource::SVGDocument, options)
; | 59 return new DocumentResource(request, Resource::SVGDocument, options)
; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 73 public: | 73 public: |
| 74 ~DocumentResourceClient() override {} | 74 ~DocumentResourceClient() override {} |
| 75 static bool isExpectedType(ResourceClient* client) { return client->getResou
rceClientType() == DocumentType; } | 75 static bool isExpectedType(ResourceClient* client) { return client->getResou
rceClientType() == DocumentType; } |
| 76 ResourceClientType getResourceClientType() const final { return DocumentType
; } | 76 ResourceClientType getResourceClientType() const final { return DocumentType
; } |
| 77 DEFINE_INLINE_VIRTUAL_TRACE() {} | 77 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace blink | 80 } // namespace blink |
| 81 | 81 |
| 82 #endif // DocumentResource_h | 82 #endif // DocumentResource_h |
| OLD | NEW |