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

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

Issue 148173018: [SVG] SVGAnimatedString{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove debug print 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 | « Source/core/svg/SVGAnimatorFactory.h ('k') | Source/core/svg/SVGCursorElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 27 matching lines...) Expand all
38 static PassRefPtr<SVGCursorElement> create(Document&); 38 static PassRefPtr<SVGCursorElement> create(Document&);
39 39
40 virtual ~SVGCursorElement(); 40 virtual ~SVGCursorElement();
41 41
42 void addClient(SVGElement*); 42 void addClient(SVGElement*);
43 void removeClient(SVGElement*); 43 void removeClient(SVGElement*);
44 void removeReferencedElement(SVGElement*); 44 void removeReferencedElement(SVGElement*);
45 45
46 SVGAnimatedLength* x() const { return m_x.get(); } 46 SVGAnimatedLength* x() const { return m_x.get(); }
47 SVGAnimatedLength* y() const { return m_y.get(); } 47 SVGAnimatedLength* y() const { return m_y.get(); }
48 SVGAnimatedString* href() { return m_href.get(); }
48 49
49 private: 50 private:
50 explicit SVGCursorElement(Document&); 51 explicit SVGCursorElement(Document&);
51 52
52 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } 53 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); }
53 54
54 bool isSupportedAttribute(const QualifiedName&); 55 bool isSupportedAttribute(const QualifiedName&);
55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
56 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 57 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
57 58
58 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } 59 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
59 60
60 RefPtr<SVGAnimatedLength> m_x; 61 RefPtr<SVGAnimatedLength> m_x;
61 RefPtr<SVGAnimatedLength> m_y; 62 RefPtr<SVGAnimatedLength> m_y;
63 RefPtr<SVGAnimatedString> m_href;
62 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement) 64 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement)
63 DECLARE_ANIMATED_STRING(Href, href)
64 END_DECLARE_ANIMATED_PROPERTIES 65 END_DECLARE_ANIMATED_PROPERTIES
65 66
66 // SVGTests
67 virtual void synchronizeRequiredFeatures() OVERRIDE { SVGTests::synchronizeR equiredFeatures(this); }
68 virtual void synchronizeRequiredExtensions() OVERRIDE { SVGTests::synchroniz eRequiredExtensions(this); }
69 virtual void synchronizeSystemLanguage() OVERRIDE { SVGTests::synchronizeSys temLanguage(this); }
70
71 HashSet<SVGElement*> m_clients; 67 HashSet<SVGElement*> m_clients;
72 }; 68 };
73 69
74 DEFINE_NODE_TYPE_CASTS(SVGCursorElement, hasTagName(SVGNames::cursorTag)); 70 DEFINE_NODE_TYPE_CASTS(SVGCursorElement, hasTagName(SVGNames::cursorTag));
75 71
76 } // namespace WebCore 72 } // namespace WebCore
77 73
78 #endif 74 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatorFactory.h ('k') | Source/core/svg/SVGCursorElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698