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