Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: Source/core/svg/SVGAElement.h

Issue 169103002: Drop [LegacyImplementedInBaseClass] from SVGURIReference IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/svg/SVGAElement.cpp » ('j') | Source/core/svg/SVGUseElement.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGAElement.cpp » ('j') | Source/core/svg/SVGUseElement.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698