Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp |
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
index 070c725a0c9e87d02d45c3e2a7c9ac80c7f56136..d848a742694be5400eacc12b0b38da0817402edb 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
@@ -2090,7 +2090,8 @@ Color ComputedStyle::colorIncludingFallback(int colorProperty, |
visitedLink ? visitedLinkCaretColor() : caretColor(); |
// TODO(rego): We may want to adjust the caret color if it's the same than |
// the background to ensure good visibility and contrast. |
- result = autoColor.toStyleColor(); |
+ result = autoColor.isAutoColor() ? StyleColor::currentColor() |
+ : autoColor.toStyleColor(); |
break; |
} |
case CSSPropertyColor: |