Bug 1856663 - Add more chunks for Android mochitest-plain. r=jmaher,taskgraph-reviewe...
[gecko.git] / layout / mathml / nsMathMLmmultiscriptsFrame.h
blob028be0cf2eeb4e7ccbc2f122319abcfc62b54bf3
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"
13 namespace mozilla {
14 class PresShell;
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 {
25 public:
26 NS_DECL_FRAMEARENA_HELPERS(nsMathMLmmultiscriptsFrame)
28 friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(
29 mozilla::PresShell* aPresShell, ComputedStyle* aStyle);
31 NS_IMETHOD
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;
47 protected:
48 explicit nsMathMLmmultiscriptsFrame(ComputedStyle* aStyle,
49 nsPresContext* aPresContext)
50 : nsMathMLContainerFrame(aStyle, aPresContext, kClassID) {}
51 virtual ~nsMathMLmmultiscriptsFrame();
54 #endif /* nsMathMLmmultiscriptsFrame_h___ */