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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 2537373005: [css-ui] Make caret-color animatable (Closed)
Patch Set: 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 6641d8abc3643b2a574912dfe67815257a195630..9aa512c93e887a2479164f6ba8f415ed90cab154 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -407,6 +407,16 @@ PassRefPtr<AnimatableValue> CSSAnimatableValueFactory::create(
CSSIdentifierValue::create(CSSValueAuto));
}
return createFromLengthBox(style.clip(), style);
+ case CSSPropertyCaretColor:
+ if (style.caretColor().isAutoColor()) {
+ return AnimatableUnknown::create(
+ CSSIdentifierValue::create(CSSValueAuto));
+ }
+ if (style.caretColor().isCurrentColor()) {
+ return AnimatableUnknown::create(
+ CSSIdentifierValue::create(CSSValueCurrentcolor));
+ }
+ return createFromColor(property, style);
case CSSPropertyColor:
return createFromColor(property, style);
case CSSPropertyFillOpacity:

Powered by Google App Engine
This is Rietveld 408576698