Line data Source code
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 : NS_IMETHOD
14 : TransmitAutomaticData() override;
15 :
16 : virtual void
17 : SetInitialChildList(ChildListID aListID,
18 : nsFrameList& aChildList) override;
19 :
20 : virtual nsresult
21 : ChildListChanged(int32_t aModType) override;
22 :
23 : virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
24 : const nsRect& aDirtyRect,
25 : const nsDisplayListSet& aLists) override;
26 :
27 : virtual nsresult
28 : Place(DrawTarget* aDrawTarget,
29 : bool aPlaceOrigin,
30 : ReflowOutput& aDesiredSize) override;
31 :
32 : virtual mozilla::LogicalSize
33 : ComputeSize(gfxContext *aRenderingContext,
34 : mozilla::WritingMode aWritingMode,
35 : const mozilla::LogicalSize& aCBSize,
36 : nscoord aAvailableISize,
37 : const mozilla::LogicalSize& aMargin,
38 : const mozilla::LogicalSize& aBorder,
39 : const mozilla::LogicalSize& aPadding,
40 : ComputeSizeFlags aFlags) override;
41 :
42 : virtual void
43 : Reflow(nsPresContext* aPresContext,
44 : ReflowOutput& aDesiredSize,
45 : const ReflowInput& aReflowInput,
46 : nsReflowStatus& aStatus) override;
47 :
48 : virtual nsQueryFrame::FrameIID GetFrameId() override = 0;
49 :
50 : protected:
51 0 : nsMathMLSelectedFrame(nsStyleContext* aContext, ClassID aID) :
52 : nsMathMLContainerFrame(aContext, aID),
53 : mSelectedFrame(nullptr),
54 0 : mInvalidMarkup(false) {}
55 : virtual ~nsMathMLSelectedFrame();
56 :
57 : virtual nsIFrame* GetSelectedFrame() = 0;
58 : nsIFrame* mSelectedFrame;
59 :
60 : bool mInvalidMarkup;
61 :
62 : private:
63 : void* operator new(size_t, nsIPresShell*) MOZ_MUST_OVERRIDE = delete;
64 : };
65 :
66 : #endif /* nsMathMLSelectedFrame_h___ */
|