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

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

Issue 177703004: [SVG] Remove SVGAnimatedPropertyMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove ws Created 6 years, 9 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/SVGCursorElement.h ('k') | Source/core/svg/SVGDefsElement.h » ('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, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 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 11 matching lines...) Expand all
22 22
23 #include "core/svg/SVGCursorElement.h" 23 #include "core/svg/SVGCursorElement.h"
24 24
25 #include "SVGNames.h" 25 #include "SVGNames.h"
26 #include "XLinkNames.h" 26 #include "XLinkNames.h"
27 #include "core/dom/Document.h" 27 #include "core/dom/Document.h"
28 #include "core/svg/SVGElementInstance.h" 28 #include "core/svg/SVGElementInstance.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 // Animated property definitions
33
34 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGCursorElement)
35 END_REGISTER_ANIMATED_PROPERTIES
36
37 inline SVGCursorElement::SVGCursorElement(Document& document) 32 inline SVGCursorElement::SVGCursorElement(Document& document)
38 : SVGElement(SVGNames::cursorTag, document) 33 : SVGElement(SVGNames::cursorTag, document)
39 , SVGTests(this) 34 , SVGTests(this)
40 , SVGURIReference(this) 35 , SVGURIReference(this)
41 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth))) 36 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth)))
42 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight))) 37 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight)))
43 { 38 {
44 ScriptWrappable::init(this); 39 ScriptWrappable::init(this);
45 40
46 addToPropertyMap(m_x); 41 addToPropertyMap(m_x);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 116
122 // Any change of a cursor specific attribute triggers this recalc. 117 // Any change of a cursor specific attribute triggers this recalc.
123 HashSet<SVGElement*>::const_iterator it = m_clients.begin(); 118 HashSet<SVGElement*>::const_iterator it = m_clients.begin();
124 HashSet<SVGElement*>::const_iterator end = m_clients.end(); 119 HashSet<SVGElement*>::const_iterator end = m_clients.end();
125 120
126 for (; it != end; ++it) 121 for (; it != end; ++it)
127 (*it)->setNeedsStyleRecalc(SubtreeStyleChange); 122 (*it)->setNeedsStyleRecalc(SubtreeStyleChange);
128 } 123 }
129 124
130 } 125 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGCursorElement.h ('k') | Source/core/svg/SVGDefsElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698