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

Unified Diff: third_party/WebKit/Source/core/animation/NumberPropertyFunctions.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
Index: third_party/WebKit/Source/core/animation/NumberPropertyFunctions.cpp
diff --git a/third_party/WebKit/Source/core/animation/NumberPropertyFunctions.cpp b/third_party/WebKit/Source/core/animation/NumberPropertyFunctions.cpp
index f79aa101324d18b61690c121cfe73dedd88b648e..15d0b31d273dcb5009bd48c5ce10e2e02d531eb8 100644
--- a/third_party/WebKit/Source/core/animation/NumberPropertyFunctions.cpp
+++ b/third_party/WebKit/Source/core/animation/NumberPropertyFunctions.cpp
@@ -32,6 +32,9 @@ bool NumberPropertyFunctions::getNumber(CSSPropertyID property,
case CSSPropertyOpacity:
result = style.opacity();
return true;
+ case CSSPropertyOrder:
+ result = style.order();
+ return true;
case CSSPropertyOrphans:
result = style.orphans();
return true;
@@ -117,6 +120,7 @@ double NumberPropertyFunctions::clampNumber(CSSPropertyID property,
case CSSPropertyColumnRuleWidth:
return clampTo<unsigned short>(round(value));
+ case CSSPropertyOrder:
case CSSPropertyZIndex:
return clampTo<int>(round(value));
@@ -149,6 +153,9 @@ bool NumberPropertyFunctions::setNumber(CSSPropertyID property,
case CSSPropertyOpacity:
style.setOpacity(value);
return true;
+ case CSSPropertyOrder:
+ style.setOrder(value);
+ return true;
case CSSPropertyOrphans:
style.setOrphans(value);
return true;

Powered by Google App Engine
This is Rietveld 408576698