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

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

Issue 2614833003: Implements CSSPropertyAPI for the rotate property. (Closed)
Patch Set: rebase 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 74f2e0de3942f3ee97adcfdb9d5e891e21321cda..ffed27b437564ebb3fd62aaf9f5eda30a6d356fe 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -652,28 +652,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 CSSValue* consumeScale(CSSParserTokenRange& range) {
ASSERT(RuntimeEnabledFeatures::cssIndependentTransformPropertiesEnabled());
@@ -3203,8 +3181,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