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

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

Issue 2662203002: CSS: Rotate support for none and fixed responsive-test.js (Closed)
Patch Set: avoid expectation failure on Mac Created 3 years, 11 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/CSSPropertyAPIRotate.cpp
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIRotate.cpp b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIRotate.cpp
index 081aaa7a1f40befe2d92e805099ed1200b1aaf49..03b87bdb7a89242a457a748e7c3cf0ad31183390 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIRotate.cpp
+++ b/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIRotate.cpp
@@ -4,6 +4,7 @@
#include "core/css/properties/CSSPropertyAPIRotate.h"
+#include "core/CSSValueKeywords.h"
#include "core/css/CSSValueList.h"
#include "core/css/parser/CSSPropertyParserHelpers.h"
#include "platform/RuntimeEnabledFeatures.h"
@@ -14,6 +15,11 @@ const CSSValue* CSSPropertyAPIRotate::parseSingleValue(
CSSParserTokenRange& range,
const CSSParserContext* context) {
DCHECK(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled());
+
+ CSSValueID id = range.peek().id();
+ if (id == CSSValueNone)
+ return CSSPropertyParserHelpers::consumeIdent(range);
+
CSSValueList* list = CSSValueList::createSpaceSeparated();
for (unsigned i = 0; i < 3; i++) { // 3 dimensions of rotation

Powered by Google App Engine
This is Rietveld 408576698