Blame layout/mathml/nsIMathMLFrame.h

Packit f0b94e
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
Packit f0b94e
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
Packit f0b94e
/* This Source Code Form is subject to the terms of the Mozilla Public
Packit f0b94e
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit f0b94e
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit f0b94e
//#define SHOW_BOUNDING_BOX 1
Packit f0b94e
#ifndef nsIMathMLFrame_h___
Packit f0b94e
#define nsIMathMLFrame_h___
Packit f0b94e
Packit f0b94e
#include "nsQueryFrame.h"
Packit f0b94e
#include "nsMathMLOperators.h"
Packit f0b94e
Packit f0b94e
struct nsPresentationData;
Packit f0b94e
struct nsEmbellishData;
Packit f0b94e
class gfxContext;
Packit f0b94e
class nsIFrame;
Packit f0b94e
namespace mozilla {
Packit f0b94e
class ReflowOutput;
Packit f0b94e
}  // namespace mozilla
Packit f0b94e
Packit f0b94e
// For MathML, this 'type' will be used to determine the spacing between frames
Packit f0b94e
// Subclasses can return a 'type' that will give them a particular spacing
Packit f0b94e
enum eMathMLFrameType {
Packit f0b94e
  eMathMLFrameType_UNKNOWN = -1,
Packit f0b94e
  eMathMLFrameType_Ordinary,
Packit f0b94e
  eMathMLFrameType_OperatorOrdinary,
Packit f0b94e
  eMathMLFrameType_OperatorInvisible,
Packit f0b94e
  eMathMLFrameType_OperatorUserDefined,
Packit f0b94e
  eMathMLFrameType_Inner,
Packit f0b94e
  eMathMLFrameType_ItalicIdentifier,
Packit f0b94e
  eMathMLFrameType_UprightIdentifier,
Packit f0b94e
  eMathMLFrameType_COUNT
Packit f0b94e
};
Packit f0b94e
Packit f0b94e
// Abstract base class that provides additional methods for MathML frames
Packit f0b94e
class nsIMathMLFrame {
Packit f0b94e
 public:
Packit f0b94e
  NS_DECL_QUERYFRAME_TARGET(nsIMathMLFrame)
Packit f0b94e
Packit f0b94e
  // helper to check whether the frame is "space-like", as defined by the spec.
Packit f0b94e
  virtual bool IsSpaceLike() = 0;
Packit f0b94e
Packit f0b94e
  /* SUPPORT FOR PRECISE POSITIONING */
Packit f0b94e
  /*====================================================================*/
Packit f0b94e
Packit f0b94e
  /* Metrics that _exactly_ enclose the text of the frame.
Packit f0b94e
   * The frame *must* have *already* being reflowed, before you can call
Packit f0b94e
   * the GetBoundingMetrics() method.
Packit f0b94e
   * Note that for a frame with nested children, the bounding metrics
Packit f0b94e
   * will exactly enclose its children. For example, the bounding metrics
Packit f0b94e
   * of msub is the smallest rectangle that exactly encloses both the
Packit f0b94e
   * base and the subscript.
Packit f0b94e
   */
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  GetBoundingMetrics(nsBoundingMetrics& aBoundingMetrics) = 0;
Packit f0b94e
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  SetBoundingMetrics(const nsBoundingMetrics& aBoundingMetrics) = 0;
Packit f0b94e
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  SetReference(const nsPoint& aReference) = 0;
Packit f0b94e
Packit f0b94e
  virtual eMathMLFrameType GetMathMLFrameType() = 0;
Packit f0b94e
Packit f0b94e
  /* SUPPORT FOR STRETCHY ELEMENTS */
Packit f0b94e
  /*====================================================================*/
Packit f0b94e
Packit f0b94e
  /* Stretch :
Packit f0b94e
   * Called to ask a stretchy MathML frame to stretch itself depending
Packit f0b94e
   * on its context.
Packit f0b94e
   *
Packit f0b94e
   * An embellished frame is treated in a special way. When it receives a
Packit f0b94e
   * Stretch() command, it passes the command to its embellished child and
Packit f0b94e
   * the stretched size is bubbled up from the inner-most <mo> frame. In other
Packit f0b94e
   * words, the stretch command descend through the embellished hierarchy.
Packit f0b94e
   *
Packit f0b94e
   * @param aStretchDirection [in] the direction where to attempt to
Packit f0b94e
   *        stretch.
Packit f0b94e
   * @param aContainerSize [in] struct that suggests the maximumn size for
Packit f0b94e
   *        the stretched frame. Only member data of the struct that are
Packit f0b94e
   *        relevant to the direction are used (the rest is ignored).
Packit f0b94e
   * @param aDesiredStretchSize [in/out] On input the current size
Packit f0b94e
   *        of the frame, on output the size after stretching.
Packit f0b94e
   */
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  Stretch(mozilla::gfx::DrawTarget* aDrawTarget,
Packit f0b94e
          nsStretchDirection aStretchDirection,
Packit f0b94e
          nsBoundingMetrics& aContainerSize,
Packit f0b94e
          mozilla::ReflowOutput& aDesiredStretchSize) = 0;
Packit f0b94e
Packit f0b94e
  /* Get the mEmbellishData member variable. */
Packit f0b94e
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  GetEmbellishData(nsEmbellishData& aEmbellishData) = 0;
Packit f0b94e
Packit f0b94e
  /* SUPPORT FOR SCRIPTING ELEMENTS */
Packit f0b94e
  /*====================================================================*/
Packit f0b94e
Packit f0b94e
  /* Get the mPresentationData member variable. */
Packit f0b94e
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  GetPresentationData(nsPresentationData& aPresentationData) = 0;
Packit f0b94e
Packit f0b94e
  /* InheritAutomaticData() / TransmitAutomaticData() :
Packit f0b94e
   * There are precise rules governing each MathML frame and its children.
Packit f0b94e
   * Properties such as the scriptlevel or the embellished nature of a frame
Packit f0b94e
   * depend on those rules. Also, certain properties that we use to emulate
Packit f0b94e
   * TeX rendering rules are frame-dependent too. These two methods are meant
Packit f0b94e
   * to be implemented by frame classes that need to assert specific properties
Packit f0b94e
   * within their subtrees.
Packit f0b94e
   *
Packit f0b94e
   * InheritAutomaticData() is called in a top-down manner [like
Packit f0b94e
   * nsIFrame::Init], as we descend the frame tree, whereas
Packit f0b94e
   * TransmitAutomaticData() is called in a bottom-up manner, as we ascend the
Packit f0b94e
   * tree [like nsIFrame::SetInitialChildList]. However, unlike Init() and
Packit f0b94e
   * SetInitialChildList() which are called only once during the life-time of a
Packit f0b94e
   * frame (when initially constructing the frame tree), these two methods are
Packit f0b94e
   * called to build automatic data after the <math>...</math> subtree has been
Packit f0b94e
   * constructed fully, and are called again as we walk a child's subtree to
Packit f0b94e
   * handle dynamic changes that happen in the content model.
Packit f0b94e
   *
Packit f0b94e
   * As a rule of thumb:
Packit f0b94e
   *
Packit f0b94e
   * 1. Use InheritAutomaticData() to set properties related to your ancestors:
Packit f0b94e
   *    - set properties that are intrinsic to yourself
Packit f0b94e
   *    - set properties that depend on the state that you expect your ancestors
Packit f0b94e
   *      to have already reached in their own InheritAutomaticData().
Packit f0b94e
   *    - set properties that your descendants assume that you would have set in
Packit f0b94e
   *      your InheritAutomaticData() -- this way, they can safely query them
Packit f0b94e
   * and the process will feed upon itself.
Packit f0b94e
   *
Packit f0b94e
   * 2. Use TransmitAutomaticData() to set properties related to your
Packit f0b94e
   * descendants:
Packit f0b94e
   *    - set properties that depend on the state that you expect your
Packit f0b94e
   * descendants to have reached upon processing their own
Packit f0b94e
   * TransmitAutomaticData().
Packit f0b94e
   *    - transmit properties that your descendants expect that you will
Packit f0b94e
   * transmit to them in your TransmitAutomaticData() -- this way, they remain
Packit f0b94e
   * up-to-date.
Packit f0b94e
   *    - set properties that your ancestors expect that you would set in your
Packit f0b94e
   *      TransmitAutomaticData() -- this way, they can safely query them and
Packit f0b94e
   * the process will feed upon itself.
Packit f0b94e
   */
Packit f0b94e
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  InheritAutomaticData(nsIFrame* aParent) = 0;
Packit f0b94e
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  TransmitAutomaticData() = 0;
Packit f0b94e
Packit f0b94e
  /* UpdatePresentationData:
Packit f0b94e
   * Updates the frame's compression flag.
Packit f0b94e
   * A frame becomes "compressed" (or "cramped") according to TeX rendering
Packit f0b94e
   * rules (TeXBook, Ch.17, p.140-141).
Packit f0b94e
   *
Packit f0b94e
   * @param aFlagsValues [in]
Packit f0b94e
   *        The new values (e.g., compress) that are going to be
Packit f0b94e
   *        updated.
Packit f0b94e
   *
Packit f0b94e
   * @param aWhichFlags [in]
Packit f0b94e
   *        The flags that are relevant to this call. Since not all calls
Packit f0b94e
   *        are meant to update all flags at once, aWhichFlags is used
Packit f0b94e
   *        to distinguish flags that need to retain their existing values
Packit f0b94e
   *        from flags that need to be turned on (or turned off). If a bit
Packit f0b94e
   *        is set in aWhichFlags, then the corresponding value (which
Packit f0b94e
   *        can be 0 or 1) is taken from aFlagsValues and applied to the
Packit f0b94e
   *        frame. Therefore, by setting their bits in aWhichFlags, and
Packit f0b94e
   *        setting their desired values in aFlagsValues, it is possible to
Packit f0b94e
   *        update some flags in the frame, leaving the other flags unchanged.
Packit f0b94e
   */
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  UpdatePresentationData(uint32_t aFlagsValues, uint32_t aWhichFlags) = 0;
Packit f0b94e
Packit f0b94e
  /* UpdatePresentationDataFromChildAt :
Packit f0b94e
   * Sets compression flag on the whole tree. For child frames
Packit f0b94e
   * at aFirstIndex up to aLastIndex, this method sets their
Packit f0b94e
   * compression flags. The update is propagated down the subtrees of each of
Packit f0b94e
   * these child frames.
Packit f0b94e
   *
Packit f0b94e
   * @param aFirstIndex [in]
Packit f0b94e
   *        Index of the first child from where the update is propagated.
Packit f0b94e
   *
Packit f0b94e
   * @param aLastIndex [in]
Packit f0b94e
   *        Index of the last child where to stop the update.
Packit f0b94e
   *        A value of -1 means up to last existing child.
Packit f0b94e
   *
Packit f0b94e
   * @param aFlagsValues [in]
Packit f0b94e
   *        The new values (e.g., compress) that are going to be
Packit f0b94e
   *        assigned in the whole sub-trees.
Packit f0b94e
   *
Packit f0b94e
   * @param aWhichFlags [in]
Packit f0b94e
   *        The flags that are relevant to this call. See
Packit f0b94e
   * UpdatePresentationData() for more details about this parameter.
Packit f0b94e
   */
Packit f0b94e
  NS_IMETHOD
Packit f0b94e
  UpdatePresentationDataFromChildAt(int32_t aFirstIndex, int32_t aLastIndex,
Packit f0b94e
                                    uint32_t aFlagsValues,
Packit f0b94e
                                    uint32_t aWhichFlags) = 0;
Packit f0b94e
Packit f0b94e
  // If aFrame is a child frame, returns the script increment which this frame
Packit f0b94e
  // imposes on the specified frame, ignoring any artificial adjustments to
Packit f0b94e
  // scriptlevel.
Packit f0b94e
  // Returns 0 if the specified frame isn't a child frame.
Packit f0b94e
  virtual uint8_t ScriptIncrement(nsIFrame* aFrame) = 0;
Packit f0b94e
Packit f0b94e
  // Returns true if the frame is considered to be an mrow for layout purposes.
Packit f0b94e
  // This includes inferred mrows, but excludes <mrow> elements with a single
Packit f0b94e
  // child.  In the latter case, the child is to be treated as if it wasn't
Packit f0b94e
  // within an mrow, so we pretend the mrow isn't mrow-like.
Packit f0b94e
  virtual bool IsMrowLike() = 0;
Packit f0b94e
};
Packit f0b94e
Packit f0b94e
// struct used by a container frame to keep track of its embellishments.
Packit f0b94e
// By convention, the data that we keep here is bubbled from the embellished
Packit f0b94e
// hierarchy, and it remains unchanged unless we have to recover from a change
Packit f0b94e
// that occurs in the embellished hierarchy. The struct remains in its nil
Packit f0b94e
// state in those frames that are not part of the embellished hierarchy.
Packit f0b94e
struct nsEmbellishData {
Packit f0b94e
  // bits used to mark certain properties of our embellishments
Packit f0b94e
  uint32_t flags;
Packit f0b94e
Packit f0b94e
  // pointer on the <mo> frame at the core of the embellished hierarchy
Packit f0b94e
  nsIFrame* coreFrame;
Packit f0b94e
Packit f0b94e
  // stretchy direction that the nsMathMLChar owned by the core <mo> supports
Packit f0b94e
  nsStretchDirection direction;
Packit f0b94e
Packit f0b94e
  // spacing that may come from <mo> depending on its 'form'. Since
Packit f0b94e
  // the 'form' may also depend on the position of the outermost
Packit f0b94e
  // embellished ancestor, the set up of these values may require
Packit f0b94e
  // looking up the position of our ancestors.
Packit f0b94e
  nscoord leadingSpace;
Packit f0b94e
  nscoord trailingSpace;
Packit f0b94e
Packit f0b94e
  nsEmbellishData() {
Packit f0b94e
    flags = 0;
Packit f0b94e
    coreFrame = nullptr;
Packit f0b94e
    direction = NS_STRETCH_DIRECTION_UNSUPPORTED;
Packit f0b94e
    leadingSpace = 0;
Packit f0b94e
    trailingSpace = 0;
Packit f0b94e
  }
Packit f0b94e
};
Packit f0b94e
Packit f0b94e
// struct used by a container frame to modulate its presentation.
Packit f0b94e
// By convention, the data that we keep in this struct can change depending
Packit f0b94e
// on any of our ancestors and/or descendants. If a data can be resolved
Packit f0b94e
// solely from the embellished hierarchy, and it remains immutable once
Packit f0b94e
// resolved, we put it in |nsEmbellishData|. If it can be affected by other
Packit f0b94e
// things, it comes here. This struct is updated as we receive information
Packit f0b94e
// transmitted by our ancestors and is kept in sync with changes in our
Packit f0b94e
// descendants that affects us.
Packit f0b94e
struct nsPresentationData {
Packit f0b94e
  // bits for: compressed, etc
Packit f0b94e
  uint32_t flags;
Packit f0b94e
Packit f0b94e
  // handy pointer on our base child (the 'nucleus' in TeX), but it may be
Packit f0b94e
  // null here (e.g., tags like <mrow>, <mfrac>, <mtable>, etc, won't
Packit f0b94e
  // pick a particular child in their child list to be the base)
Packit f0b94e
  nsIFrame* baseFrame;
Packit f0b94e
Packit f0b94e
  nsPresentationData() {
Packit f0b94e
    flags = 0;
Packit f0b94e
    baseFrame = nullptr;
Packit f0b94e
  }
Packit f0b94e
};
Packit f0b94e
Packit f0b94e
// ==========================================================================
Packit f0b94e
// Bits used for the presentation flags -- these bits are set
Packit f0b94e
// in their relevant situation as they become available
Packit f0b94e
Packit f0b94e
// This bit is used to emulate TeX rendering.
Packit f0b94e
// Internal use only, cannot be set by the user with an attribute.
Packit f0b94e
#define NS_MATHML_COMPRESSED 0x00000002U
Packit f0b94e
Packit f0b94e
// This bit is set if the frame will fire a vertical stretch
Packit f0b94e
// command on all its (non-empty) children.
Packit f0b94e
// Tags like <mrow> (or an inferred mrow), mpadded, etc, will fire a
Packit f0b94e
// vertical stretch command on all their non-empty children
Packit f0b94e
#define NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY 0x00000004U
Packit f0b94e
Packit f0b94e
// This bit is set if the frame will fire a horizontal stretch
Packit f0b94e
// command on all its (non-empty) children.
Packit f0b94e
// Tags like munder, mover, munderover, will fire a
Packit f0b94e
// horizontal stretch command on all their non-empty children
Packit f0b94e
#define NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY 0x00000008U
Packit f0b94e
Packit f0b94e
// This bit is set if the frame is "space-like", as defined by the spec.
Packit f0b94e
#define NS_MATHML_SPACE_LIKE 0x00000040U
Packit f0b94e
Packit f0b94e
// This bit is set if a token frame should be rendered with the dtls font
Packit f0b94e
// feature setting.
Packit f0b94e
#define NS_MATHML_DTLS 0x00000080U
Packit f0b94e
Packit f0b94e
// This bit is set when the frame cannot be formatted due to an
Packit f0b94e
// error (e.g., invalid markup such as a <msup> without an overscript).
Packit f0b94e
// When set, a visual feedback will be provided to the user.
Packit f0b94e
#define NS_MATHML_ERROR 0x80000000U
Packit f0b94e
Packit f0b94e
// a bit used for debug
Packit f0b94e
#define NS_MATHML_STRETCH_DONE 0x20000000U
Packit f0b94e
Packit f0b94e
// This bit is used for visual debug. When set, the bounding box
Packit f0b94e
// of your frame is painted. This visual debug enable to ensure that
Packit f0b94e
// you have properly filled your mReference and mBoundingMetrics in
Packit f0b94e
// Place().
Packit f0b94e
#define NS_MATHML_SHOW_BOUNDING_METRICS 0x10000000U
Packit f0b94e
Packit f0b94e
// Macros that retrieve those bits
Packit f0b94e
Packit f0b94e
#define NS_MATHML_IS_COMPRESSED(_flags) \
Packit f0b94e
  (NS_MATHML_COMPRESSED == ((_flags)&NS_MATHML_COMPRESSED))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_WILL_STRETCH_ALL_CHILDREN_VERTICALLY(_flags) \
Packit f0b94e
  (NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY ==                \
Packit f0b94e
   ((_flags)&NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_WILL_STRETCH_ALL_CHILDREN_HORIZONTALLY(_flags) \
Packit f0b94e
  (NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY ==                \
Packit f0b94e
   ((_flags)&NS_MATHML_STRETCH_ALL_CHILDREN_HORIZONTALLY))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_IS_SPACE_LIKE(_flags) \
Packit f0b94e
  (NS_MATHML_SPACE_LIKE == ((_flags)&NS_MATHML_SPACE_LIKE))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_IS_DTLS_SET(_flags) \
Packit f0b94e
  (NS_MATHML_DTLS == ((_flags)&NS_MATHML_DTLS))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_HAS_ERROR(_flags) \
Packit f0b94e
  (NS_MATHML_ERROR == ((_flags)&NS_MATHML_ERROR))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_STRETCH_WAS_DONE(_flags) \
Packit f0b94e
  (NS_MATHML_STRETCH_DONE == ((_flags)&NS_MATHML_STRETCH_DONE))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_PAINT_BOUNDING_METRICS(_flags) \
Packit f0b94e
  (NS_MATHML_SHOW_BOUNDING_METRICS ==            \
Packit f0b94e
   ((_flags)&NS_MATHML_SHOW_BOUNDING_METRICS))
Packit f0b94e
Packit f0b94e
// ==========================================================================
Packit f0b94e
// Bits used for the embellish flags -- these bits are set
Packit f0b94e
// in their relevant situation as they become available
Packit f0b94e
Packit f0b94e
// This bit is set if the frame is an embellished operator.
Packit f0b94e
#define NS_MATHML_EMBELLISH_OPERATOR 0x00000001
Packit f0b94e
Packit f0b94e
// This bit is set if the frame is an <mo> frame or an embellihsed
Packit f0b94e
// operator for which the core <mo> has movablelimits="true"
Packit f0b94e
#define NS_MATHML_EMBELLISH_MOVABLELIMITS 0x00000002
Packit f0b94e
Packit f0b94e
// This bit is set if the frame is an <mo> frame or an embellihsed
Packit f0b94e
// operator for which the core <mo> has accent="true"
Packit f0b94e
#define NS_MATHML_EMBELLISH_ACCENT 0x00000004
Packit f0b94e
Packit f0b94e
// This bit is set if the frame is an <mover> or <munderover> with
Packit f0b94e
// an accent frame
Packit f0b94e
#define NS_MATHML_EMBELLISH_ACCENTOVER 0x00000008
Packit f0b94e
Packit f0b94e
// This bit is set if the frame is an <munder> or <munderover> with
Packit f0b94e
// an accentunder frame
Packit f0b94e
#define NS_MATHML_EMBELLISH_ACCENTUNDER 0x00000010
Packit f0b94e
Packit f0b94e
// This bit is set on the core if it is a fence operator.
Packit f0b94e
#define NS_MATHML_EMBELLISH_FENCE 0x00000020
Packit f0b94e
Packit f0b94e
// This bit is set on the core if it is a separator operator.
Packit f0b94e
#define NS_MATHML_EMBELLISH_SEPARATOR 0x00000040
Packit f0b94e
Packit f0b94e
// Macros that retrieve those bits
Packit f0b94e
Packit f0b94e
#define NS_MATHML_IS_EMBELLISH_OPERATOR(_flags) \
Packit f0b94e
  (NS_MATHML_EMBELLISH_OPERATOR == ((_flags)&NS_MATHML_EMBELLISH_OPERATOR))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_EMBELLISH_IS_MOVABLELIMITS(_flags) \
Packit f0b94e
  (NS_MATHML_EMBELLISH_MOVABLELIMITS ==              \
Packit f0b94e
   ((_flags)&NS_MATHML_EMBELLISH_MOVABLELIMITS))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_EMBELLISH_IS_ACCENT(_flags) \
Packit f0b94e
  (NS_MATHML_EMBELLISH_ACCENT == ((_flags)&NS_MATHML_EMBELLISH_ACCENT))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_EMBELLISH_IS_ACCENTOVER(_flags) \
Packit f0b94e
  (NS_MATHML_EMBELLISH_ACCENTOVER == ((_flags)&NS_MATHML_EMBELLISH_ACCENTOVER))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_EMBELLISH_IS_ACCENTUNDER(_flags) \
Packit f0b94e
  (NS_MATHML_EMBELLISH_ACCENTUNDER ==              \
Packit f0b94e
   ((_flags)&NS_MATHML_EMBELLISH_ACCENTUNDER))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_EMBELLISH_IS_FENCE(_flags) \
Packit f0b94e
  (NS_MATHML_EMBELLISH_FENCE == ((_flags)&NS_MATHML_EMBELLISH_FENCE))
Packit f0b94e
Packit f0b94e
#define NS_MATHML_EMBELLISH_IS_SEPARATOR(_flags) \
Packit f0b94e
  (NS_MATHML_EMBELLISH_SEPARATOR == ((_flags)&NS_MATHML_EMBELLISH_SEPARATOR))
Packit f0b94e
Packit f0b94e
#endif /* nsIMathMLFrame_h___ */