OLD | NEW |
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 void setBaseVal(PrimitiveType value, WebCore::ExceptionState& exceptionState
) | 201 void setBaseVal(PrimitiveType value, WebCore::ExceptionState& exceptionState
) |
202 { | 202 { |
203 if (this->isReadOnly()) { | 203 if (this->isReadOnly()) { |
204 exceptionState.throwDOMException(NoModificationAllowedError, "The at
tribute is read-only."); | 204 exceptionState.throwDOMException(NoModificationAllowedError, "The at
tribute is read-only."); |
205 return; | 205 return; |
206 } | 206 } |
207 | 207 |
208 this->baseValue()->setValue(value); | 208 this->baseValue()->setValue(value); |
209 m_baseValueUpdated = true; | 209 m_baseValueUpdated = true; |
210 | 210 |
211 ASSERT(this->attributeName() != nullQName()); | 211 ASSERT(this->attributeName() != QualifiedName::null()); |
212 this->contextElement()->invalidateSVGAttributes(); | 212 this->contextElement()->invalidateSVGAttributes(); |
213 this->contextElement()->svgAttributeChanged(this->attributeName()); | 213 this->contextElement()->svgAttributeChanged(this->attributeName()); |
214 } | 214 } |
215 | 215 |
216 PrimitiveType animVal() | 216 PrimitiveType animVal() |
217 { | 217 { |
218 return this->currentValue()->value(); | 218 return this->currentValue()->value(); |
219 } | 219 } |
220 | 220 |
221 protected: | 221 protected: |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // When animated: | 300 // When animated: |
301 // m_animValTearOff targets m_currentValue. | 301 // m_animValTearOff targets m_currentValue. |
302 // m_baseValTearOff targets m_baseValue. | 302 // m_baseValTearOff targets m_baseValue. |
303 RefPtr<TearOffType> m_baseValTearOff; | 303 RefPtr<TearOffType> m_baseValTearOff; |
304 RefPtr<TearOffType> m_animValTearOff; | 304 RefPtr<TearOffType> m_animValTearOff; |
305 }; | 305 }; |
306 | 306 |
307 } | 307 } |
308 | 308 |
309 #endif // SVGAnimatedProperty_h | 309 #endif // SVGAnimatedProperty_h |
OLD | NEW |