| Index: Source/core/css/parser/CSSPropertyParser.cpp
|
| diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
|
| index 5b96d311d4b379b7987a3f108b7fedc67d61f18f..d99958effea56e8a347e7a1bff2b4aac5426dd5c 100644
|
| --- a/Source/core/css/parser/CSSPropertyParser.cpp
|
| +++ b/Source/core/css/parser/CSSPropertyParser.cpp
|
| @@ -1138,19 +1138,21 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important)
|
| }
|
| return false;
|
| }
|
| + case CSSPropertyPerspective:
|
| + if (id == CSSValueNone) {
|
| + validPrimitive = true;
|
| + } else if (validUnit(value, FLength | FNonNeg)) {
|
| + addProperty(propId, createPrimitiveNumericValue(value), important);
|
| + return true;
|
| + }
|
| + break;
|
| case CSSPropertyWebkitPerspective:
|
| - if (id == CSSValueNone)
|
| + if (id == CSSValueNone) {
|
| validPrimitive = true;
|
| - else {
|
| + } else if (validUnit(value, FNumber | FLength | FNonNeg)) {
|
| // Accepting valueless numbers is a quirk of the -webkit prefixed version of the property.
|
| - if (validUnit(value, FNumber | FLength | FNonNeg)) {
|
| - RefPtrWillBeRawPtr<CSSValue> val = createPrimitiveNumericValue(value);
|
| - if (val) {
|
| - addProperty(propId, val.release(), important);
|
| - return true;
|
| - }
|
| - return false;
|
| - }
|
| + addProperty(propId, createPrimitiveNumericValue(value), important);
|
| + return true;
|
| }
|
| break;
|
| case CSSPropertyWebkitPerspectiveOrigin:
|
| @@ -1610,7 +1612,6 @@ bool CSSPropertyParser::parseValue(CSSPropertyID propId, bool important)
|
| validPrimitive = false;
|
| break;
|
| // FIXME: crbug.com/154772 Unimplemented css-transforms properties
|
| - case CSSPropertyPerspective:
|
| case CSSPropertyPerspectiveOrigin:
|
| case CSSPropertyTransform:
|
| case CSSPropertyTransformOrigin:
|
|
|