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 nsMathMLmunderoverFrame_h___
7 #define nsMathMLmunderoverFrame_h___
9 #include "mozilla/Attributes.h"
10 #include "nsMathMLContainerFrame.h"
13 // <munderover> -- attach an underscript-overscript pair to a base
16 class nsMathMLmunderoverFrame
: public nsMathMLContainerFrame
{
18 NS_DECL_FRAMEARENA_HELPERS
20 friend nsIFrame
* NS_NewMathMLmunderoverFrame(nsIPresShell
* aPresShell
, nsStyleContext
* aContext
);
23 Place(nsRenderingContext
& aRenderingContext
,
25 nsHTMLReflowMetrics
& aDesiredSize
) MOZ_OVERRIDE
;
28 InheritAutomaticData(nsIFrame
* aParent
) MOZ_OVERRIDE
;
31 TransmitAutomaticData() MOZ_OVERRIDE
;
34 UpdatePresentationData(uint32_t aFlagsValues
,
35 uint32_t aFlagsToUpdate
) MOZ_OVERRIDE
;
38 AttributeChanged(int32_t aNameSpaceID
,
40 int32_t aModType
) MOZ_OVERRIDE
;
43 ScriptIncrement(nsIFrame
* aFrame
) MOZ_OVERRIDE
;
46 explicit nsMathMLmunderoverFrame(nsStyleContext
* aContext
) : nsMathMLContainerFrame(aContext
),
47 mIncrementUnder(false),
48 mIncrementOver(false) {}
49 virtual ~nsMathMLmunderoverFrame();
57 #endif /* nsMathMLmunderoverFrame_h___ */