| 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 | 17 // A specialization of Keyframe that associates user specified keyframe |
| 18 // properties with either CSS properties or SVG attributes. | 18 // properties with either CSS properties or SVG attributes. |
| 19 class StringKeyframe : public Keyframe { | 19 class CORE_EXPORT StringKeyframe : public Keyframe { |
| 20 public: | 20 public: |
| 21 static PassRefPtr<StringKeyframe> create() { | 21 static PassRefPtr<StringKeyframe> create() { |
| 22 return adoptRef(new StringKeyframe); | 22 return adoptRef(new StringKeyframe); |
| 23 } | 23 } |
| 24 | 24 |
| 25 MutableStylePropertySet::SetResult setCSSPropertyValue( | 25 MutableStylePropertySet::SetResult setCSSPropertyValue( |
| 26 const AtomicString& propertyName, | 26 const AtomicString& propertyName, |
| 27 const PropertyRegistry*, | 27 const PropertyRegistry*, |
| 28 const String& value, | 28 const String& value, |
| 29 StyleSheetContents*); | 29 StyleSheetContents*); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 value.isCSSPropertySpecificKeyframe()); | 181 value.isCSSPropertySpecificKeyframe()); |
| 182 DEFINE_TYPE_CASTS(SVGPropertySpecificKeyframe, | 182 DEFINE_TYPE_CASTS(SVGPropertySpecificKeyframe, |
| 183 Keyframe::PropertySpecificKeyframe, | 183 Keyframe::PropertySpecificKeyframe, |
| 184 value, | 184 value, |
| 185 value->isSVGPropertySpecificKeyframe(), | 185 value->isSVGPropertySpecificKeyframe(), |
| 186 value.isSVGPropertySpecificKeyframe()); | 186 value.isSVGPropertySpecificKeyframe()); |
| 187 | 187 |
| 188 } // namespace blink | 188 } // namespace blink |
| 189 | 189 |
| 190 #endif | 190 #endif |
| OLD | NEW |