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

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

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Add new baselines for Mac and Windows Created 4 years, 1 month 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/ColorPropertyFunctions.cpp
diff --git a/third_party/WebKit/Source/core/animation/ColorPropertyFunctions.cpp b/third_party/WebKit/Source/core/animation/ColorPropertyFunctions.cpp
index 5755a3c6a58da258978f7c5655cbc315613193a5..391a9a902cb778fd31bff09d8820f3cf57d4cb28 100644
--- a/third_party/WebKit/Source/core/animation/ColorPropertyFunctions.cpp
+++ b/third_party/WebKit/Source/core/animation/ColorPropertyFunctions.cpp
@@ -26,6 +26,8 @@ StyleColor ColorPropertyFunctions::getUnvisitedColor(
return style.borderTopColor();
case CSSPropertyBorderBottomColor:
return style.borderBottomColor();
+ case CSSPropertyCaretColor:
+ return style.caretColor();
case CSSPropertyColor:
return style.color();
case CSSPropertyOutlineColor:
@@ -67,6 +69,8 @@ StyleColor ColorPropertyFunctions::getVisitedColor(CSSPropertyID property,
return style.visitedLinkBorderTopColor();
case CSSPropertyBorderBottomColor:
return style.visitedLinkBorderBottomColor();
+ case CSSPropertyCaretColor:
+ return style.visitedLinkCaretColor();
case CSSPropertyColor:
return style.visitedLinkColor();
case CSSPropertyOutlineColor:
@@ -114,6 +118,9 @@ void ColorPropertyFunctions::setUnvisitedColor(CSSPropertyID property,
case CSSPropertyBorderTopColor:
style.setBorderTopColor(color);
return;
+ case CSSPropertyCaretColor:
+ style.setCaretColor(color);
+ return;
case CSSPropertyColor:
style.setColor(color);
return;
@@ -163,6 +170,9 @@ void ColorPropertyFunctions::setVisitedColor(CSSPropertyID property,
case CSSPropertyBorderTopColor:
style.setVisitedLinkBorderTopColor(color);
return;
+ case CSSPropertyCaretColor:
+ style.setVisitedLinkCaretColor(color);
+ return;
case CSSPropertyColor:
style.setVisitedLinkColor(color);
return;

Powered by Google App Engine
This is Rietveld 408576698