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

Side by Side Diff: Source/core/svg/SVGAnimationElement.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/SVGAnimatedTypeAnimator.cpp ('k') | Source/core/svg/SVGCircleElement.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) 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 , SVGTests(this) 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();
60 59
61 UseCounter::count(document, UseCounter::SVGAnimationElement); 60 UseCounter::count(document, UseCounter::SVGAnimationElement);
62 } 61 }
63 62
64 static void parseKeyTimes(const String& string, Vector<float>& result, bool veri fyOrder) 63 static void parseKeyTimes(const String& string, Vector<float>& result, bool veri fyOrder)
65 { 64 {
66 result.clear(); 65 result.clear();
67 Vector<String> parseList; 66 Vector<String> parseList;
68 string.split(';', parseList); 67 string.split(';', parseList);
69 for (unsigned n = 0; n < parseList.size(); ++n) { 68 for (unsigned n = 0; n < parseList.size(); ++n) {
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 SVGSMILElement::setAttributeName(attributeName); 691 SVGSMILElement::setAttributeName(attributeName);
693 checkInvalidCSSAttributeType(targetElement()); 692 checkInvalidCSSAttributeType(targetElement());
694 } 693 }
695 694
696 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) 695 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target)
697 { 696 {
698 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa me()); 697 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa me());
699 } 698 }
700 699
701 } 700 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimatedTypeAnimator.cpp ('k') | Source/core/svg/SVGCircleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698