Bug 785860 - fix sts preload list tests to skip private mode tests if private browsin...
[gecko.git] / layout / mathml / nsMathMLmsubFrame.h
blob94bdf9a9636a135ba3fd772569b7b3fb1155cfe1
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___
9 #include "nsCOMPtr.h"
10 #include "nsMathMLContainerFrame.h"
13 // <msub> -- attach a subscript to a base
16 class nsMathMLmsubFrame : public nsMathMLContainerFrame {
17 public:
18 NS_DECL_FRAMEARENA_HELPERS
20 friend nsIFrame* NS_NewMathMLmsubFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
22 NS_IMETHOD
23 TransmitAutomaticData();
25 virtual nsresult
26 Place(nsRenderingContext& aRenderingContext,
27 bool aPlaceOrigin,
28 nsHTMLReflowMetrics& aDesiredSize);
30 static nsresult
31 PlaceSubScript (nsPresContext* aPresContext,
32 nsRenderingContext& aRenderingContext,
33 bool aPlaceOrigin,
34 nsHTMLReflowMetrics& aDesiredSize,
35 nsMathMLContainerFrame* aForFrame,
36 nscoord aUserSubScriptShift,
37 nscoord aScriptSpace);
39 protected:
40 nsMathMLmsubFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
41 virtual ~nsMathMLmsubFrame();
43 virtual int GetSkipSides() const { return 0; }
46 #endif /* nsMathMLmsubFrame_h___ */