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

Unified Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp

Issue 2898133002: CSS: Use count unitless 0 supplied as <angle> (Closed)
Patch Set: test custom property Created 3 years, 7 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/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..d23c64c38f8fedbd309562c52a71c08d06fa215f 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIImageOrientation.cpp
@@ -11,15 +11,18 @@
namespace blink {
+using namespace CSSPropertyParserHelpers;
Bugs Nash 2017/05/24 06:24:20 please add this namespace change in the apis to th
+
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, UseCounter::kNumberOfFeatures);
if (angle && angle->GetDoubleValue() == 0)
return angle;
}

Powered by Google App Engine
This is Rietveld 408576698