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

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

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/SVGAnimationElement.h ('k') | Source/core/svg/SVGAnimatorFactory.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 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 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 24 matching lines...) Expand all
35 #include "core/svg/SVGElement.h" 35 #include "core/svg/SVGElement.h"
36 #include "core/svg/SVGParserUtilities.h" 36 #include "core/svg/SVGParserUtilities.h"
37 #include "platform/FloatConversion.h" 37 #include "platform/FloatConversion.h"
38 #include "wtf/MathExtras.h" 38 #include "wtf/MathExtras.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 // Animated property definitions 42 // Animated property definitions
43 43
44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAnimationElement) 44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAnimationElement)
45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests)
46 END_REGISTER_ANIMATED_PROPERTIES 45 END_REGISTER_ANIMATED_PROPERTIES
47 46
48 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document& document) 47 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document& document)
49 : SVGSMILElement(tagName, document) 48 : SVGSMILElement(tagName, document)
49 , SVGTests(this)
50 , m_fromPropertyValueType(RegularPropertyValue) 50 , m_fromPropertyValueType(RegularPropertyValue)
51 , m_toPropertyValueType(RegularPropertyValue) 51 , m_toPropertyValueType(RegularPropertyValue)
52 , m_animationValid(false) 52 , m_animationValid(false)
53 , m_attributeType(AttributeTypeAuto) 53 , m_attributeType(AttributeTypeAuto)
54 , m_hasInvalidCSSAttributeType(false) 54 , m_hasInvalidCSSAttributeType(false)
55 , m_calcMode(CalcModeLinear) 55 , m_calcMode(CalcModeLinear)
56 , m_animationMode(NoAnimation) 56 , m_animationMode(NoAnimation)
57 { 57 {
58 ScriptWrappable::init(this); 58 ScriptWrappable::init(this);
59 registerAnimatedPropertiesForSVGAnimationElement(); 59 registerAnimatedPropertiesForSVGAnimationElement();
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 SVGSMILElement::setAttributeName(attributeName); 692 SVGSMILElement::setAttributeName(attributeName);
693 checkInvalidCSSAttributeType(targetElement()); 693 checkInvalidCSSAttributeType(targetElement());
694 } 694 }
695 695
696 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) 696 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target)
697 { 697 {
698 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa me()); 698 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa me());
699 } 699 }
700 700
701 } 701 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimationElement.h ('k') | Source/core/svg/SVGAnimatorFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698