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

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

Issue 2610893003: Implements CSSPropertyAPI for the stroke-dasharray property. (Closed)
Patch Set: changed reference to pointer 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 31c639bc8a2f994292a8c3a38827eaf87d938d7c..94ed419d6b20c25f7aa9d1d4612fdb73d8066034 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1711,22 +1711,6 @@ static CSSValue* consumeNoneOrURI(CSSParserTokenRange& range) {
return consumeUrl(range);
}
-static CSSValue* consumeStrokeDasharray(CSSParserTokenRange& range) {
- CSSValueID id = range.peek().id();
- if (id == CSSValueNone)
- return consumeIdent(range);
-
- CSSValueList* dashes = CSSValueList::createCommaSeparated();
- do {
- CSSPrimitiveValue* dash =
- consumeLengthOrPercent(range, SVGAttributeMode, ValueRangeNonNegative);
- if (!dash || (consumeCommaIncludingWhitespace(range) && range.atEnd()))
- return nullptr;
- dashes->append(*dash);
- } while (!range.atEnd());
- return dashes;
-}
-
static CSSValue* consumeBaselineShift(CSSParserTokenRange& range) {
CSSValueID id = range.peek().id();
if (id == CSSValueBaseline || id == CSSValueSub || id == CSSValueSuper)
@@ -3332,8 +3316,6 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
case CSSPropertyFlexGrow:
case CSSPropertyFlexShrink:
return consumeNumber(m_range, ValueRangeNonNegative);
- case CSSPropertyStrokeDasharray:
- return consumeStrokeDasharray(m_range);
case CSSPropertyColumnRuleWidth:
return consumeColumnRuleWidth(m_range, m_context->mode());
case CSSPropertyStrokeOpacity:

Powered by Google App Engine
This is Rietveld 408576698