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 cb27b6b55f89c8eb1707cfce2d21562dcd142272..1b7bfb4d1f4887d1c40acf5dfef7b605c59800eb 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -731,21 +731,21 @@ static CSSValueList* consumeRotation(CSSParserTokenRange& range) { |
ASSERT(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled()); |
CSSValueList* list = CSSValueList::createSpaceSeparated(); |
- CSSValue* rotation = consumeAngle(range); |
- if (!rotation) |
- return nullptr; |
- list->append(*rotation); |
- |
- if (range.atEnd()) |
- return list; |
- |
for (unsigned i = 0; i < 3; i++) { // 3 dimensions of rotation |
CSSValue* dimension = consumeNumber(range, ValueRangeAll); |
- if (!dimension) |
+ if (!dimension) { |
+ if (i == 0) |
+ break; |
return nullptr; |
+ } |
list->append(*dimension); |
} |
+ CSSValue* rotation = consumeAngle(range); |
+ if (!rotation) |
+ return nullptr; |
+ list->append(*rotation); |
+ |
return list; |
} |