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

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

Issue 2615443007: Implements CSSPropertyAPI for the transform-origin 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 c1f9099aa4cf6269c3de013198897f7ace6e5d74..2ae352939d06b22e9ba67a8468e8ee2a06ec0fba 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
@@ -282,26 +282,6 @@ bool CSSPropertyParser::consumeCSSWideKeyword(CSSPropertyID unresolvedProperty,
return true;
}
-static CSSValueList* consumeTransformOrigin(CSSParserTokenRange& range,
- CSSParserMode cssParserMode,
- UnitlessQuirk unitless) {
- CSSValue* resultX = nullptr;
- CSSValue* resultY = nullptr;
- if (consumeOneOrTwoValuedPosition(range, cssParserMode, unitless, resultX,
- resultY)) {
- CSSValueList* list = CSSValueList::createSpaceSeparated();
- list->append(*resultX);
- list->append(*resultY);
- CSSValue* resultZ = consumeLength(range, cssParserMode, ValueRangeAll);
- if (!resultZ)
- resultZ =
- CSSPrimitiveValue::create(0, CSSPrimitiveValue::UnitType::Pixels);
- list->append(*resultZ);
- return list;
- }
- return nullptr;
-}
-
static CSSFontFeatureValue* consumeFontFeatureTag(CSSParserTokenRange& range) {
// Feature tag name consists of 4-letter characters.
static const unsigned tagNameLength = 4;
@@ -3707,9 +3687,6 @@ const CSSValue* CSSPropertyParser::parseSingleValue(
return consumeCursor(m_range, m_context, inQuirksMode());
case CSSPropertyContain:
return consumeContain(m_range);
- case CSSPropertyTransformOrigin:
- return consumeTransformOrigin(m_range, m_context.mode(),
- UnitlessQuirk::Forbid);
case CSSPropertyContent:
return consumeContent(m_range, m_context);
case CSSPropertyListStyleImage:

Powered by Google App Engine
This is Rietveld 408576698