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

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

Issue 2827003002: CSS Motion Path: delete implementation of motion-path property (Closed)
Patch Set: 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 7abefdccdf2f6209c1dc70d81b7b855478e4c8fc..6e09a3091c092107536f607144e76f558f2e29a4 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -759,24 +759,19 @@ static CSSValue* ConsumeOffsetRotate(CSSParserTokenRange& range) {
}
static CSSValue* ConsumeOffsetPath(CSSParserTokenRange& range,
Bugs Nash 2017/04/20 04:45:11 this has been moved to CSSPropertyOffsetPathUtils
Eric Willigers 2017/04/26 01:27:09 Acknowledged.
- const CSSParserContext* context,
- bool is_motion_path) {
+ const CSSParserContext* context) {
CSSValue* value = ConsumePathOrNone(range);
// Count when we receive a valid path other than 'none'.
if (value && !value->IsIdentifierValue()) {
- if (is_motion_path) {
- context->Count(UseCounter::kCSSMotionInEffect);
- } else {
- context->Count(UseCounter::kCSSOffsetInEffect);
- }
+ context->Count(UseCounter::kCSSOffsetInEffect);
}
return value;
}
// offset: <offset-path> <offset-distance> <offset-rotation>
bool CSSPropertyParser::ConsumeOffsetShorthand(bool important) {
- const CSSValue* offset_path = ConsumeOffsetPath(range_, context_, false);
+ const CSSValue* offset_path = ConsumeOffsetPath(range_, context_);
const CSSValue* offset_distance =
ConsumeLengthOrPercent(range_, context_->Mode(), kValueRangeAll);
const CSSValue* offset_rotation = ConsumeOffsetRotate(range_);
@@ -1950,8 +1945,7 @@ const CSSValue* CSSPropertyParser::ParseSingleValue(
case CSSPropertyD:
return ConsumePathOrNone(range_);
case CSSPropertyOffsetPath:
- return ConsumeOffsetPath(
- range_, context_, unresolved_property == CSSPropertyAliasMotionPath);
+ return ConsumeOffsetPath(range_, context_);
case CSSPropertyOffsetDistance:
return ConsumeLengthOrPercent(range_, context_->Mode(), kValueRangeAll);
case CSSPropertyOffsetRotate:

Powered by Google App Engine
This is Rietveld 408576698