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

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

Issue 2842933003: CSS Motion Path: delete implementation of offset-rotation property (Closed)
Patch Set: remove offsetRotation from webexposed Created 3 years, 8 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 c07acfa726f8d5a8c4032b6f2db94d3ba5bee0dd..2055a28b17eebcd663c871d9a06cd7f5f19a75b4 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -750,21 +750,21 @@ static CSSValue* ConsumeOffsetRotate(CSSParserTokenRange& range) {
return list;
}
-// offset: <offset-path> <offset-distance> <offset-rotation>
+// offset: <offset-path> <offset-distance> <offset-rotate>
bool CSSPropertyParser::ConsumeOffsetShorthand(bool important) {
const CSSValue* offset_path =
CSSPropertyOffsetPathUtils::ConsumeOffsetPath(range_, context_);
const CSSValue* offset_distance =
ConsumeLengthOrPercent(range_, context_->Mode(), kValueRangeAll);
- const CSSValue* offset_rotation = ConsumeOffsetRotate(range_);
- if (!offset_path || !offset_distance || !offset_rotation || !range_.AtEnd())
+ const CSSValue* offset_rotate = ConsumeOffsetRotate(range_);
+ if (!offset_path || !offset_distance || !offset_rotate || !range_.AtEnd())
return false;
AddProperty(CSSPropertyOffsetPath, CSSPropertyOffset, *offset_path,
important);
AddProperty(CSSPropertyOffsetDistance, CSSPropertyOffset, *offset_distance,
important);
- AddProperty(CSSPropertyOffsetRotation, CSSPropertyOffset, *offset_rotation,
+ AddProperty(CSSPropertyOffsetRotate, CSSPropertyOffset, *offset_rotate,
important);
return true;
@@ -1757,7 +1757,6 @@ const CSSValue* CSSPropertyParser::ParseSingleValue(
case CSSPropertyOffsetDistance:
return ConsumeLengthOrPercent(range_, context_->Mode(), kValueRangeAll);
case CSSPropertyOffsetRotate:
- case CSSPropertyOffsetRotation:
return ConsumeOffsetRotate(range_);
case CSSPropertyWebkitTransformOriginX:
case CSSPropertyWebkitPerspectiveOriginX:

Powered by Google App Engine
This is Rietveld 408576698