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

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

Issue 2614833003: Implements CSSPropertyAPI for the rotate property. (Closed)
Patch Set: dependencies 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/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 c1f9099aa4cf6269c3de013198897f7ace6e5d74..5735157c1c3f905bcc4fd1f6c4a940af29f2fa2a 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -717,28 +717,6 @@ static CSSValue* consumeLineHeight(CSSParserTokenRange& range,
return consumeLengthOrPercent(range, cssParserMode, ValueRangeNonNegative);
}
-static CSSValueList* consumeRotation(CSSParserTokenRange& range) {
- ASSERT(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled());
- CSSValueList* list = CSSValueList::createSpaceSeparated();
-
- for (unsigned i = 0; i < 3; i++) { // 3 dimensions of rotation
- CSSValue* dimension = consumeNumber(range, ValueRangeAll);
- if (!dimension) {
- if (i == 0)
- break;
- return nullptr;
- }
- list->append(*dimension);
- }
-
- CSSValue* rotation = consumeAngle(range);
- if (!rotation)
- return nullptr;
- list->append(*rotation);
-
- return list;
-}
-
static CSSValueList* consumeScale(CSSParserTokenRange& range) {
ASSERT(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled());
@@ -3445,8 +3423,6 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
return consumeFontSize(m_range, m_context.mode(), UnitlessQuirk::Allow);
case CSSPropertyLineHeight:
return consumeLineHeight(m_range, m_context.mode());
- case CSSPropertyRotate:
- return consumeRotation(m_range);
case CSSPropertyScale:
return consumeScale(m_range);
case CSSPropertyWebkitBorderHorizontalSpacing:

Powered by Google App Engine
This is Rietveld 408576698