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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/SVGAnimateMotionElement.h ('k') | Source/core/svg/SVGAnimateTransformElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
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 21 matching lines...) Expand all
32 #include "core/svg/SVGPathElement.h" 32 #include "core/svg/SVGPathElement.h"
33 #include "core/svg/SVGPathUtilities.h" 33 #include "core/svg/SVGPathUtilities.h"
34 #include "platform/transforms/AffineTransform.h" 34 #include "platform/transforms/AffineTransform.h"
35 #include "wtf/MathExtras.h" 35 #include "wtf/MathExtras.h"
36 #include "wtf/StdLibExtras.h" 36 #include "wtf/StdLibExtras.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 using namespace SVGNames; 40 using namespace SVGNames;
41 41
42 SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document) 42 inline SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document)
43 : SVGAnimationElement(animateMotionTag, document) 43 : SVGAnimationElement(animateMotionTag, document)
44 , m_hasToPointAtEndOfDuration(false) 44 , m_hasToPointAtEndOfDuration(false)
45 { 45 {
46 setCalcMode(CalcModePaced); 46 setCalcMode(CalcModePaced);
47 ScriptWrappable::init(this); 47 ScriptWrappable::init(this);
48 } 48 }
49 49
50 DEFINE_NODE_FACTORY(SVGAnimateMotionElement)
51
50 SVGAnimateMotionElement::~SVGAnimateMotionElement() 52 SVGAnimateMotionElement::~SVGAnimateMotionElement()
51 { 53 {
52 // FIXME: Oilpan: We should not comment this out and this should be moved to |removeFrom| equivalent. 54 // FIXME: Oilpan: We should not comment this out and this should be moved to |removeFrom| equivalent.
53 #if !ENABLE(OILPAN) 55 #if !ENABLE(OILPAN)
54 if (targetElement()) 56 if (targetElement())
55 clearAnimatedType(targetElement()); 57 clearAnimatedType(targetElement());
56 #endif 58 #endif
57 } 59 }
58 60
59 bool SVGAnimateMotionElement::hasValidAttributeType() 61 bool SVGAnimateMotionElement::hasValidAttributeType()
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 338
337 void SVGAnimateMotionElement::updateAnimationMode() 339 void SVGAnimateMotionElement::updateAnimationMode()
338 { 340 {
339 if (!m_animationPath.isEmpty()) 341 if (!m_animationPath.isEmpty())
340 setAnimationMode(PathAnimation); 342 setAnimationMode(PathAnimation);
341 else 343 else
342 SVGAnimationElement::updateAnimationMode(); 344 SVGAnimationElement::updateAnimationMode();
343 } 345 }
344 346
345 } 347 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimateMotionElement.h ('k') | Source/core/svg/SVGAnimateTransformElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698