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 14 matching lines...) Expand all Loading... |
25 #include "core/svg/SVGAnimatedBoolean.h" | 25 #include "core/svg/SVGAnimatedBoolean.h" |
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(); } |
| 36 SVGAnimatedString* href() { return m_href.get(); } |
35 | 37 |
36 private: | 38 private: |
37 explicit SVGAElement(Document&); | 39 explicit SVGAElement(Document&); |
38 | 40 |
39 virtual String title() const OVERRIDE; | 41 virtual String title() const OVERRIDE; |
40 | 42 |
41 bool isSupportedAttribute(const QualifiedName&); | 43 bool isSupportedAttribute(const QualifiedName&); |
42 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
43 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 45 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
44 | 46 |
45 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 47 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
46 | 48 |
47 virtual void defaultEventHandler(Event*) OVERRIDE; | 49 virtual void defaultEventHandler(Event*) OVERRIDE; |
48 | 50 |
49 virtual bool supportsFocus() const OVERRIDE; | 51 virtual bool supportsFocus() const OVERRIDE; |
50 virtual bool isMouseFocusable() const OVERRIDE; | 52 virtual bool isMouseFocusable() const OVERRIDE; |
51 virtual bool isKeyboardFocusable() const OVERRIDE; | 53 virtual bool isKeyboardFocusable() const OVERRIDE; |
52 virtual bool rendererIsFocusable() const OVERRIDE; | 54 virtual bool rendererIsFocusable() const OVERRIDE; |
53 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; | 55 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; |
54 | 56 |
55 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 57 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
56 | 58 |
57 virtual bool childShouldCreateRenderer(const Node& child) const OVERRIDE { r
eturn true; } | 59 virtual bool childShouldCreateRenderer(const Node& child) const OVERRIDE { r
eturn true; } |
58 | 60 |
| 61 RefPtr<SVGAnimatedString> m_svgTarget; |
| 62 RefPtr<SVGAnimatedString> m_href; |
59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement) | 63 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGAElement) |
60 // This declaration used to define a non-virtual "String& target() const
" method, that clashes with "virtual String Element::target() const". | 64 // This declaration used to define a non-virtual "String& target() const
" method, that clashes with "virtual String Element::target() const". |
61 // That's why it has been renamed to "svgTarget", the CodeGenerators tak
e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener
ator.pm. | 65 // That's why it has been renamed to "svgTarget", the CodeGenerators tak
e care of calling svgTargetAnimated() instead of targetAnimated(), see CodeGener
ator.pm. |
62 DECLARE_ANIMATED_STRING(SVGTarget, svgTarget) | |
63 DECLARE_ANIMATED_STRING(Href, href) | |
64 END_DECLARE_ANIMATED_PROPERTIES | 66 END_DECLARE_ANIMATED_PROPERTIES |
65 }; | 67 }; |
66 | 68 |
67 } // namespace WebCore | 69 } // namespace WebCore |
68 | 70 |
69 #endif // SVGAElement_h | 71 #endif // SVGAElement_h |
OLD | NEW |