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

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

Issue 177803003: [SVG] Make all C-macros used in the old property implementation NOOP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: styles 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/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMarkerElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 22 matching lines...) Expand all
33 // Animated property definitions 33 // Animated property definitions
34 34
35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGMPathElement) 35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGMPathElement)
36 END_REGISTER_ANIMATED_PROPERTIES 36 END_REGISTER_ANIMATED_PROPERTIES
37 37
38 inline SVGMPathElement::SVGMPathElement(Document& document) 38 inline SVGMPathElement::SVGMPathElement(Document& document)
39 : SVGElement(SVGNames::mpathTag, document) 39 : SVGElement(SVGNames::mpathTag, document)
40 , SVGURIReference(this) 40 , SVGURIReference(this)
41 { 41 {
42 ScriptWrappable::init(this); 42 ScriptWrappable::init(this);
43 registerAnimatedPropertiesForSVGMPathElement();
44 } 43 }
45 44
46 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document) 45 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document)
47 { 46 {
48 return adoptRef(new SVGMPathElement(document)); 47 return adoptRef(new SVGMPathElement(document));
49 } 48 }
50 49
51 SVGMPathElement::~SVGMPathElement() 50 SVGMPathElement::~SVGMPathElement()
52 { 51 {
53 clearResourceReferences(); 52 clearResourceReferences();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 notifyParentOfPathChange(parentNode()); 152 notifyParentOfPathChange(parentNode());
154 } 153 }
155 154
156 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) 155 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent)
157 { 156 {
158 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) 157 if (parent && parent->hasTagName(SVGNames::animateMotionTag))
159 toSVGAnimateMotionElement(parent)->updateAnimationPath(); 158 toSVGAnimateMotionElement(parent)->updateAnimationPath();
160 } 159 }
161 160
162 } // namespace WebCore 161 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLinearGradientElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698