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

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

Issue 2564703002: CSS Motion Path: Deprecate motion-* and offset-rotation (Closed)
Patch Set: Created 4 years 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 cd0ae887f2f9118acce26762d7799ef670491ea0..69169c1a17ecd52d7c1e44cbf9017237c3037490 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1601,7 +1601,7 @@ static CSSValue* consumePathOrNone(CSSParserTokenRange& range) {
return consumePath(range);
}
-static CSSValue* consumeOffsetRotation(CSSParserTokenRange& range) {
+static CSSValue* consumeOffsetRotate(CSSParserTokenRange& range) {
CSSValue* angle = consumeAngle(range);
CSSValue* keyword = consumeIdent<CSSValueAuto, CSSValueReverse>(range);
if (!angle && !keyword)
@@ -1662,7 +1662,7 @@ bool CSSPropertyParser::consumeOffsetShorthand(bool important) {
consumeOffsetPath(m_range, m_context.useCounter(), false);
const CSSValue* offsetDistance =
consumeLengthOrPercent(m_range, m_context.mode(), ValueRangeAll);
- const CSSValue* offsetRotation = consumeOffsetRotation(m_range);
+ const CSSValue* offsetRotation = consumeOffsetRotate(m_range);
if (!offsetPath || !offsetDistance || !offsetRotation || !m_range.atEnd())
return false;
@@ -3661,7 +3661,7 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
return consumeLengthOrPercent(m_range, m_context.mode(), ValueRangeAll);
case CSSPropertyOffsetRotate:
case CSSPropertyOffsetRotation:
- return consumeOffsetRotation(m_range);
+ return consumeOffsetRotate(m_range);
case CSSPropertyWebkitTextEmphasisStyle:
return consumeTextEmphasisStyle(m_range);
case CSSPropertyOutlineColor:

Powered by Google App Engine
This is Rietveld 408576698