| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SVGPropertyHelper_h | 5 #ifndef SVGPropertyHelper_h |
| 6 #define SVGPropertyHelper_h | 6 #define SVGPropertyHelper_h |
| 7 | 7 |
| 8 #include "core/svg/properties/SVGProperty.h" | 8 #include "core/svg/properties/SVGProperty.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 template<typename Derived> | 12 template<typename Derived> |
| 13 class SVGPropertyHelper : public SVGPropertyBase { | 13 class SVGPropertyHelper : public SVGPropertyBase { |
| 14 public: | 14 public: |
| 15 SVGPropertyHelper() | 15 SVGPropertyHelper() |
| 16 : SVGPropertyBase(Derived::classType()) | 16 : SVGPropertyBase(Derived::classType()) |
| 17 { | 17 { |
| 18 } | 18 } |
| 19 | 19 |
| 20 virtual PassRefPtrWillBeRawPtr<SVGPropertyBase> cloneForAnimation(const Stri
ng& value) const | 20 virtual RawPtr<SVGPropertyBase> cloneForAnimation(const String& value) const |
| 21 { | 21 { |
| 22 RefPtrWillBeRawPtr<Derived> property = Derived::create(); | 22 RawPtr<Derived> property = Derived::create(); |
| 23 property->setValueAsString(value); | 23 property->setValueAsString(value); |
| 24 return property.release(); | 24 return property.release(); |
| 25 } | 25 } |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace blink | 28 } // namespace blink |
| 29 | 29 |
| 30 #endif // SVGPropertyHelper_h | 30 #endif // SVGPropertyHelper_h |
| OLD | NEW |