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

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

Issue 2609933005: Implements CSSPropertyAPI for the webkit-text-emphasis-style property. (Closed)
Patch Set: rebase Created 3 years, 11 months 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 86ad4654a0e9d2a5a6d88a2198bced2ff31f6400..79b408a61d5e504ed3871cd73b0b146dce8b2b8f 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1349,33 +1349,6 @@ bool CSSPropertyParser::consumeOffsetShorthand(bool important) {
return true;
}
-static CSSValue* consumeTextEmphasisStyle(CSSParserTokenRange& range) {
- CSSValueID id = range.peek().id();
- if (id == CSSValueNone)
- return consumeIdent(range);
-
- if (CSSValue* textEmphasisStyle = consumeString(range))
- return textEmphasisStyle;
-
- CSSIdentifierValue* fill = consumeIdent<CSSValueFilled, CSSValueOpen>(range);
- CSSIdentifierValue* shape =
- consumeIdent<CSSValueDot, CSSValueCircle, CSSValueDoubleCircle,
- CSSValueTriangle, CSSValueSesame>(range);
- if (!fill)
- fill = consumeIdent<CSSValueFilled, CSSValueOpen>(range);
- if (fill && shape) {
- CSSValueList* parsedValues = CSSValueList::createSpaceSeparated();
- parsedValues->append(*fill);
- parsedValues->append(*shape);
- return parsedValues;
- }
- if (fill)
- return fill;
- if (shape)
- return shape;
- return nullptr;
-}
-
static CSSValue* consumeOutlineColor(CSSParserTokenRange& range,
CSSParserMode cssParserMode) {
// Allow the special focus color even in HTML Standard parsing mode.
@@ -3213,8 +3186,6 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
case CSSPropertyOffsetRotate:
case CSSPropertyOffsetRotation:
return consumeOffsetRotate(m_range);
- case CSSPropertyWebkitTextEmphasisStyle:
- return consumeTextEmphasisStyle(m_range);
case CSSPropertyOutlineColor:
return consumeOutlineColor(m_range, m_context->mode());
case CSSPropertyOutlineWidth:

Powered by Google App Engine
This is Rietveld 408576698