| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 const QualifiedName& attributeName, | 47 const QualifiedName& attributeName, |
| 48 SVGLength* initialValue, | 48 SVGLength* initialValue, |
| 49 CSSPropertyID cssPropertyId = CSSPropertyInvalid) { | 49 CSSPropertyID cssPropertyId = CSSPropertyInvalid) { |
| 50 return new SVGAnimatedLength(contextElement, attributeName, initialValue, | 50 return new SVGAnimatedLength(contextElement, attributeName, initialValue, |
| 51 cssPropertyId); | 51 cssPropertyId); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void setDefaultValueAsString(const String&); | 54 void setDefaultValueAsString(const String&); |
| 55 SVGParsingError setBaseValueAsString(const String&) override; | 55 SVGParsingError setBaseValueAsString(const String&) override; |
| 56 | 56 |
| 57 const CSSValue* cssValue() const { |
| 58 return ¤tValue()->asCSSPrimitiveValue(); |
| 59 } |
| 60 |
| 57 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 61 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 58 | 62 |
| 59 protected: | 63 protected: |
| 60 SVGAnimatedLength(SVGElement* contextElement, | 64 SVGAnimatedLength(SVGElement* contextElement, |
| 61 const QualifiedName& attributeName, | 65 const QualifiedName& attributeName, |
| 62 SVGLength* initialValue, | 66 SVGLength* initialValue, |
| 63 CSSPropertyID cssPropertyId = CSSPropertyInvalid) | 67 CSSPropertyID cssPropertyId = CSSPropertyInvalid) |
| 64 : SVGAnimatedProperty<SVGLength>(contextElement, | 68 : SVGAnimatedProperty<SVGLength>(contextElement, |
| 65 attributeName, | 69 attributeName, |
| 66 initialValue, | 70 initialValue, |
| 67 cssPropertyId) {} | 71 cssPropertyId) {} |
| 68 }; | 72 }; |
| 69 | 73 |
| 70 } // namespace blink | 74 } // namespace blink |
| 71 | 75 |
| 72 #endif // SVGAnimatedLength_h | 76 #endif // SVGAnimatedLength_h |
| OLD | NEW |