Bug 796212 part 1: Guard CSS3 flexbox properties behind about:config pref "layout.css.flexbox.enabled". r=bz
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 02 Oct 2012 22:04:50 -0700
changeset 109004 c174f3c540f6650174532b5ff0f844c8552c11dc
parent 109003 7dd4065311eb424bf52f6c1fb45b43ca6db33bf9
child 109005 5c6db22beec598c2dc02dce2592fdf1943bdb8cf
push id15801
push userdholbert@mozilla.com
push dateWed, 03 Oct 2012 05:05:37 +0000
treeherdermozilla-inbound@5c6db22beec5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs796212
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 796212 part 1: Guard CSS3 flexbox properties behind about:config pref "layout.css.flexbox.enabled". r=bz
layout/style/nsCSSPropList.h
--- a/layout/style/nsCSSPropList.h
+++ b/layout/style/nsCSSPropList.h
@@ -1536,106 +1536,106 @@ CSS_PROP_TABLEBORDER(
     CSS_PROP_NO_OFFSET,
     eStyleAnimType_None)
 #ifdef MOZ_FLEXBOX
 CSS_PROP_POSITION(
     -moz-align-items,
     align_items,
     CSS_PROP_DOMPROP_PREFIXED(AlignItems),
     CSS_PROPERTY_PARSE_VALUE,
-    "",
+    "layout.css.flexbox.enabled",
     VARIANT_HK,
     kAlignItemsKTable,
     offsetof(nsStylePosition, mAlignItems),
     eStyleAnimType_EnumU8)
 CSS_PROP_POSITION(
     -moz-align-self,
     align_self,
     CSS_PROP_DOMPROP_PREFIXED(AlignSelf),
     CSS_PROPERTY_PARSE_VALUE,
-    "",
+    "layout.css.flexbox.enabled",
     VARIANT_HK,
     kAlignSelfKTable,
     offsetof(nsStylePosition, mAlignSelf),
     eStyleAnimType_EnumU8)
 CSS_PROP_SHORTHAND(
     -moz-flex,
     flex,
     CSS_PROP_DOMPROP_PREFIXED(Flex),
     CSS_PROPERTY_PARSE_FUNCTION,
-    "")
+    "layout.css.flexbox.enabled")
 CSS_PROP_POSITION(
     -moz-flex-basis,
     flex_basis,
     CSS_PROP_DOMPROP_PREFIXED(FlexBasis),
     CSS_PROPERTY_PARSE_VALUE |
         CSS_PROPERTY_VALUE_NONNEGATIVE |
         CSS_PROPERTY_STORES_CALC,
-    "",
+    "layout.css.flexbox.enabled",
     // NOTE: The parsing implementation for the 'flex' shorthand property has
     // its own code to parse each subproperty. It does not depend on the
     // longhand parsing defined here.
     VARIANT_AHKLP | VARIANT_CALC,
     kWidthKTable,
     offsetof(nsStylePosition, mFlexBasis),
     eStyleAnimType_Coord)
 CSS_PROP_POSITION(
     -moz-flex-direction,
     flex_direction,
     CSS_PROP_DOMPROP_PREFIXED(FlexDirection),
     CSS_PROPERTY_PARSE_VALUE,
-    "",
+    "layout.css.flexbox.enabled",
     VARIANT_HK,
     kFlexDirectionKTable,
     offsetof(nsStylePosition, mFlexDirection),
     eStyleAnimType_EnumU8)
 CSS_PROP_POSITION(
     -moz-flex-grow,
     flex_grow,
     CSS_PROP_DOMPROP_PREFIXED(FlexGrow),
     CSS_PROPERTY_PARSE_VALUE |
       CSS_PROPERTY_VALUE_NONNEGATIVE,
-    "",
+    "layout.css.flexbox.enabled",
     // NOTE: The parsing implementation for the 'flex' shorthand property has
     // its own code to parse each subproperty. It does not depend on the
     // longhand parsing defined here.
     VARIANT_HN,
     nullptr,
     offsetof(nsStylePosition, mFlexGrow),
     eStyleAnimType_float) // float, except animations to/from 0 shouldn't work
 CSS_PROP_POSITION(
     -moz-flex-shrink,
     flex_shrink,
     CSS_PROP_DOMPROP_PREFIXED(FlexShrink),
     CSS_PROPERTY_PARSE_VALUE |
       CSS_PROPERTY_VALUE_NONNEGATIVE,
-    "",
+    "layout.css.flexbox.enabled",
     // NOTE: The parsing implementation for the 'flex' shorthand property has
     // its own code to parse each subproperty. It does not depend on the
     // longhand parsing defined here.
     VARIANT_HN,
     nullptr,
     offsetof(nsStylePosition, mFlexShrink),
     eStyleAnimType_float) // float, except animations to/from 0 shouldn't work
 CSS_PROP_POSITION(
     -moz-order,
     order,
     CSS_PROP_DOMPROP_PREFIXED(Order),
     CSS_PROPERTY_PARSE_VALUE,
-    "",
+    "layout.css.flexbox.enabled",
     VARIANT_HI,
     nullptr,
     offsetof(nsStylePosition, mOrder),
     eStyleAnimType_Custom) // <integer>
 CSS_PROP_POSITION(
     -moz-justify-content,
     justify_content,
     CSS_PROP_DOMPROP_PREFIXED(JustifyContent),
     CSS_PROPERTY_PARSE_VALUE,
-    "",
+    "layout.css.flexbox.enabled",
     VARIANT_HK,
     kJustifyContentKTable,
     offsetof(nsStylePosition, mJustifyContent),
     eStyleAnimType_EnumU8)
 #endif // MOZ_FLEXBOX
 CSS_PROP_DISPLAY(
     float,
     float,