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

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

Issue 1162793003: Add CSS image-orientation: from-image (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Improved check Created 5 years, 6 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: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index b35048b90cfb950fcaf8039daf17f5d9ebe8d9d6..2c6213b491be85b0080a4d610876040f55316cd6 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -673,6 +673,9 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
}
break;
}
+ case CSSPropertyImageOrientation:
+ validPrimitive = value->id == CSSValueFromImage || (value->unit != CSSPrimitiveValue::CSS_NUMBER && validUnit(value, FAngle) && value->fValue == 0);
+ break;
case CSSPropertyBackgroundBlendMode:
case CSSPropertyBackgroundAttachment:

Powered by Google App Engine
This is Rietveld 408576698