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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.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/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 8f455bf4d031b1ad4f9e9441711a644586d3936b..a6e55c8631d9d5b45cda4c98fb5003990a609b51 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -407,6 +407,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