| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/svg/SVGLengthTearOff.h" | 35 #include "core/svg/SVGLengthTearOff.h" |
| 36 #include "core/svg/properties/SVGAnimatedProperty.h" | 36 #include "core/svg/properties/SVGAnimatedProperty.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class SVGAnimatedLength : public SVGAnimatedProperty<SVGLength>, | 40 class SVGAnimatedLength : public SVGAnimatedProperty<SVGLength>, |
| 41 public ScriptWrappable { | 41 public ScriptWrappable { |
| 42 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
| 43 | 43 |
| 44 public: | 44 public: |
| 45 static SVGAnimatedLength* create(SVGElement* contextElement, | 45 static SVGAnimatedLength* create( |
| 46 const QualifiedName& attributeName, | 46 SVGElement* contextElement, |
| 47 SVGLength* initialValue) { | 47 const QualifiedName& attributeName, |
| 48 return new SVGAnimatedLength(contextElement, attributeName, initialValue); | 48 SVGLength* initialValue, |
| 49 CSSPropertyID cssPropertyId = CSSPropertyInvalid) { |
| 50 return new SVGAnimatedLength(contextElement, attributeName, initialValue, |
| 51 cssPropertyId); |
| 49 } | 52 } |
| 50 | 53 |
| 51 void setDefaultValueAsString(const String&); | 54 void setDefaultValueAsString(const String&); |
| 52 SVGParsingError setBaseValueAsString(const String&) override; | 55 SVGParsingError setBaseValueAsString(const String&) override; |
| 53 | 56 |
| 54 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 57 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 55 | 58 |
| 56 protected: | 59 protected: |
| 57 SVGAnimatedLength(SVGElement* contextElement, | 60 SVGAnimatedLength(SVGElement* contextElement, |
| 58 const QualifiedName& attributeName, | 61 const QualifiedName& attributeName, |
| 59 SVGLength* initialValue) | 62 SVGLength* initialValue, |
| 63 CSSPropertyID cssPropertyId = CSSPropertyInvalid) |
| 60 : SVGAnimatedProperty<SVGLength>(contextElement, | 64 : SVGAnimatedProperty<SVGLength>(contextElement, |
| 61 attributeName, | 65 attributeName, |
| 62 initialValue) {} | 66 initialValue, |
| 67 cssPropertyId) {} |
| 63 }; | 68 }; |
| 64 | 69 |
| 65 } // namespace blink | 70 } // namespace blink |
| 66 | 71 |
| 67 #endif // SVGAnimatedLength_h | 72 #endif // SVGAnimatedLength_h |
| OLD | NEW |