Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: third_party/WebKit/Source/core/animation/StringKeyframe.h

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698