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

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

Issue 2241993002: CSS Motion Path: New names for properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 3 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 10f70dfae877c978858694ede4870cf67fa41850..3aad3829896dd0848a734a949fa466b035fb8002 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -1524,7 +1524,7 @@ static CSSValue* consumePathOrNone(CSSParserTokenRange& range)
return consumePath(range);
}
-static CSSValue* consumeMotionRotation(CSSParserTokenRange& range)
+static CSSValue* consumeOffsetRotation(CSSParserTokenRange& range)
{
CSSValue* angle = consumeAngle(range);
CSSValue* keyword = consumeIdent<CSSValueAuto, CSSValueReverse>(range);
@@ -3326,12 +3326,12 @@ const CSSValue* CSSPropertyParser::parseSingleValue(CSSPropertyID unresolvedProp
case CSSPropertyTextDecorationLine:
return consumeTextDecorationLine(m_range);
case CSSPropertyD:
- case CSSPropertyMotionPath:
+ case CSSPropertyOffsetPath:
return consumePathOrNone(m_range);
- case CSSPropertyMotionOffset:
+ case CSSPropertyOffsetDistance:
return consumeLengthOrPercent(m_range, m_context.mode(), ValueRangeAll);
- case CSSPropertyMotionRotation:
- return consumeMotionRotation(m_range);
+ case CSSPropertyOffsetRotation:
+ return consumeOffsetRotation(m_range);
case CSSPropertyWebkitTextEmphasisStyle:
return consumeTextEmphasisStyle(m_range);
case CSSPropertyOutlineColor:
@@ -4602,6 +4602,8 @@ bool CSSPropertyParser::parseShorthand(CSSPropertyID unresolvedProperty, bool im
return consume4Values(paddingShorthand(), important);
case CSSPropertyMotion:
return consumeShorthandGreedily(motionShorthand(), important);
+ case CSSPropertyOffset:
+ return consumeShorthandGreedily(offsetShorthand(), important);
case CSSPropertyWebkitTextEmphasis:
return consumeShorthandGreedily(webkitTextEmphasisShorthand(), important);
case CSSPropertyOutline:

Powered by Google App Engine
This is Rietveld 408576698