1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsMathMLmmultiscriptsFrame_h___
8 #define nsMathMLmmultiscriptsFrame_h___
10 #include "mozilla/Attributes.h"
11 #include "nsMathMLContainerFrame.h"
15 } // namespace mozilla
18 // <mmultiscripts> -- attach prescripts and tensor indices to a base
19 // <msub> -- attach a subscript to a base
20 // <msubsup> -- attach a subscript-superscript pair to a base
21 // <msup> -- attach a superscript to a base
24 class nsMathMLmmultiscriptsFrame final
: public nsMathMLContainerFrame
{
26 NS_DECL_FRAMEARENA_HELPERS(nsMathMLmmultiscriptsFrame
)
28 friend nsIFrame
* NS_NewMathMLmmultiscriptsFrame(
29 mozilla::PresShell
* aPresShell
, ComputedStyle
* aStyle
);
32 TransmitAutomaticData() override
;
34 virtual nsresult
Place(DrawTarget
* aDrawTarget
, bool aPlaceOrigin
,
35 ReflowOutput
& aDesiredSize
) override
;
37 static nsresult
PlaceMultiScript(nsPresContext
* aPresContext
,
38 DrawTarget
* aDrawTarget
, bool aPlaceOrigin
,
39 ReflowOutput
& aDesiredSize
,
40 nsMathMLContainerFrame
* aForFrame
,
41 nscoord aUserSubScriptShift
,
42 nscoord aUserSupScriptShift
,
43 float aFontSizeInflation
);
45 uint8_t ScriptIncrement(nsIFrame
* aFrame
) override
;
48 explicit nsMathMLmmultiscriptsFrame(ComputedStyle
* aStyle
,
49 nsPresContext
* aPresContext
)
50 : nsMathMLContainerFrame(aStyle
, aPresContext
, kClassID
) {}
51 virtual ~nsMathMLmmultiscriptsFrame();
54 #endif /* nsMathMLmmultiscriptsFrame_h___ */