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 nsMathMLSelectedFrame_h___ |
michael@0 | 7 | #define nsMathMLSelectedFrame_h___ |
michael@0 | 8 | |
michael@0 | 9 | #include "nsMathMLContainerFrame.h" |
michael@0 | 10 | |
michael@0 | 11 | class nsMathMLSelectedFrame : public nsMathMLContainerFrame { |
michael@0 | 12 | public: |
michael@0 | 13 | virtual void |
michael@0 | 14 | Init(nsIContent* aContent, |
michael@0 | 15 | nsIFrame* aParent, |
michael@0 | 16 | nsIFrame* aPrevInFlow) MOZ_OVERRIDE; |
michael@0 | 17 | |
michael@0 | 18 | NS_IMETHOD |
michael@0 | 19 | TransmitAutomaticData() MOZ_OVERRIDE; |
michael@0 | 20 | |
michael@0 | 21 | virtual nsresult |
michael@0 | 22 | SetInitialChildList(ChildListID aListID, |
michael@0 | 23 | nsFrameList& aChildList) MOZ_OVERRIDE; |
michael@0 | 24 | |
michael@0 | 25 | virtual nsresult |
michael@0 | 26 | ChildListChanged(int32_t aModType) MOZ_OVERRIDE; |
michael@0 | 27 | |
michael@0 | 28 | virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder, |
michael@0 | 29 | const nsRect& aDirtyRect, |
michael@0 | 30 | const nsDisplayListSet& aLists) MOZ_OVERRIDE; |
michael@0 | 31 | |
michael@0 | 32 | virtual nsresult |
michael@0 | 33 | Place(nsRenderingContext& aRenderingContext, |
michael@0 | 34 | bool aPlaceOrigin, |
michael@0 | 35 | nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; |
michael@0 | 36 | |
michael@0 | 37 | virtual nsresult |
michael@0 | 38 | Reflow(nsPresContext* aPresContext, |
michael@0 | 39 | nsHTMLReflowMetrics& aDesiredSize, |
michael@0 | 40 | const nsHTMLReflowState& aReflowState, |
michael@0 | 41 | nsReflowStatus& aStatus) MOZ_OVERRIDE; |
michael@0 | 42 | |
michael@0 | 43 | virtual nsQueryFrame::FrameIID GetFrameId() = 0; |
michael@0 | 44 | |
michael@0 | 45 | protected: |
michael@0 | 46 | nsMathMLSelectedFrame(nsStyleContext* aContext) : |
michael@0 | 47 | nsMathMLContainerFrame(aContext) {} |
michael@0 | 48 | virtual ~nsMathMLSelectedFrame(); |
michael@0 | 49 | |
michael@0 | 50 | virtual nsIFrame* GetSelectedFrame() = 0; |
michael@0 | 51 | nsIFrame* mSelectedFrame; |
michael@0 | 52 | |
michael@0 | 53 | bool mInvalidMarkup; |
michael@0 | 54 | |
michael@0 | 55 | private: |
michael@0 | 56 | void* operator new(size_t, nsIPresShell*) MOZ_MUST_OVERRIDE MOZ_DELETE; |
michael@0 | 57 | }; |
michael@0 | 58 | |
michael@0 | 59 | #endif /* nsMathMLSelectedFrame_h___ */ |