OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "core/SVGNames.h" | 24 #include "core/SVGNames.h" |
25 #include "core/fetch/FontResource.h" | 25 #include "core/fetch/FontResource.h" |
26 #include "core/fetch/ResourcePtr.h" | 26 #include "core/fetch/ResourcePtr.h" |
27 #include "core/svg/SVGElement.h" | 27 #include "core/svg/SVGElement.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 class CSSFontFaceSrcValue; | 31 class CSSFontFaceSrcValue; |
32 | 32 |
33 class SVGFontFaceUriElement FINAL : public SVGElement, public FontResourceClient
{ | 33 class SVGFontFaceUriElement FINAL : public SVGElement, public FontResourceClient
{ |
| 34 DEFINE_WRAPPERTYPEINFO(); |
34 public: | 35 public: |
35 DECLARE_NODE_FACTORY(SVGFontFaceUriElement); | 36 DECLARE_NODE_FACTORY(SVGFontFaceUriElement); |
36 | 37 |
37 virtual ~SVGFontFaceUriElement(); | 38 virtual ~SVGFontFaceUriElement(); |
38 | 39 |
39 PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue() const; | 40 PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue() const; |
40 | 41 |
41 private: | 42 private: |
42 explicit SVGFontFaceUriElement(Document&); | 43 explicit SVGFontFaceUriElement(Document&); |
43 | 44 |
44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
45 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; | 46 virtual void childrenChanged(const ChildrenChange&) OVERRIDE; |
46 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 47 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
47 | 48 |
48 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 49 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
49 | 50 |
50 void loadFont(); | 51 void loadFont(); |
51 | 52 |
52 ResourcePtr<FontResource> m_resource; | 53 ResourcePtr<FontResource> m_resource; |
53 }; | 54 }; |
54 | 55 |
55 } // namespace blink | 56 } // namespace blink |
56 | 57 |
57 #endif // ENABLE(SVG_FONTS) | 58 #endif // ENABLE(SVG_FONTS) |
58 #endif | 59 #endif // SVGFontFaceUriElement_h |
59 | |
60 // vim:ts=4:noet | |
OLD | NEW |