Add support for animation of -moz-box-flex. (Bug 524853) r=bzbarsky
authorL. David Baron <dbaron@dbaron.org>
Fri, 11 Dec 2009 08:13:19 -0800
changeset 35567 b232fe0878bd1105c637187021794c59c76f0fa4
parent 35566 f1d388af67bf61f94da4f5971c87fb9195d6c4c4
child 35568 eabbfb401338bf12a9fd9a2c587d949055f26bdb
push idunknown
push userunknown
push dateunknown
reviewersbzbarsky
bugs524853
milestone1.9.3a1pre
Add support for animation of -moz-box-flex. (Bug 524853) r=bzbarsky
layout/style/nsCSSPropList.h
layout/style/test/test_transitions_per_property.html
--- a/layout/style/nsCSSPropList.h
+++ b/layout/style/nsCSSPropList.h
@@ -2607,18 +2607,18 @@ CSS_PROP_XUL(
     -moz-box-flex,
     box_flex,
     MozBoxFlex,
     0,
     XUL,
     mBoxFlex,
     eCSSType_Value,
     nsnull,
-    CSS_PROP_NO_OFFSET,
-    eStyleAnimType_None) // XXX bug 3935
+    offsetof(nsStyleXUL, mBoxFlex),
+    eStyleAnimType_float) // XXX bug 3935
 CSS_PROP_XUL(
     -moz-box-orient,
     box_orient,
     MozBoxOrient,
     0,
     XUL,
     mBoxOrient,
     eCSSType_Value,
--- a/layout/style/test/test_transitions_per_property.html
+++ b/layout/style/test/test_transitions_per_property.html
@@ -46,16 +46,18 @@ function any_unit_to_num(str)
     return Number(String(str).match(/^([\d.]+)/)[1]);
 }
 
 var supported_properties = {
     "-moz-border-radius-bottomleft": [ test_radius_transition ],
     "-moz-border-radius-bottomright": [ test_radius_transition ],
     "-moz-border-radius-topleft": [ test_radius_transition ],
     "-moz-border-radius-topright": [ test_radius_transition ],
+    "-moz-box-flex": [ test_float_zeroToOne_transition,
+                       test_float_aboveOne_transition ],
     "-moz-box-shadow": [ test_shadow_transition ],
     "-moz-column-gap": [ test_length_transition ],
     "-moz-column-rule-color": [ test_color_transition ],
     "-moz-column-width": [ test_length_transition ],
     "-moz-outline-radius-bottomleft": [ test_radius_transition ],
     "-moz-outline-radius-bottomright": [ test_radius_transition ],
     "-moz-outline-radius-topleft": [ test_radius_transition ],
     "-moz-outline-radius-topright": [ test_radius_transition ],