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

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

Issue 2537373005: [css-ui] Make caret-color animatable (Closed)
Patch Set: Rebased patch 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..c81be56d7f06b3e1e95c868ae79fd34e95e9998e 100644
--- a/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSColorInterpolationType.cpp
@@ -184,6 +184,8 @@ InterpolationValue CSSColorInterpolationType::maybeConvertNeutral(
InterpolationValue CSSColorInterpolationType::maybeConvertInitial(
const StyleResolverState&,
ConversionCheckers& conversionCheckers) const {
+ if (cssProperty() == CSSPropertyCaretColor)
+ return nullptr;
alancutter (OOO until 2018) 2016/12/15 22:27:11 Make getInitialColor() return a bool instead of th
Manuel Rego 2016/12/19 12:28:31 Done.
const StyleColor initialColor =
ColorPropertyFunctions::getInitialColor(cssProperty());
return convertStyleColorPair(initialColor, initialColor);

Powered by Google App Engine
This is Rietveld 408576698