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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.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/css/CSSAnimatableValueFactory.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
index 57e060c331517bd7792630475db1cfe7fa660113..2dd4b065cfbc1dafbad6f78401e9cdcbe7952b10 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -417,6 +417,12 @@ PassRefPtr<AnimatableValue> CSSAnimatableValueFactory::create(
CSSIdentifierValue::create(CSSValueAuto));
}
return createFromLengthBox(style.clip(), style);
+ case CSSPropertyCaretColor:
+ if (style.caretColor().isAutoColor()) {
+ return AnimatableUnknown::create(
+ CSSIdentifierValue::create(CSSValueAuto));
+ }
+ return createFromColor(property, style);
case CSSPropertyColor:
return createFromColor(property, style);
case CSSPropertyFillOpacity:

Powered by Google App Engine
This is Rietveld 408576698