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 22 matching lines...) Expand all Loading... |
33 class SVGMPathElement FINAL : public SVGElement, | 33 class SVGMPathElement FINAL : public SVGElement, |
34 public SVGURIReference { | 34 public SVGURIReference { |
35 public: | 35 public: |
36 static PassRefPtr<SVGMPathElement> create(Document&); | 36 static PassRefPtr<SVGMPathElement> create(Document&); |
37 | 37 |
38 virtual ~SVGMPathElement(); | 38 virtual ~SVGMPathElement(); |
39 | 39 |
40 SVGPathElement* pathElement(); | 40 SVGPathElement* pathElement(); |
41 | 41 |
42 void targetPathChanged(); | 42 void targetPathChanged(); |
43 SVGAnimatedString* href() { return m_href.get(); } | |
44 | 43 |
45 private: | 44 private: |
46 explicit SVGMPathElement(Document&); | 45 explicit SVGMPathElement(Document&); |
47 | 46 |
48 virtual void buildPendingResource() OVERRIDE; | 47 virtual void buildPendingResource() OVERRIDE; |
49 void clearResourceReferences(); | 48 void clearResourceReferences(); |
50 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 49 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
51 virtual void removedFrom(ContainerNode*) OVERRIDE; | 50 virtual void removedFrom(ContainerNode*) OVERRIDE; |
52 | 51 |
53 bool isSupportedAttribute(const QualifiedName&); | 52 bool isSupportedAttribute(const QualifiedName&); |
54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
55 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 54 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
56 | 55 |
57 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 56 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
58 void notifyParentOfPathChange(ContainerNode*); | 57 void notifyParentOfPathChange(ContainerNode*); |
59 | 58 |
60 RefPtr<SVGAnimatedString> m_href; | |
61 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMPathElement) | 59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGMPathElement) |
62 END_DECLARE_ANIMATED_PROPERTIES | 60 END_DECLARE_ANIMATED_PROPERTIES |
63 }; | 61 }; |
64 | 62 |
65 DEFINE_NODE_TYPE_CASTS(SVGMPathElement, hasTagName(SVGNames::mpathTag)); | 63 DEFINE_NODE_TYPE_CASTS(SVGMPathElement, hasTagName(SVGNames::mpathTag)); |
66 | 64 |
67 } // namespace WebCore | 65 } // namespace WebCore |
68 | 66 |
69 #endif // SVGMPathElement_h | 67 #endif // SVGMPathElement_h |
OLD | NEW |