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 StringKeyframe_h | 5 #ifndef StringKeyframe_h |
6 #define StringKeyframe_h | 6 #define StringKeyframe_h |
7 | 7 |
8 #include "core/animation/Keyframe.h" | 8 #include "core/animation/Keyframe.h" |
9 #include "core/css/StylePropertySet.h" | 9 #include "core/css/StylePropertySet.h" |
10 | 10 |
11 #include "wtf/HashMap.h" | 11 #include "wtf/HashMap.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class StyleSheetContents; | 15 class StyleSheetContents; |
16 | 16 |
17 // A specialization of Keyframe that associates user specified keyframe properti
es with either CSS properties or SVG attributes. | 17 // A specialization of Keyframe that associates user specified keyframe |
| 18 // properties with either CSS properties or SVG attributes. |
18 class StringKeyframe : public Keyframe { | 19 class StringKeyframe : public Keyframe { |
19 public: | 20 public: |
20 static PassRefPtr<StringKeyframe> create() { | 21 static PassRefPtr<StringKeyframe> create() { |
21 return adoptRef(new StringKeyframe); | 22 return adoptRef(new StringKeyframe); |
22 } | 23 } |
23 | 24 |
24 void setCSSPropertyValue(const AtomicString& propertyName, | 25 void setCSSPropertyValue(const AtomicString& propertyName, |
25 const String& value, | 26 const String& value, |
26 StyleSheetContents*); | 27 StyleSheetContents*); |
27 void setCSSPropertyValue(CSSPropertyID, | 28 void setCSSPropertyValue(CSSPropertyID, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 value.isCSSPropertySpecificKeyframe()); | 188 value.isCSSPropertySpecificKeyframe()); |
188 DEFINE_TYPE_CASTS(SVGPropertySpecificKeyframe, | 189 DEFINE_TYPE_CASTS(SVGPropertySpecificKeyframe, |
189 Keyframe::PropertySpecificKeyframe, | 190 Keyframe::PropertySpecificKeyframe, |
190 value, | 191 value, |
191 value->isSVGPropertySpecificKeyframe(), | 192 value->isSVGPropertySpecificKeyframe(), |
192 value.isSVGPropertySpecificKeyframe()); | 193 value.isSVGPropertySpecificKeyframe()); |
193 | 194 |
194 } // namespace blink | 195 } // namespace blink |
195 | 196 |
196 #endif | 197 #endif |
OLD | NEW |