Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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"
12 //
13 // <munderover> -- attach an underscript-overscript pair to a base
14 //
16 class nsMathMLmunderoverFrame : public nsMathMLContainerFrame {
17 public:
18 NS_DECL_FRAMEARENA_HELPERS
20 friend nsIFrame* NS_NewMathMLmunderoverFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
22 virtual nsresult
23 Place(nsRenderingContext& aRenderingContext,
24 bool aPlaceOrigin,
25 nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
27 NS_IMETHOD
28 InheritAutomaticData(nsIFrame* aParent) MOZ_OVERRIDE;
30 NS_IMETHOD
31 TransmitAutomaticData() MOZ_OVERRIDE;
33 NS_IMETHOD
34 UpdatePresentationData(uint32_t aFlagsValues,
35 uint32_t aFlagsToUpdate) MOZ_OVERRIDE;
37 virtual nsresult
38 AttributeChanged(int32_t aNameSpaceID,
39 nsIAtom* aAttribute,
40 int32_t aModType) MOZ_OVERRIDE;
42 uint8_t
43 ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE;
45 protected:
46 nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext),
47 mIncrementUnder(false),
48 mIncrementOver(false) {}
49 virtual ~nsMathMLmunderoverFrame();
51 private:
52 bool mIncrementUnder;
53 bool mIncrementOver;
54 };
57 #endif /* nsMathMLmunderoverFrame_h___ */