1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsMathMLmsubFrame_h___
7 #define nsMathMLmsubFrame_h___
10 #include "nsMathMLContainerFrame.h"
13 // <msub> -- attach a subscript to a base
16 class nsMathMLmsubFrame
: public nsMathMLContainerFrame
{
18 NS_DECL_FRAMEARENA_HELPERS
20 friend nsIFrame
* NS_NewMathMLmsubFrame(nsIPresShell
* aPresShell
, nsStyleContext
* aContext
);
23 TransmitAutomaticData();
26 Place(nsRenderingContext
& aRenderingContext
,
28 nsHTMLReflowMetrics
& aDesiredSize
);
31 PlaceSubScript (nsPresContext
* aPresContext
,
32 nsRenderingContext
& aRenderingContext
,
34 nsHTMLReflowMetrics
& aDesiredSize
,
35 nsMathMLContainerFrame
* aForFrame
,
36 nscoord aUserSubScriptShift
,
37 nscoord aScriptSpace
);
40 nsMathMLmsubFrame(nsStyleContext
* aContext
) : nsMathMLContainerFrame(aContext
) {}
41 virtual ~nsMathMLmsubFrame();
43 virtual int GetSkipSides() const { return 0; }
46 #endif /* nsMathMLmsubFrame_h___ */