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

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

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix tests Created 6 years, 11 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
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 26 matching lines...) Expand all
37 public SVGURIReference { 37 public SVGURIReference {
38 public: 38 public:
39 static PassRefPtr<SVGCursorElement> create(Document&); 39 static PassRefPtr<SVGCursorElement> create(Document&);
40 40
41 virtual ~SVGCursorElement(); 41 virtual ~SVGCursorElement();
42 42
43 void addClient(SVGElement*); 43 void addClient(SVGElement*);
44 void removeClient(SVGElement*); 44 void removeClient(SVGElement*);
45 void removeReferencedElement(SVGElement*); 45 void removeReferencedElement(SVGElement*);
46 46
47 SVGAnimatedLength* x() const { return m_x.get(); }
48 SVGAnimatedLength* y() const { return m_y.get(); }
49
47 private: 50 private:
48 explicit SVGCursorElement(Document&); 51 explicit SVGCursorElement(Document&);
49 52
50 virtual bool isValid() const { return SVGTests::isValid(); } 53 virtual bool isValid() const { return SVGTests::isValid(); }
51 54
52 bool isSupportedAttribute(const QualifiedName&); 55 bool isSupportedAttribute(const QualifiedName&);
53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
54 virtual void svgAttributeChanged(const QualifiedName&); 57 virtual void svgAttributeChanged(const QualifiedName&);
55 58
56 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } 59 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
57 60
61 RefPtr<SVGAnimatedLength> m_x;
62 RefPtr<SVGAnimatedLength> m_y;
58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement) 63 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement)
59 DECLARE_ANIMATED_LENGTH(X, x)
60 DECLARE_ANIMATED_LENGTH(Y, y)
61 DECLARE_ANIMATED_STRING(Href, href) 64 DECLARE_ANIMATED_STRING(Href, href)
62 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired) 65 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq uired)
63 END_DECLARE_ANIMATED_PROPERTIES 66 END_DECLARE_ANIMATED_PROPERTIES
64 67
65 // SVGTests 68 // SVGTests
66 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); } 69 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe atures(this); }
67 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); } 70 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired Extensions(this); }
68 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); } 71 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua ge(this); }
69 72
70 HashSet<SVGElement*> m_clients; 73 HashSet<SVGElement*> m_clients;
71 }; 74 };
72 75
73 } // namespace WebCore 76 } // namespace WebCore
74 77
75 #endif 78 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698