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

Unified Diff: Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 1193753002: Serialize zIndex as an integer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix regression and add test Created 5 years, 6 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: Source/core/css/ComputedStyleCSSValueMapping.cpp
diff --git a/Source/core/css/ComputedStyleCSSValueMapping.cpp b/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 4c8e0e406815643bab17c6902817f83b2cf36407..e681f202a9f8bae2e9453d8552e7ef27106cd993 100644
--- a/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -2079,7 +2079,7 @@ PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID
case CSSPropertyZIndex:
if (style.hasAutoZIndex())
return cssValuePool().createIdentifierValue(CSSValueAuto);
- return cssValuePool().createValue(style.zIndex(), CSSPrimitiveValue::CSS_NUMBER);
+ return cssValuePool().createValue(style.zIndex(), CSSPrimitiveValue::CSS_INTEGER);
case CSSPropertyZoom:
return cssValuePool().createValue(style.zoom(), CSSPrimitiveValue::CSS_NUMBER);
case CSSPropertyBoxSizing:

Powered by Google App Engine
This is Rietveld 408576698