Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
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 nsMathMLTokenFrame_h___ |
michael@0 | 7 | #define nsMathMLTokenFrame_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 | // Base class to handle token elements |
michael@0 | 14 | // |
michael@0 | 15 | |
michael@0 | 16 | class nsMathMLTokenFrame : public nsMathMLContainerFrame { |
michael@0 | 17 | public: |
michael@0 | 18 | NS_DECL_FRAMEARENA_HELPERS |
michael@0 | 19 | |
michael@0 | 20 | friend nsIFrame* NS_NewMathMLTokenFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); |
michael@0 | 21 | |
michael@0 | 22 | NS_IMETHOD |
michael@0 | 23 | TransmitAutomaticData() MOZ_OVERRIDE { |
michael@0 | 24 | // The REC defines the following elements to be space-like: |
michael@0 | 25 | // * an mtext, mspace, maligngroup, or malignmark element; |
michael@0 | 26 | if (mContent->Tag() == nsGkAtoms::mtext_) { |
michael@0 | 27 | mPresentationData.flags |= NS_MATHML_SPACE_LIKE; |
michael@0 | 28 | } |
michael@0 | 29 | return NS_OK; |
michael@0 | 30 | } |
michael@0 | 31 | |
michael@0 | 32 | NS_IMETHOD |
michael@0 | 33 | InheritAutomaticData(nsIFrame* aParent) MOZ_OVERRIDE; |
michael@0 | 34 | |
michael@0 | 35 | virtual eMathMLFrameType GetMathMLFrameType() MOZ_OVERRIDE; |
michael@0 | 36 | |
michael@0 | 37 | virtual nsresult |
michael@0 | 38 | SetInitialChildList(ChildListID aListID, |
michael@0 | 39 | nsFrameList& aChildList) MOZ_OVERRIDE; |
michael@0 | 40 | |
michael@0 | 41 | virtual nsresult |
michael@0 | 42 | AppendFrames(ChildListID aListID, |
michael@0 | 43 | nsFrameList& aChildList) MOZ_OVERRIDE; |
michael@0 | 44 | |
michael@0 | 45 | virtual nsresult |
michael@0 | 46 | InsertFrames(ChildListID aListID, |
michael@0 | 47 | nsIFrame* aPrevFrame, |
michael@0 | 48 | nsFrameList& aChildList) MOZ_OVERRIDE; |
michael@0 | 49 | |
michael@0 | 50 | virtual nsresult |
michael@0 | 51 | Reflow(nsPresContext* aPresContext, |
michael@0 | 52 | nsHTMLReflowMetrics& aDesiredSize, |
michael@0 | 53 | const nsHTMLReflowState& aReflowState, |
michael@0 | 54 | nsReflowStatus& aStatus) MOZ_OVERRIDE; |
michael@0 | 55 | |
michael@0 | 56 | virtual nsresult |
michael@0 | 57 | Place(nsRenderingContext& aRenderingContext, |
michael@0 | 58 | bool aPlaceOrigin, |
michael@0 | 59 | nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; |
michael@0 | 60 | |
michael@0 | 61 | protected: |
michael@0 | 62 | nsMathMLTokenFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {} |
michael@0 | 63 | virtual ~nsMathMLTokenFrame(); |
michael@0 | 64 | |
michael@0 | 65 | void MarkTextFramesAsTokenMathML(); |
michael@0 | 66 | }; |
michael@0 | 67 | |
michael@0 | 68 | #endif /* nsMathMLTokentFrame_h___ */ |