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 21 matching lines...) Expand all Loading... |
32 #define SVGAnimatedColor_h | 32 #define SVGAnimatedColor_h |
33 | 33 |
34 #include "core/css/StyleColor.h" | 34 #include "core/css/StyleColor.h" |
35 #include "core/svg/properties/SVGProperty.h" | 35 #include "core/svg/properties/SVGProperty.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class SVGAnimationElement; | 39 class SVGAnimationElement; |
40 | 40 |
41 // StyleColor adaptor to SVGPropertyBase. This is only used for SMIL animations. | 41 // StyleColor adaptor to SVGPropertyBase. This is only used for SMIL animations. |
42 // FIXME: WebAnimations: Replacable with AnimatableColor once SMIL animations ar
e implemented in WebAnimations. | 42 // FIXME: WebAnimations: Replacable with AnimatableColor once SMIL animations |
| 43 // are implemented in WebAnimations. |
43 class SVGColorProperty final : public SVGPropertyBase { | 44 class SVGColorProperty final : public SVGPropertyBase { |
44 public: | 45 public: |
45 static SVGColorProperty* create(const String& colorString) { | 46 static SVGColorProperty* create(const String& colorString) { |
46 return new SVGColorProperty(colorString); | 47 return new SVGColorProperty(colorString); |
47 } | 48 } |
48 | 49 |
49 SVGPropertyBase* cloneForAnimation(const String&) const override; | 50 SVGPropertyBase* cloneForAnimation(const String&) const override; |
50 String valueAsString() const override; | 51 String valueAsString() const override; |
51 | 52 |
52 void add(SVGPropertyBase*, SVGElement*) override; | 53 void add(SVGPropertyBase*, SVGElement*) override; |
(...skipping 13 matching lines...) Expand all Loading... |
66 explicit SVGColorProperty(const String&); | 67 explicit SVGColorProperty(const String&); |
67 | 68 |
68 StyleColor m_styleColor; | 69 StyleColor m_styleColor; |
69 }; | 70 }; |
70 | 71 |
71 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGColorProperty); | 72 DEFINE_SVG_PROPERTY_TYPE_CASTS(SVGColorProperty); |
72 | 73 |
73 } // namespace blink | 74 } // namespace blink |
74 | 75 |
75 #endif // SVGAnimatedColor_h | 76 #endif // SVGAnimatedColor_h |
OLD | NEW |