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

Side by Side Diff: Source/core/svg/properties/SVGAnimatedProperty.h

Issue 421863002: SVGElement::parseAttribute resolves property via property map (Step 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add return Created 6 years, 4 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/SVGRectElement.cpp ('k') | no next file » | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 G* * Redistributions in binary form must reproduce the above 10 G* * Redistributions in binary form must reproduce the above
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 virtual ~SVGAnimatedPropertyBase(); 49 virtual ~SVGAnimatedPropertyBase();
50 50
51 virtual SVGPropertyBase* currentValueBase() = 0; 51 virtual SVGPropertyBase* currentValueBase() = 0;
52 virtual bool isAnimating() const = 0; 52 virtual bool isAnimating() const = 0;
53 53
54 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() = 0; 54 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() = 0;
55 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) = 0; 55 virtual void setAnimatedValue(PassRefPtr<SVGPropertyBase>) = 0;
56 virtual void animationEnded(); 56 virtual void animationEnded();
57 57
58 virtual void setBaseValueAsString(const String& value, SVGParsingError& pars eError) = 0;
58 virtual bool needsSynchronizeAttribute() = 0; 59 virtual bool needsSynchronizeAttribute() = 0;
59 virtual void synchronizeAttribute(); 60 virtual void synchronizeAttribute();
60 61
61 AnimatedPropertyType type() const 62 AnimatedPropertyType type() const
62 { 63 {
63 return m_type; 64 return m_type;
64 } 65 }
65 66
66 SVGElement* contextElement() const 67 SVGElement* contextElement() const
67 { 68 {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 virtual SVGPropertyBase* currentValueBase() OVERRIDE 122 virtual SVGPropertyBase* currentValueBase() OVERRIDE
122 { 123 {
123 return currentValue(); 124 return currentValue();
124 } 125 }
125 126
126 virtual bool isAnimating() const OVERRIDE 127 virtual bool isAnimating() const OVERRIDE
127 { 128 {
128 return m_currentValue; 129 return m_currentValue;
129 } 130 }
130 131
131 void setBaseValueAsString(const String& value, SVGParsingError& parseError) 132 void setBaseValueAsString(const String& value, SVGParsingError& parseError) OVERRIDE
132 { 133 {
133 TrackExceptionState es; 134 TrackExceptionState es;
134 135
135 m_baseValue->setValueAsString(value, es); 136 m_baseValue->setValueAsString(value, es);
136 137
137 if (es.hadException()) 138 if (es.hadException())
138 parseError = ParsingAttributeFailedError; 139 parseError = ParsingAttributeFailedError;
139 } 140 }
140 141
141 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() OVERRIDE 142 virtual PassRefPtr<SVGPropertyBase> createAnimatedValue() OVERRIDE
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // When animated: 300 // When animated:
300 // m_animValTearOff targets m_currentValue. 301 // m_animValTearOff targets m_currentValue.
301 // m_baseValTearOff targets m_baseValue. 302 // m_baseValTearOff targets m_baseValue.
302 RefPtr<TearOffType> m_baseValTearOff; 303 RefPtr<TearOffType> m_baseValTearOff;
303 RefPtr<TearOffType> m_animValTearOff; 304 RefPtr<TearOffType> m_animValTearOff;
304 }; 305 };
305 306
306 } 307 }
307 308
308 #endif // SVGAnimatedProperty_h 309 #endif // SVGAnimatedProperty_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRectElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698