Bug 1289049 Part 3 - Add CSS_PROPERTY_STORES_CALC flag to "shape-outside" property. draft
authorTing-Yu Lin <tlin@mozilla.com>
Wed, 20 Sep 2017 10:58:14 +0800
changeset 667508 9fbda6227187fdd4fe11f562d483ad37c500dfb6
parent 667507 721ad98c70d8c29a31717088ec2cd11184a3f683
child 667509 0dfe071694834eceba128bb2168004091ff8840b
push id80736
push userbmo:tlin@mozilla.com
push dateWed, 20 Sep 2017 06:30:49 +0000
bugs1289049, 1266570
milestone57.0a1
Bug 1289049 Part 3 - Add CSS_PROPERTY_STORES_CALC flag to "shape-outside" property. This makes "shape-outside" be able to transition between percent and pixel shape-coordinates. This patch is similar to what bug 1266570 fixed for "clip-path". This will fix failures in layout/style/test/test_transitions_per_property.html after introducing Part 4. MozReview-Commit-ID: CAgXG39nUIl
layout/style/nsCSSPropList.h
--- a/layout/style/nsCSSPropList.h
+++ b/layout/style/nsCSSPropList.h
@@ -3746,17 +3746,18 @@ CSS_PROP_DISPLAY(
     CSS_PROP_NO_OFFSET,
     eStyleAnimType_Discrete)
 CSS_PROP_DISPLAY(
     shape-outside,
     shape_outside,
     ShapeOutside,
     CSS_PROPERTY_PARSE_VALUE |
         CSS_PROPERTY_VALUE_PARSER_FUNCTION |
-        CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
+        CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
+        CSS_PROPERTY_STORES_CALC,
     "layout.css.shape-outside.enabled",
     0,
     nullptr,
     CSS_PROP_NO_OFFSET,
     eStyleAnimType_Discrete) // FIXME: Bug 1289049 for adding animation support
 CSS_PROP_SVG(
     shape-rendering,
     shape_rendering,