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

Unified Diff: Source/core/animation/AnimationInputHelpers.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: Rebase Created 5 years, 5 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/AnimationInputHelpers.cpp
diff --git a/Source/core/animation/AnimationInputHelpers.cpp b/Source/core/animation/AnimationInputHelpers.cpp
index 22687ac7a71bcc065a6f17eef7ddbc25d58b7a55..9449f43176d5018961dd6d6633e7e3e3daf4f64f 100644
--- a/Source/core/animation/AnimationInputHelpers.cpp
+++ b/Source/core/animation/AnimationInputHelpers.cpp
@@ -33,12 +33,12 @@ PassRefPtr<TimingFunction> AnimationInputHelpers::parseTimingFunction(const Stri
if (string.isEmpty())
return nullptr;
- RefPtrWillBeRawPtr<CSSValue> value = CSSParser::parseSingleValue(CSSPropertyTransitionTimingFunction, string);
+ NullableCSSValue value = CSSParser::parseSingleValue(CSSPropertyTransitionTimingFunction, string);
if (!value || !value->isValueList()) {
ASSERT(!value || value->isCSSWideKeyword());
return nullptr;
}
- CSSValueList* valueList = toCSSValueList(value.get());
+ CSSValueList* valueList = toCSSValueList(value);
if (valueList->length() > 1)
return nullptr;
return CSSToStyleMap::mapAnimationTimingFunction(valueList->item(0), true);
« no previous file with comments | « Source/build/scripts/templates/StyleBuilderFunctions.h.tmpl ('k') | Source/core/animation/CSSValueInterpolationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698