From 3f64a023328e7dfb2733681baff99c811c511b9f Mon Sep 17 00:00:00 2001 From: "rbs%maths.uq.edu.au" Date: Fri, 2 Feb 2001 21:25:07 +0000 Subject: [PATCH] Added a flag for operators that need to be centered around the axis --- layout/mathml/content/src/nsMathMLOperators.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layout/mathml/content/src/nsMathMLOperators.h b/layout/mathml/content/src/nsMathMLOperators.h index 2c3082f1b826..a88cd222ccc4 100644 --- a/layout/mathml/content/src/nsMathMLOperators.h +++ b/layout/mathml/content/src/nsMathMLOperators.h @@ -37,6 +37,7 @@ typedef PRInt32 nsStretchDirection; #define NS_MATHML_OPERATOR_MUTABLE 0x80000000 // the very first bit #define NS_MATHML_OPERATOR_EMBELLISH_ANCESTOR 0x40000000 // the second bit +#define NS_MATHML_OPERATOR_CENTERED 0x20000000 // the third bit // define the bits used in the Operator Dictionary // XXX replace with the PR_BIT(n) macro @@ -53,11 +54,10 @@ typedef PRInt32 nsStretchDirection; #define NS_MATHML_OPERATOR_LARGEOP (1<<6) #define NS_MATHML_OPERATOR_SEPARATOR (1<<7) #define NS_MATHML_OPERATOR_MOVABLELIMITS (1<<8) +#define NS_MATHML_OPERATOR_SYMMETRIC (1<<9) // Additional bits not stored in the dictionary -#define NS_MATHML_OPERATOR_SYMMETRIC (1<<9) - #define NS_MATHML_OPERATOR_MINSIZE_EXPLICIT (1<<10) #define NS_MATHML_OPERATOR_MAXSIZE_EXPLICIT (1<<11) @@ -105,6 +105,9 @@ public: #define NS_MATHML_OPERATOR_HAS_EMBELLISH_ANCESTOR(_flags) \ (NS_MATHML_OPERATOR_EMBELLISH_ANCESTOR == ((_flags) & NS_MATHML_OPERATOR_EMBELLISH_ANCESTOR)) +#define NS_MATHML_OPERATOR_IS_CENTERED(_flags) \ + (NS_MATHML_OPERATOR_CENTERED == ((_flags) & NS_MATHML_OPERATOR_CENTERED)) + #define NS_MATHML_OPERATOR_GET_FORM(_flags) \ ((_flags) & NS_MATHML_OPERATOR_FORM)