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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAnimatedTypeAnimator.cpp

Issue 2485663002: Store CSSPropertyID in SVGAnimatedPropertyBase (Closed)
Patch Set: Add missing case Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved.
3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved.
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 case AnimatedPath: 124 case AnimatedPath:
125 case AnimatedPoint: 125 case AnimatedPoint:
126 case AnimatedPoints: 126 case AnimatedPoints:
127 case AnimatedPreserveAspectRatio: 127 case AnimatedPreserveAspectRatio:
128 case AnimatedRect: 128 case AnimatedRect:
129 case AnimatedStringList: 129 case AnimatedStringList:
130 case AnimatedTransform: 130 case AnimatedTransform:
131 case AnimatedTransformList: 131 case AnimatedTransformList:
132 case AnimatedUnknown: 132 case AnimatedUnknown:
133 break; 133 break;
134 default:
135 break;
134 } 136 }
135 NOTREACHED(); 137 NOTREACHED();
136 return nullptr; 138 return nullptr;
137 } 139 }
138 140
139 SVGPropertyBase* SVGAnimatedTypeAnimator::createPropertyForAnimation( 141 SVGPropertyBase* SVGAnimatedTypeAnimator::createPropertyForAnimation(
140 const String& value) const { 142 const String& value) const {
141 DCHECK(m_contextElement); 143 DCHECK(m_contextElement);
142 if (isAnimatingSVGDom()) 144 if (isAnimatingSVGDom())
143 return createPropertyForAttributeAnimation(value); 145 return createPropertyForAttributeAnimation(value);
144 DCHECK(isAnimatingCSSProperty()); 146 DCHECK(isAnimatingCSSProperty());
145 return createPropertyForCSSAnimation(value); 147 return createPropertyForCSSAnimation(value);
146 } 148 }
147 149
148 SVGPropertyBase* SVGAnimatedTypeAnimator::createAnimatedValue() const { 150 SVGPropertyBase* SVGAnimatedTypeAnimator::createAnimatedValue() const {
149 DCHECK(isAnimatingSVGDom()); 151 DCHECK(isAnimatingSVGDom());
150 SVGPropertyBase* animatedValue = m_animatedProperty->createAnimatedValue(); 152 SVGPropertyBase* animatedValue = m_animatedProperty->createAnimatedValue();
151 DCHECK_EQ(animatedValue->type(), m_type); 153 DCHECK_EQ(animatedValue->type(), m_type);
152 return animatedValue; 154 return animatedValue;
153 } 155 }
154 156
155 DEFINE_TRACE(SVGAnimatedTypeAnimator) { 157 DEFINE_TRACE(SVGAnimatedTypeAnimator) {
156 visitor->trace(m_animationElement); 158 visitor->trace(m_animationElement);
157 visitor->trace(m_contextElement); 159 visitor->trace(m_contextElement);
158 visitor->trace(m_animatedProperty); 160 visitor->trace(m_animatedProperty);
159 } 161 }
160 162
161 } // namespace blink 163 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAnimatedPath.cpp ('k') | third_party/WebKit/Source/core/svg/SVGCircleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698