Wed, 31 Dec 2014 06:55:50 +0100
Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef nsMathMLmunderoverFrame_h___ |
michael@0 | 7 | #define nsMathMLmunderoverFrame_h___ |
michael@0 | 8 | |
michael@0 | 9 | #include "mozilla/Attributes.h" |
michael@0 | 10 | #include "nsMathMLContainerFrame.h" |
michael@0 | 11 | |
michael@0 | 12 | // |
michael@0 | 13 | // <munderover> -- attach an underscript-overscript pair to a base |
michael@0 | 14 | // |
michael@0 | 15 | |
michael@0 | 16 | class nsMathMLmunderoverFrame : public nsMathMLContainerFrame { |
michael@0 | 17 | public: |
michael@0 | 18 | NS_DECL_FRAMEARENA_HELPERS |
michael@0 | 19 | |
michael@0 | 20 | friend nsIFrame* NS_NewMathMLmunderoverFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); |
michael@0 | 21 | |
michael@0 | 22 | virtual nsresult |
michael@0 | 23 | Place(nsRenderingContext& aRenderingContext, |
michael@0 | 24 | bool aPlaceOrigin, |
michael@0 | 25 | nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; |
michael@0 | 26 | |
michael@0 | 27 | NS_IMETHOD |
michael@0 | 28 | InheritAutomaticData(nsIFrame* aParent) MOZ_OVERRIDE; |
michael@0 | 29 | |
michael@0 | 30 | NS_IMETHOD |
michael@0 | 31 | TransmitAutomaticData() MOZ_OVERRIDE; |
michael@0 | 32 | |
michael@0 | 33 | NS_IMETHOD |
michael@0 | 34 | UpdatePresentationData(uint32_t aFlagsValues, |
michael@0 | 35 | uint32_t aFlagsToUpdate) MOZ_OVERRIDE; |
michael@0 | 36 | |
michael@0 | 37 | virtual nsresult |
michael@0 | 38 | AttributeChanged(int32_t aNameSpaceID, |
michael@0 | 39 | nsIAtom* aAttribute, |
michael@0 | 40 | int32_t aModType) MOZ_OVERRIDE; |
michael@0 | 41 | |
michael@0 | 42 | uint8_t |
michael@0 | 43 | ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE; |
michael@0 | 44 | |
michael@0 | 45 | protected: |
michael@0 | 46 | nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext), |
michael@0 | 47 | mIncrementUnder(false), |
michael@0 | 48 | mIncrementOver(false) {} |
michael@0 | 49 | virtual ~nsMathMLmunderoverFrame(); |
michael@0 | 50 | |
michael@0 | 51 | private: |
michael@0 | 52 | bool mIncrementUnder; |
michael@0 | 53 | bool mIncrementOver; |
michael@0 | 54 | }; |
michael@0 | 55 | |
michael@0 | 56 | |
michael@0 | 57 | #endif /* nsMathMLmunderoverFrame_h___ */ |