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

Unified Diff: Source/core/animation/css/CSSAnimatableValueFactory.cpp

Issue 1172583002: Add support for z-index: auto to AnimatableValues (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove dumb 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/animation/css/CSSAnimatableValueFactory.cpp
diff --git a/Source/core/animation/css/CSSAnimatableValueFactory.cpp b/Source/core/animation/css/CSSAnimatableValueFactory.cpp
index abd9d8c51ef5f975efe67f65915e64d31ba6b226..8ce2472dc07ea9466daa62f8f16326f05fbbbdbe 100644
--- a/Source/core/animation/css/CSSAnimatableValueFactory.cpp
+++ b/Source/core/animation/css/CSSAnimatableValueFactory.cpp
@@ -562,6 +562,8 @@ PassRefPtrWillBeRawPtr<AnimatableValue> CSSAnimatableValueFactory::create(CSSPro
case CSSPropertyRy:
return createFromLength(style.svgStyle().ry(), style);
case CSSPropertyZIndex:
+ if (style.hasAutoZIndex())
+ return AnimatableUnknown::create(CSSValueAuto);
return createFromDouble(style.zIndex());
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « LayoutTests/animations/interpolation/z-index-interpolation.html ('k') | Source/core/animation/css/CSSPropertyEquality.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698