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

Unified Diff: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp

Issue 2692383004: Support animating CSS property "order" (Closed)
Patch Set: orderorder Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
index f49bf4de73705922da2811000be073faaeaed2dc..5501d85711565728aaa27bedf0ffdce1dc2dfb32 100644
--- a/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/AnimatedStyleBuilder.cpp
@@ -549,6 +549,10 @@ void AnimatedStyleBuilder::applyProperty(CSSPropertyID property,
style->setOpacity(clampTo<float>(toAnimatableDouble(value)->toDouble(), 0,
nextafterf(1, 0)));
return;
+ case CSSPropertyOrder:
+ style->setOrder(
+ clampTo<int>(round(toAnimatableDouble(value)->toDouble())));
+ return;
case CSSPropertyOrphans:
style->setOrphans(
clampTo<short>(round(toAnimatableDouble(value)->toDouble()), 1));
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPropertyEquality.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698