OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "core/svg/SVGGraphicsElement.h" | 26 #include "core/svg/SVGGraphicsElement.h" |
27 #include "core/svg/SVGURIReference.h" | 27 #include "core/svg/SVGURIReference.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 class SVGAElement FINAL : public SVGGraphicsElement, | 31 class SVGAElement FINAL : public SVGGraphicsElement, |
32 public SVGURIReference { | 32 public SVGURIReference { |
33 public: | 33 public: |
34 static PassRefPtr<SVGAElement> create(Document&); | 34 static PassRefPtr<SVGAElement> create(Document&); |
35 SVGAnimatedString* svgTarget() { return m_svgTarget.get(); } | 35 SVGAnimatedString* svgTarget() { return m_svgTarget.get(); } |
36 SVGAnimatedString* href() { return m_href.get(); } | |
37 | 36 |
38 private: | 37 private: |
39 explicit SVGAElement(Document&); | 38 explicit SVGAElement(Document&); |
40 | 39 |
41 virtual String title() const OVERRIDE; | 40 virtual String title() const OVERRIDE; |
42 | 41 |
43 bool isSupportedAttribute(const QualifiedName&); | 42 bool isSupportedAttribute(const QualifiedName&); |
44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 43 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
45 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 44 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
46 | 45 |
47 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 46 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
48 | 47 |
49 virtual void defaultEventHandler(Event*) OVERRIDE; | 48 virtual void defaultEventHandler(Event*) OVERRIDE; |
50 | 49 |
51 virtual bool supportsFocus() const OVERRIDE; | 50 virtual bool supportsFocus() const OVERRIDE; |
52 virtual bool isMouseFocusable() const OVERRIDE; | 51 virtual bool isMouseFocusable() const OVERRIDE; |
53 virtual bool isKeyboardFocusable() const OVERRIDE; | 52 virtual bool isKeyboardFocusable() const OVERRIDE; |
54 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 53 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
55 | 54 |
56 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 55 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
57 | 56 |
58 RefPtr<SVGAnimatedString> m_svgTarget; | 57 RefPtr<SVGAnimatedString> m_svgTarget; |
59 RefPtr<SVGAnimatedString> m_href; | |
60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement) | 58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement) |
61 // This declaration used to define a non-virtual "String& target() const
" method, that clashes with "virtual String Element::target() const". | 59 // This declaration used to define a non-virtual "String& target() const
" method, that clashes with "virtual String Element::target() const". |
62 // That's why it has been renamed to "svgTarget", the CodeGenerators tak
e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener
ator.pm. | 60 // That's why it has been renamed to "svgTarget", the CodeGenerators tak
e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener
ator.pm. |
63 END_DECLARE_ANIMATED_PROPERTIES | 61 END_DECLARE_ANIMATED_PROPERTIES |
64 }; | 62 }; |
65 | 63 |
66 } // namespace WebCore | 64 } // namespace WebCore |
67 | 65 |
68 #endif // SVGAElement_h | 66 #endif // SVGAElement_h |
OLD | NEW |