OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "core/css/CSSFontFaceSrcValue.h" | 27 #include "core/css/CSSFontFaceSrcValue.h" |
28 #include "core/dom/Document.h" | 28 #include "core/dom/Document.h" |
29 #include "core/fetch/FetchRequest.h" | 29 #include "core/fetch/FetchRequest.h" |
30 #include "core/fetch/ResourceFetcher.h" | 30 #include "core/fetch/ResourceFetcher.h" |
31 #include "core/svg/SVGFontFaceElement.h" | 31 #include "core/svg/SVGFontFaceElement.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 using namespace SVGNames; | 35 using namespace SVGNames; |
36 | 36 |
37 SVGFontFaceUriElement::SVGFontFaceUriElement(Document& document) | 37 inline SVGFontFaceUriElement::SVGFontFaceUriElement(Document& document) |
38 : SVGElement(font_face_uriTag, document) | 38 : SVGElement(font_face_uriTag, document) |
39 { | 39 { |
40 ScriptWrappable::init(this); | 40 ScriptWrappable::init(this); |
41 } | 41 } |
42 | 42 |
| 43 DEFINE_NODE_FACTORY(SVGFontFaceUriElement) |
| 44 |
43 SVGFontFaceUriElement::~SVGFontFaceUriElement() | 45 SVGFontFaceUriElement::~SVGFontFaceUriElement() |
44 { | 46 { |
45 if (m_resource) | 47 if (m_resource) |
46 m_resource->removeClient(this); | 48 m_resource->removeClient(this); |
47 } | 49 } |
48 | 50 |
49 PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> SVGFontFaceUriElement::srcValue() co
nst | 51 PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> SVGFontFaceUriElement::srcValue() co
nst |
50 { | 52 { |
51 RefPtrWillBeRawPtr<CSSFontFaceSrcValue> src = CSSFontFaceSrcValue::create(ge
tAttribute(XLinkNames::hrefAttr)); | 53 RefPtrWillBeRawPtr<CSSFontFaceSrcValue> src = CSSFontFaceSrcValue::create(ge
tAttribute(XLinkNames::hrefAttr)); |
52 AtomicString value(fastGetAttribute(formatAttr)); | 54 AtomicString value(fastGetAttribute(formatAttr)); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 m_resource->beginLoadIfNeeded(fetcher); | 97 m_resource->beginLoadIfNeeded(fetcher); |
96 } | 98 } |
97 } else { | 99 } else { |
98 m_resource = 0; | 100 m_resource = 0; |
99 } | 101 } |
100 } | 102 } |
101 | 103 |
102 } | 104 } |
103 | 105 |
104 #endif // ENABLE(SVG_FONTS) | 106 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |