Index: Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
index fe36ecb0c7b3ed2217e47b46665943e6f3aaaad7..820cacc4aeb0d7b7d4a6e23459c7a7cfeaddcd66 100644 |
--- a/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -832,10 +832,12 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import |
break; |
case CSSPropertyZIndex: // auto | <integer> | inherit |
- if (id == CSSValueAuto) |
+ if (id == CSSValueAuto) { |
validPrimitive = true; |
- else |
- validPrimitive = validUnit(value, FInteger); |
+ } else if (validUnit(value, FInteger)) { |
+ addProperty(propId, cssValuePool().createValue(value->fValue, CSSPrimitiveValue::CSS_INTEGER), important); |
+ return true; |
+ } |
break; |
case CSSPropertyLineHeight: |