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

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

Issue 2615813002: Implements CSSPropertyAPI for the webkit-line-clamp 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 17d1111e413ff3515c903e49487bc59cd9384401..86ad4654a0e9d2a5a6d88a2198bced2ff31f6400 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -813,17 +813,6 @@ static CSSValue* consumeTouchAction(CSSParserTokenRange& range) {
return list;
}
-static CSSPrimitiveValue* consumeLineClamp(CSSParserTokenRange& range) {
- if (range.peek().type() != PercentageToken &&
- range.peek().type() != NumberToken)
- return nullptr;
- CSSPrimitiveValue* clampValue = consumePercent(range, ValueRangeNonNegative);
- if (clampValue)
- return clampValue;
- // When specifying number of lines, don't allow 0 as a valid value.
- return consumePositiveInteger(range);
-}
-
static CSSValue* consumeLocale(CSSParserTokenRange& range) {
if (range.peek().id() == CSSValueAuto)
return consumeIdent(range);
@@ -3116,8 +3105,6 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
case CSSPropertyObjectPosition:
case CSSPropertyPerspectiveOrigin:
return consumePosition(m_range, m_context->mode(), UnitlessQuirk::Forbid);
- case CSSPropertyWebkitLineClamp:
- return consumeLineClamp(m_range);
case CSSPropertyWebkitFontSizeDelta:
return consumeLength(m_range, m_context->mode(), ValueRangeAll,
UnitlessQuirk::Allow);

Powered by Google App Engine
This is Rietveld 408576698