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

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: 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 d2cf85dbc71e1ba03109c949f268114110a6463c..101a4488c9f800ae2ee7ec1e2d0e45989b12baed 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1665,33 +1665,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.
@@ -3663,8 +3636,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 CSSPropertyOutlineOffset:

Powered by Google App Engine
This is Rietveld 408576698