From 4e05bcf3287fa7f4f747f05a720e465ed2a20b0a Mon Sep 17 00:00:00 2001 From: "L. David Baron" Date: Fri, 13 Jul 2012 18:01:34 -0700 Subject: [PATCH] Rename VARIANT_POSITIVE_LENGTH to VARIANT_POSITIVE_DIMENSION since it also applies to times and frequencies. (Bug 773102, patch 1) r=bzbarsky --- layout/style/nsCSSParser.cpp | 6 +++--- layout/style/nsCSSPropList.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index af1b109ea8fa..078a91d09253 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -83,7 +83,7 @@ using namespace mozilla; #define VARIANT_ZERO_ANGLE 0x02000000 // unitless zero for angles #define VARIANT_CALC 0x04000000 // eCSSUnit_Calc #define VARIANT_ELEMENT 0x08000000 // eCSSUnit_Element -#define VARIANT_POSITIVE_LENGTH 0x10000000 // Only lengths greater than 0.0 +#define VARIANT_POSITIVE_DIMENSION 0x10000000 // Only lengths greater than 0.0 // Common combinations of variants #define VARIANT_AL (VARIANT_AUTO | VARIANT_LENGTH) @@ -4477,7 +4477,7 @@ CSSParserImpl::ParseVariant(nsCSSValue& aValue, ((aVariantMask & (VARIANT_LENGTH | VARIANT_ZERO_ANGLE)) != 0 && eCSSToken_Number == tk->mType && tk->mNumber == 0.0f)) { - if ((aVariantMask & VARIANT_POSITIVE_LENGTH) != 0 && + if ((aVariantMask & VARIANT_POSITIVE_DIMENSION) != 0 && tk->mNumber <= 0.0) { UngetToken(); return false; @@ -8058,7 +8058,7 @@ static bool GetFunctionParseInformation(nsCSSKeyword aToken, {VARIANT_ANGLE_OR_ZERO}, {VARIANT_ANGLE_OR_ZERO, VARIANT_ANGLE_OR_ZERO}, {VARIANT_NUMBER}, - {VARIANT_LENGTH|VARIANT_POSITIVE_LENGTH}, + {VARIANT_LENGTH|VARIANT_POSITIVE_DIMENSION}, {VARIANT_NUMBER, VARIANT_NUMBER}, {VARIANT_NUMBER, VARIANT_NUMBER, VARIANT_NUMBER}, {VARIANT_NUMBER, VARIANT_NUMBER, VARIANT_NUMBER, VARIANT_ANGLE_OR_ZERO}, diff --git a/layout/style/nsCSSPropList.h b/layout/style/nsCSSPropList.h index c0427856672f..5e0e3b11446e 100644 --- a/layout/style/nsCSSPropList.h +++ b/layout/style/nsCSSPropList.h @@ -2630,7 +2630,7 @@ CSS_PROP_DISPLAY( Perspective, CSS_PROPERTY_PARSE_VALUE, "", - VARIANT_NONE | VARIANT_INHERIT | VARIANT_LENGTH | VARIANT_POSITIVE_LENGTH, + VARIANT_NONE | VARIANT_INHERIT | VARIANT_LENGTH | VARIANT_POSITIVE_DIMENSION, nsnull, offsetof(nsStyleDisplay, mChildPerspective), eStyleAnimType_Coord)