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

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

Issue 2612163003: Implements CSSPropertyAPI for the tab-size property. (Closed)
Patch Set: format 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 94ed419d6b20c25f7aa9d1d4612fdb73d8066034..6caab9c9efc28dca15ad1dae816337677293362c 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -613,14 +613,6 @@ static CSSValue* consumeSpacing(CSSParserTokenRange& range,
UnitlessQuirk::Allow);
}
-static CSSValue* consumeTabSize(CSSParserTokenRange& range,
- CSSParserMode cssParserMode) {
- CSSPrimitiveValue* parsedValue = consumeInteger(range, 0);
- if (parsedValue)
- return parsedValue;
- return consumeLength(range, cssParserMode, ValueRangeNonNegative);
-}
-
static CSSValue* consumeTextSizeAdjust(CSSParserTokenRange& range,
CSSParserMode cssParserMode) {
if (range.peek().id() == CSSValueAuto)
@@ -3106,8 +3098,6 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
case CSSPropertyLetterSpacing:
case CSSPropertyWordSpacing:
return consumeSpacing(m_range, m_context->mode());
- case CSSPropertyTabSize:
- return consumeTabSize(m_range, m_context->mode());
case CSSPropertyTextSizeAdjust:
return consumeTextSizeAdjust(m_range, m_context->mode());
case CSSPropertyFontSize:

Powered by Google App Engine
This is Rietveld 408576698