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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 // SVGAnimated* DOM Spec implementations: | 206 // SVGAnimated* DOM Spec implementations: |
207 | 207 |
208 // baseVal()/setBaseVal()/animVal() are only to be used from SVG DOM impleme
ntation. | 208 // baseVal()/setBaseVal()/animVal() are only to be used from SVG DOM impleme
ntation. |
209 // Use currentValue() from C++ code. | 209 // Use currentValue() from C++ code. |
210 PrimitiveType baseVal() | 210 PrimitiveType baseVal() |
211 { | 211 { |
212 return this->baseValue()->value(); | 212 return this->baseValue()->value(); |
213 } | 213 } |
214 | 214 |
215 void setBaseVal(PrimitiveType value, blink::ExceptionState& exceptionState) | 215 void setBaseVal(PrimitiveType value, ExceptionState& exceptionState) |
216 { | 216 { |
217 if (this->isReadOnly()) { | 217 if (this->isReadOnly()) { |
218 exceptionState.throwDOMException(NoModificationAllowedError, "The at
tribute is read-only."); | 218 exceptionState.throwDOMException(NoModificationAllowedError, "The at
tribute is read-only."); |
219 return; | 219 return; |
220 } | 220 } |
221 | 221 |
222 this->baseValue()->setValue(value); | 222 this->baseValue()->setValue(value); |
223 m_baseValueUpdated = true; | 223 m_baseValueUpdated = true; |
224 | 224 |
225 ASSERT(this->attributeName() != QualifiedName::null()); | 225 ASSERT(this->attributeName() != QualifiedName::null()); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // When animated: | 321 // When animated: |
322 // m_animValTearOff targets m_currentValue. | 322 // m_animValTearOff targets m_currentValue. |
323 // m_baseValTearOff targets m_baseValue. | 323 // m_baseValTearOff targets m_baseValue. |
324 RefPtrWillBeMember<TearOffType> m_baseValTearOff; | 324 RefPtrWillBeMember<TearOffType> m_baseValTearOff; |
325 RefPtrWillBeMember<TearOffType> m_animValTearOff; | 325 RefPtrWillBeMember<TearOffType> m_animValTearOff; |
326 }; | 326 }; |
327 | 327 |
328 } // namespace blink | 328 } // namespace blink |
329 | 329 |
330 #endif // SVGAnimatedProperty_h | 330 #endif // SVGAnimatedProperty_h |
OLD | NEW |