layout/mathml/nsMathMLmrootFrame.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/mathml/nsMathMLmrootFrame.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsMathMLmrootFrame_h___
    1.10 +#define nsMathMLmrootFrame_h___
    1.11 +
    1.12 +#include "mozilla/Attributes.h"
    1.13 +#include "nsMathMLContainerFrame.h"
    1.14 +#include "nsMathMLChar.h"
    1.15 +
    1.16 +//
    1.17 +// <msqrt> and <mroot> -- form a radical
    1.18 +//
    1.19 +
    1.20 +class nsMathMLmrootFrame : public nsMathMLContainerFrame {
    1.21 +public:
    1.22 +  NS_DECL_FRAMEARENA_HELPERS
    1.23 +
    1.24 +  friend nsIFrame* NS_NewMathMLmrootFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
    1.25 +
    1.26 +  virtual void
    1.27 +  SetAdditionalStyleContext(int32_t          aIndex, 
    1.28 +                            nsStyleContext*  aStyleContext) MOZ_OVERRIDE;
    1.29 +  virtual nsStyleContext*
    1.30 +  GetAdditionalStyleContext(int32_t aIndex) const MOZ_OVERRIDE;
    1.31 +
    1.32 +  virtual void
    1.33 +  Init(nsIContent*      aContent,
    1.34 +       nsIFrame*        aParent,
    1.35 +       nsIFrame*        aPrevInFlow) MOZ_OVERRIDE;
    1.36 +
    1.37 +  NS_IMETHOD
    1.38 +  TransmitAutomaticData() MOZ_OVERRIDE;
    1.39 +
    1.40 +  virtual nsresult
    1.41 +  Reflow(nsPresContext*          aPresContext,
    1.42 +         nsHTMLReflowMetrics&     aDesiredSize,
    1.43 +         const nsHTMLReflowState& aReflowState,
    1.44 +         nsReflowStatus&          aStatus) MOZ_OVERRIDE;
    1.45 +
    1.46 +  virtual void
    1.47 +  GetIntrinsicWidthMetrics(nsRenderingContext* aRenderingContext,
    1.48 +                           nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
    1.49 +
    1.50 +  virtual void BuildDisplayList(nsDisplayListBuilder*   aBuilder,
    1.51 +                                const nsRect&           aDirtyRect,
    1.52 +                                const nsDisplayListSet& aLists) MOZ_OVERRIDE;
    1.53 +
    1.54 +  uint8_t
    1.55 +  ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE
    1.56 +  {
    1.57 +    return (aFrame && aFrame == mFrames.LastChild()) ? 2 : 0;
    1.58 +  }
    1.59 +
    1.60 +protected:
    1.61 +  nsMathMLmrootFrame(nsStyleContext* aContext);
    1.62 +  virtual ~nsMathMLmrootFrame();
    1.63 +  
    1.64 +  nsMathMLChar mSqrChar;
    1.65 +  nsRect       mBarRect;
    1.66 +};
    1.67 +
    1.68 +#endif /* nsMathMLmrootFrame_h___ */

mercurial