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

Unified Diff: Source/core/animation/css/CSSAnimations.cpp

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Some small fixes to (hopefully) fix some broken tests Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/animation/css/CSSAnimations.cpp
diff --git a/Source/core/animation/css/CSSAnimations.cpp b/Source/core/animation/css/CSSAnimations.cpp
index 8697d4311ba0503be1d3ad1c9b1ef16656b8054a..c26326a420c17dc63812266c553d3f6e6bc90051 100644
--- a/Source/core/animation/css/CSSAnimations.cpp
+++ b/Source/core/animation/css/CSSAnimations.cpp
@@ -90,14 +90,14 @@ static PassRefPtrWillBeRawPtr<StringKeyframeEffectModel> createKeyframeEffectMod
CSSPropertyID property = properties.propertyAt(j).id();
specifiedPropertiesForUseCounter.add(property);
if (property == CSSPropertyAnimationTimingFunction) {
- CSSValue* value = properties.propertyAt(j).value();
+ CSSValue value = properties.propertyAt(j).value();
RefPtr<TimingFunction> timingFunction;
- if (value->isInheritedValue() && parentStyle->animations()) {
+ if (value.isInheritedValue() && parentStyle->animations()) {
timingFunction = parentStyle->animations()->timingFunctionList()[0];
- } else if (value->isValueList()) {
- timingFunction = CSSToStyleMap::mapAnimationTimingFunction(toCSSValueList(value)->item(0));
+ } else if (value.isValueList()) {
+ timingFunction = CSSToStyleMap::mapAnimationTimingFunction(toCSSValueList(value).item(0));
} else {
- ASSERT(value->isCSSWideKeyword());
+ ASSERT(value.isCSSWideKeyword());
timingFunction = CSSTimingData::initialTimingFunction();
}
keyframe->setEasing(timingFunction.release());

Powered by Google App Engine
This is Rietveld 408576698