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 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 String& value, | 28 const String& value, |
28 StyleSheetContents*); | 29 StyleSheetContents*); |
29 MutableStylePropertySet::SetResult setCSSPropertyValue(CSSPropertyID, | 30 MutableStylePropertySet::SetResult setCSSPropertyValue(CSSPropertyID, |
30 const String& value, | 31 const String& value, |
31 StyleSheetContents*); | 32 StyleSheetContents*); |
32 void setCSSPropertyValue(CSSPropertyID, const CSSValue&); | 33 void setCSSPropertyValue(CSSPropertyID, const CSSValue&); |
33 void setPresentationAttributeValue(CSSPropertyID, | 34 void setPresentationAttributeValue(CSSPropertyID, |
34 const String& value, | 35 const String& value, |
35 StyleSheetContents*); | 36 StyleSheetContents*); |
36 void setSVGAttributeValue(const QualifiedName&, const String& value); | 37 void setSVGAttributeValue(const QualifiedName&, const String& value); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 value.isCSSPropertySpecificKeyframe()); | 181 value.isCSSPropertySpecificKeyframe()); |
181 DEFINE_TYPE_CASTS(SVGPropertySpecificKeyframe, | 182 DEFINE_TYPE_CASTS(SVGPropertySpecificKeyframe, |
182 Keyframe::PropertySpecificKeyframe, | 183 Keyframe::PropertySpecificKeyframe, |
183 value, | 184 value, |
184 value->isSVGPropertySpecificKeyframe(), | 185 value->isSVGPropertySpecificKeyframe(), |
185 value.isSVGPropertySpecificKeyframe()); | 186 value.isSVGPropertySpecificKeyframe()); |
186 | 187 |
187 } // namespace blink | 188 } // namespace blink |
188 | 189 |
189 #endif | 190 #endif |
OLD | NEW |