| 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 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 } | 48 } |
| 49 | 49 |
| 50 const CSSValue& presentationAttributeValue(CSSPropertyID property) const { | 50 const CSSValue& presentationAttributeValue(CSSPropertyID property) const { |
| 51 int index = m_presentationAttributeMap->findPropertyIndex(property); | 51 int index = m_presentationAttributeMap->findPropertyIndex(property); |
| 52 CHECK_GE(index, 0); | 52 CHECK_GE(index, 0); |
| 53 return m_presentationAttributeMap->propertyAt(static_cast<unsigned>(index)) | 53 return m_presentationAttributeMap->propertyAt(static_cast<unsigned>(index)) |
| 54 .value(); | 54 .value(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 String svgPropertyValue(const QualifiedName& attributeName) const { | 57 String svgPropertyValue(const QualifiedName& attributeName) const { |
| 58 return m_svgAttributeMap.get(&attributeName); | 58 return m_svgAttributeMap.at(&attributeName); |
| 59 } | 59 } |
| 60 | 60 |
| 61 PropertyHandleSet properties() const override; | 61 PropertyHandleSet properties() const override; |
| 62 | 62 |
| 63 class CSSPropertySpecificKeyframe | 63 class CSSPropertySpecificKeyframe |
| 64 : public Keyframe::PropertySpecificKeyframe { | 64 : public Keyframe::PropertySpecificKeyframe { |
| 65 public: | 65 public: |
| 66 static PassRefPtr<CSSPropertySpecificKeyframe> create( | 66 static PassRefPtr<CSSPropertySpecificKeyframe> create( |
| 67 double offset, | 67 double offset, |
| 68 PassRefPtr<TimingFunction> easing, | 68 PassRefPtr<TimingFunction> easing, |
| (...skipping 112 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 |