Bug 796212 part 1: Guard CSS3 flexbox properties behind about:config pref "layout.css.flexbox.enabled". r=bz

This commit is contained in:
Daniel Holbert 2012-10-02 22:04:50 -07:00
parent 13165b770b
commit 6ed459f16a

View File

@ -1541,7 +1541,7 @@ CSS_PROP_POSITION(
align_items, align_items,
CSS_PROP_DOMPROP_PREFIXED(AlignItems), CSS_PROP_DOMPROP_PREFIXED(AlignItems),
CSS_PROPERTY_PARSE_VALUE, CSS_PROPERTY_PARSE_VALUE,
"", "layout.css.flexbox.enabled",
VARIANT_HK, VARIANT_HK,
kAlignItemsKTable, kAlignItemsKTable,
offsetof(nsStylePosition, mAlignItems), offsetof(nsStylePosition, mAlignItems),
@ -1551,7 +1551,7 @@ CSS_PROP_POSITION(
align_self, align_self,
CSS_PROP_DOMPROP_PREFIXED(AlignSelf), CSS_PROP_DOMPROP_PREFIXED(AlignSelf),
CSS_PROPERTY_PARSE_VALUE, CSS_PROPERTY_PARSE_VALUE,
"", "layout.css.flexbox.enabled",
VARIANT_HK, VARIANT_HK,
kAlignSelfKTable, kAlignSelfKTable,
offsetof(nsStylePosition, mAlignSelf), offsetof(nsStylePosition, mAlignSelf),
@ -1561,7 +1561,7 @@ CSS_PROP_SHORTHAND(
flex, flex,
CSS_PROP_DOMPROP_PREFIXED(Flex), CSS_PROP_DOMPROP_PREFIXED(Flex),
CSS_PROPERTY_PARSE_FUNCTION, CSS_PROPERTY_PARSE_FUNCTION,
"") "layout.css.flexbox.enabled")
CSS_PROP_POSITION( CSS_PROP_POSITION(
-moz-flex-basis, -moz-flex-basis,
flex_basis, flex_basis,
@ -1569,7 +1569,7 @@ CSS_PROP_POSITION(
CSS_PROPERTY_PARSE_VALUE | CSS_PROPERTY_PARSE_VALUE |
CSS_PROPERTY_VALUE_NONNEGATIVE | CSS_PROPERTY_VALUE_NONNEGATIVE |
CSS_PROPERTY_STORES_CALC, CSS_PROPERTY_STORES_CALC,
"", "layout.css.flexbox.enabled",
// NOTE: The parsing implementation for the 'flex' shorthand property has // NOTE: The parsing implementation for the 'flex' shorthand property has
// its own code to parse each subproperty. It does not depend on the // its own code to parse each subproperty. It does not depend on the
// longhand parsing defined here. // longhand parsing defined here.
@ -1582,7 +1582,7 @@ CSS_PROP_POSITION(
flex_direction, flex_direction,
CSS_PROP_DOMPROP_PREFIXED(FlexDirection), CSS_PROP_DOMPROP_PREFIXED(FlexDirection),
CSS_PROPERTY_PARSE_VALUE, CSS_PROPERTY_PARSE_VALUE,
"", "layout.css.flexbox.enabled",
VARIANT_HK, VARIANT_HK,
kFlexDirectionKTable, kFlexDirectionKTable,
offsetof(nsStylePosition, mFlexDirection), offsetof(nsStylePosition, mFlexDirection),
@ -1593,7 +1593,7 @@ CSS_PROP_POSITION(
CSS_PROP_DOMPROP_PREFIXED(FlexGrow), CSS_PROP_DOMPROP_PREFIXED(FlexGrow),
CSS_PROPERTY_PARSE_VALUE | CSS_PROPERTY_PARSE_VALUE |
CSS_PROPERTY_VALUE_NONNEGATIVE, CSS_PROPERTY_VALUE_NONNEGATIVE,
"", "layout.css.flexbox.enabled",
// NOTE: The parsing implementation for the 'flex' shorthand property has // NOTE: The parsing implementation for the 'flex' shorthand property has
// its own code to parse each subproperty. It does not depend on the // its own code to parse each subproperty. It does not depend on the
// longhand parsing defined here. // longhand parsing defined here.
@ -1607,7 +1607,7 @@ CSS_PROP_POSITION(
CSS_PROP_DOMPROP_PREFIXED(FlexShrink), CSS_PROP_DOMPROP_PREFIXED(FlexShrink),
CSS_PROPERTY_PARSE_VALUE | CSS_PROPERTY_PARSE_VALUE |
CSS_PROPERTY_VALUE_NONNEGATIVE, CSS_PROPERTY_VALUE_NONNEGATIVE,
"", "layout.css.flexbox.enabled",
// NOTE: The parsing implementation for the 'flex' shorthand property has // NOTE: The parsing implementation for the 'flex' shorthand property has
// its own code to parse each subproperty. It does not depend on the // its own code to parse each subproperty. It does not depend on the
// longhand parsing defined here. // longhand parsing defined here.
@ -1620,7 +1620,7 @@ CSS_PROP_POSITION(
order, order,
CSS_PROP_DOMPROP_PREFIXED(Order), CSS_PROP_DOMPROP_PREFIXED(Order),
CSS_PROPERTY_PARSE_VALUE, CSS_PROPERTY_PARSE_VALUE,
"", "layout.css.flexbox.enabled",
VARIANT_HI, VARIANT_HI,
nullptr, nullptr,
offsetof(nsStylePosition, mOrder), offsetof(nsStylePosition, mOrder),
@ -1630,7 +1630,7 @@ CSS_PROP_POSITION(
justify_content, justify_content,
CSS_PROP_DOMPROP_PREFIXED(JustifyContent), CSS_PROP_DOMPROP_PREFIXED(JustifyContent),
CSS_PROPERTY_PARSE_VALUE, CSS_PROPERTY_PARSE_VALUE,
"", "layout.css.flexbox.enabled",
VARIANT_HK, VARIANT_HK,
kJustifyContentKTable, kJustifyContentKTable,
offsetof(nsStylePosition, mJustifyContent), offsetof(nsStylePosition, mJustifyContent),