Index: Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
index 3b91cb6a1a777a5ff7a20f110313673470461037..106ab6bf1c7a71c428a476a2e7d595b9b65f7fbd 100644 |
--- a/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -1484,10 +1484,10 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important) |
parsedValue = parseShapeProperty(propId); |
break; |
case CSSPropertyShapeMargin: |
- validPrimitive = (RuntimeEnabledFeatures::cssShapesEnabled() && !id && validUnit(value, FLength | FPercent | FNonNeg)); |
+ validPrimitive = (!id && validUnit(value, FLength | FPercent | FNonNeg)); |
break; |
case CSSPropertyShapeImageThreshold: |
- validPrimitive = (RuntimeEnabledFeatures::cssShapesEnabled() && !id && validUnit(value, FNumber)); |
+ validPrimitive = (!id && validUnit(value, FNumber)); |
break; |
case CSSPropertyTouchAction: |
@@ -4366,9 +4366,6 @@ static bool isBoxValue(CSSValueID valueId) |
PassRefPtrWillBeRawPtr<CSSValue> CSSPropertyParser::parseShapeProperty(CSSPropertyID propId) |
{ |
- if (!RuntimeEnabledFeatures::cssShapesEnabled()) |
- return nullptr; |
- |
CSSParserValue* value = m_valueList->current(); |
CSSValueID valueId = value->id; |