Index: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
index 93f4240073407a346d487eb672f03f02b661b840..96aaa55c609c7a0d803844a4543d9f1cf65f148d 100644 |
--- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
@@ -531,19 +531,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
validPrimitive = validUnit(value, FInteger); |
break; |
- case CSSPropertyPerspective: |
- if (id == CSSValueNone) { |
- validPrimitive = true; |
- } else if (validUnit(value, FLength) && (m_parsedCalculation || value->fValue > 0)) { |
- validPrimitive = true; |
- } else if (unresolvedProperty == CSSPropertyAliasWebkitPerspective && validUnit(value, FNumber) && value->fValue > 0) { |
- value->setUnit(CSSPrimitiveValue::UnitType::Pixels); |
- validPrimitive = true; |
- } else { |
- return false; |
- } |
- break; |
- |
case CSSPropertyJustifyContent: |
ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled()); |
parsedValue = parseContentDistributionOverflowPosition(); |
@@ -879,6 +866,7 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
case CSSPropertyContent: |
case CSSPropertyListStyleImage: |
case CSSPropertyListStyle: |
+ case CSSPropertyPerspective: |
validPrimitive = false; |
break; |