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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/SVGAnimateTransformElement.cpp ('k') | Source/core/svg/SVGAnimationElement.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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 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) 2008 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2008 Cameron McCormack <cam@mcc.id.au>
7 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2011. 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 if (isAccumulated() && repeatCount) 155 if (isAccumulated() && repeatCount)
156 number += toAtEndOfDurationNumber * repeatCount; 156 number += toAtEndOfDurationNumber * repeatCount;
157 157
158 if (isAdditive() && animationMode() != ToAnimation) 158 if (isAdditive() && animationMode() != ToAnimation)
159 animatedNumber += number; 159 animatedNumber += number;
160 else 160 else
161 animatedNumber = number; 161 animatedNumber = number;
162 } 162 }
163 163
164 protected: 164 protected:
165 SVGAnimationElement(const QualifiedName&, Document*); 165 SVGAnimationElement(const QualifiedName&, Document&);
166 166
167 void computeCSSPropertyValue(SVGElement*, CSSPropertyID, String& value); 167 void computeCSSPropertyValue(SVGElement*, CSSPropertyID, String& value);
168 virtual void determinePropertyValueTypes(const String& from, const String& t o); 168 virtual void determinePropertyValueTypes(const String& from, const String& t o);
169 169
170 bool isSupportedAttribute(const QualifiedName&); 170 bool isSupportedAttribute(const QualifiedName&);
171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 171 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
172 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 172 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
173 173
174 enum AttributeType { 174 enum AttributeType {
175 AttributeTypeCSS, 175 AttributeTypeCSS,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 String m_lastValuesAnimationFrom; 246 String m_lastValuesAnimationFrom;
247 String m_lastValuesAnimationTo; 247 String m_lastValuesAnimationTo;
248 bool m_hasInvalidCSSAttributeType; 248 bool m_hasInvalidCSSAttributeType;
249 CalcMode m_calcMode; 249 CalcMode m_calcMode;
250 AnimationMode m_animationMode; 250 AnimationMode m_animationMode;
251 }; 251 };
252 252
253 } // namespace WebCore 253 } // namespace WebCore
254 254
255 #endif // SVGAnimationElement_h 255 #endif // SVGAnimationElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimateTransformElement.cpp ('k') | Source/core/svg/SVGAnimationElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698