| Index: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp
|
| index ea70595f1c722c30284df849612415f9cd5fa501..c50b5c666499015fd7d3ed5cce75d63c52805e06 100644
|
| --- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp
|
| +++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp
|
| @@ -11,15 +11,19 @@
|
|
|
| namespace blink {
|
|
|
| +using namespace CSSPropertyParserHelpers;
|
| +
|
| const CSSValue* CSSPropertyAPIImageOrientation::parseSingleValue(
|
| CSSParserTokenRange& range,
|
| const CSSParserContext& context,
|
| CSSPropertyID) {
|
| DCHECK(RuntimeEnabledFeatures::imageOrientationEnabled());
|
| if (range.Peek().Id() == CSSValueFromImage)
|
| - return CSSPropertyParserHelpers::ConsumeIdent(range);
|
| + return ConsumeIdent(range);
|
| if (range.Peek().GetType() != kNumberToken) {
|
| - CSSPrimitiveValue* angle = CSSPropertyParserHelpers::ConsumeAngle(range);
|
| + CSSPrimitiveValue* angle =
|
| + ConsumeAngle(range, context, UnitlessQuirk::kForbid,
|
| + WTF::Optional<UseCounter::Feature>());
|
| if (angle && angle->GetDoubleValue() == 0)
|
| return angle;
|
| }
|
|
|