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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp

Issue 2520873002: [css-ui] Add support for caret-color property (Closed)
Patch Set: Patch for landing applying suggested changes 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/css/parser/CSSPropertyParser.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
index 1b7bfb4d1f4887d1c40acf5dfef7b605c59800eb..39ac942aad9b8ce76275ccacdd4eb1b6a9b68713 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -3597,6 +3597,10 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
case CSSPropertyColor:
case CSSPropertyBackgroundColor:
return consumeColor(m_range, m_context.mode(), inQuirksMode());
+ case CSSPropertyCaretColor:
+ if (m_range.peek().id() == CSSValueAuto)
+ return consumeIdent(m_range);
+ return consumeColor(m_range, m_context.mode());
case CSSPropertyWebkitBorderStartWidth:
case CSSPropertyWebkitBorderEndWidth:
case CSSPropertyWebkitBorderBeforeWidth:

Powered by Google App Engine
This is Rietveld 408576698