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

Unified Diff: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp

Issue 2537373005: [css-ui] Make caret-color animatable (Closed)
Patch Set: Patch for landing adding TODO Created 4 years 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: third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
index 93f1624dc4358cfca72214bac760bd8926ae8fde..67f0b8e72d31bba5b796ac6efdd8b8985b4c03fd 100644
--- a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
@@ -184,9 +184,10 @@ InterpolationValue CSSColorInterpolationType::maybeConvertNeutral(
InterpolationValue CSSColorInterpolationType::maybeConvertInitial(
const StyleResolverState&,
ConversionCheckers& conversionCheckers) const {
- const StyleColor initialColor =
- ColorPropertyFunctions::getInitialColor(cssProperty());
- return convertStyleColorPair(initialColor, initialColor);
+ StyleColor initialColor;
+ if (ColorPropertyFunctions::getInitialColor(cssProperty(), initialColor))
+ return convertStyleColorPair(initialColor, initialColor);
+ return nullptr;
}
InterpolationValue CSSColorInterpolationType::maybeConvertInherit(

Powered by Google App Engine
This is Rietveld 408576698