Index: Source/core/animation/KeyframeEffectModel.cpp |
diff --git a/Source/core/animation/KeyframeEffectModel.cpp b/Source/core/animation/KeyframeEffectModel.cpp |
index 6e816590e3b7e70b6a7804d803c9ff881c81eb3b..82afcfafe31725322c888c40998a0ca0d494a2eb 100644 |
--- a/Source/core/animation/KeyframeEffectModel.cpp |
+++ b/Source/core/animation/KeyframeEffectModel.cpp |
@@ -250,12 +250,13 @@ void KeyframeEffectModel::ensureKeyframeGroups() const |
for (PropertySet::const_iterator propertyIter = keyframeProperties.begin(); propertyIter != keyframeProperties.end(); ++propertyIter) { |
CSSPropertyID property = *propertyIter; |
KeyframeGroupMap::iterator groupIter = m_keyframeGroups->find(property); |
- if (groupIter == m_keyframeGroups->end()) { |
- KeyframeGroupMap::AddResult result = m_keyframeGroups->add(property, adoptPtr(new PropertySpecificKeyframeGroup)); |
- ASSERT(result.isNewEntry); |
- groupIter = result.iterator; |
- } |
- groupIter->value->appendKeyframe(adoptPtr( |
+ PropertySpecificKeyframeGroup* group; |
+ if (groupIter == m_keyframeGroups->end()) |
+ group = m_keyframeGroups->add(property, adoptPtr(new PropertySpecificKeyframeGroup)).storedValue->value.get(); |
+ else |
+ group = groupIter->value.get(); |
+ |
+ group->appendKeyframe(adoptPtr( |
new PropertySpecificKeyframe(keyframe->offset(), keyframe->easing(), keyframe->propertyValue(property), keyframe->composite()))); |
} |
} |