OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "core/css/CSSValue.h" | 28 #include "core/css/CSSValue.h" |
29 #include "core/fetch/DocumentResource.h" | 29 #include "core/fetch/DocumentResource.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 class Document; | 33 class Document; |
34 | 34 |
35 class CSSSVGDocumentValue : public CSSValue { | 35 class CSSSVGDocumentValue : public CSSValue { |
36 public: | 36 public: |
37 static RawPtr<CSSSVGDocumentValue> create(const String& url) | 37 static CSSSVGDocumentValue* create(const String& url) |
38 { | 38 { |
39 return new CSSSVGDocumentValue(url); | 39 return new CSSSVGDocumentValue(url); |
40 } | 40 } |
41 ~CSSSVGDocumentValue(); | 41 ~CSSSVGDocumentValue(); |
42 | 42 |
43 DocumentResource* cachedSVGDocument() const { return m_document.get(); } | 43 DocumentResource* cachedSVGDocument() const { return m_document.get(); } |
44 DocumentResource* load(Document*); | 44 DocumentResource* load(Document*); |
45 | 45 |
46 String customCSSText() const; | 46 String customCSSText() const; |
47 const String& url() const { return m_url; } | 47 const String& url() const { return m_url; } |
(...skipping 12 matching lines...) Expand all Loading... |
60 String m_url; | 60 String m_url; |
61 Member<DocumentResource> m_document; | 61 Member<DocumentResource> m_document; |
62 bool m_loadRequested; | 62 bool m_loadRequested; |
63 }; | 63 }; |
64 | 64 |
65 DEFINE_CSS_VALUE_TYPE_CASTS(CSSSVGDocumentValue, isSVGDocumentValue()); | 65 DEFINE_CSS_VALUE_TYPE_CASTS(CSSSVGDocumentValue, isSVGDocumentValue()); |
66 | 66 |
67 } // namespace blink | 67 } // namespace blink |
68 | 68 |
69 #endif // CSSSVGDocumentValue_h | 69 #endif // CSSSVGDocumentValue_h |
OLD | NEW |