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

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

Issue 1420263002: Remove some dead code in SVG "mixins" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGCursorElement.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 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 void setCalcMode(CalcMode calcMode) { m_calcMode = calcMode; } 171 void setCalcMode(CalcMode calcMode) { m_calcMode = calcMode; }
172 172
173 // Parses a list of values as specified by SVG, stripping leading 173 // Parses a list of values as specified by SVG, stripping leading
174 // and trailing whitespace, and places them in result. If the 174 // and trailing whitespace, and places them in result. If the
175 // format of the string is not valid, parseValues empties result 175 // format of the string is not valid, parseValues empties result
176 // and returns false. See 176 // and returns false. See
177 // http://www.w3.org/TR/SVG/animate.html#ValuesAttribute . 177 // http://www.w3.org/TR/SVG/animate.html#ValuesAttribute .
178 static bool parseValues(const String&, Vector<String>& result); 178 static bool parseValues(const String&, Vector<String>& result);
179 179
180 private: 180 private:
181 bool isValid() const final { return SVGTests::isValid(document()); } 181 bool isValid() const final { return SVGTests::isValid(); }
182 182
183 void animationAttributeChanged() override; 183 void animationAttributeChanged() override;
184 void setAttributeType(const AtomicString&); 184 void setAttributeType(const AtomicString&);
185 185
186 void checkInvalidCSSAttributeType(); 186 void checkInvalidCSSAttributeType();
187 187
188 virtual bool calculateToAtEndOfDurationValue(const String& toAtEndOfDuration String) = 0; 188 virtual bool calculateToAtEndOfDurationValue(const String& toAtEndOfDuration String) = 0;
189 virtual bool calculateFromAndToValues(const String& fromString, const String & toString) = 0; 189 virtual bool calculateFromAndToValues(const String& fromString, const String & toString) = 0;
190 virtual bool calculateFromAndByValues(const String& fromString, const String & byString) = 0; 190 virtual bool calculateFromAndByValues(const String& fromString, const String & byString) = 0;
191 virtual void calculateAnimatedValue(float percent, unsigned repeatCount, SVG SMILElement* resultElement) = 0; 191 virtual void calculateAnimatedValue(float percent, unsigned repeatCount, SVG SMILElement* resultElement) = 0;
(...skipping 24 matching lines...) Expand all
216 String m_lastValuesAnimationFrom; 216 String m_lastValuesAnimationFrom;
217 String m_lastValuesAnimationTo; 217 String m_lastValuesAnimationTo;
218 bool m_hasInvalidCSSAttributeType; 218 bool m_hasInvalidCSSAttributeType;
219 CalcMode m_calcMode; 219 CalcMode m_calcMode;
220 AnimationMode m_animationMode; 220 AnimationMode m_animationMode;
221 }; 221 };
222 222
223 } // namespace blink 223 } // namespace blink
224 224
225 #endif // SVGAnimationElement_h 225 #endif // SVGAnimationElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGCursorElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698