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: |