2013-05-10 12:40:44 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef nsMathMLSelectedFrame_h___
|
|
|
|
#define nsMathMLSelectedFrame_h___
|
|
|
|
|
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
class nsMathMLSelectedFrame : public nsMathMLContainerFrame {
|
|
|
|
public:
|
|
|
|
NS_IMETHOD
|
2015-03-21 16:28:04 +00:00
|
|
|
TransmitAutomaticData() override;
|
2013-05-10 12:40:44 +00:00
|
|
|
|
2014-05-28 19:36:58 +00:00
|
|
|
virtual void
|
2013-05-10 12:40:44 +00:00
|
|
|
SetInitialChildList(ChildListID aListID,
|
2015-03-21 16:28:04 +00:00
|
|
|
nsFrameList& aChildList) override;
|
2013-05-10 12:40:44 +00:00
|
|
|
|
|
|
|
virtual nsresult
|
2015-03-21 16:28:04 +00:00
|
|
|
ChildListChanged(int32_t aModType) override;
|
2013-05-10 12:40:44 +00:00
|
|
|
|
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
2015-03-21 16:28:04 +00:00
|
|
|
const nsDisplayListSet& aLists) override;
|
2013-05-10 12:40:44 +00:00
|
|
|
|
|
|
|
virtual nsresult
|
2015-12-15 21:56:41 +00:00
|
|
|
Place(DrawTarget* aDrawTarget,
|
2013-05-10 12:40:44 +00:00
|
|
|
bool aPlaceOrigin,
|
2016-07-21 10:36:38 +00:00
|
|
|
ReflowOutput& aDesiredSize) override;
|
2013-05-10 12:40:44 +00:00
|
|
|
|
2015-03-05 04:06:32 +00:00
|
|
|
virtual mozilla::LogicalSize
|
2017-06-09 19:14:53 +00:00
|
|
|
ComputeSize(gfxContext *aRenderingContext,
|
2015-03-05 04:06:32 +00:00
|
|
|
mozilla::WritingMode aWritingMode,
|
|
|
|
const mozilla::LogicalSize& aCBSize,
|
|
|
|
nscoord aAvailableISize,
|
|
|
|
const mozilla::LogicalSize& aMargin,
|
|
|
|
const mozilla::LogicalSize& aBorder,
|
|
|
|
const mozilla::LogicalSize& aPadding,
|
2015-03-21 16:28:04 +00:00
|
|
|
ComputeSizeFlags aFlags) override;
|
2015-03-05 04:06:32 +00:00
|
|
|
|
2014-05-13 00:47:52 +00:00
|
|
|
virtual void
|
2013-05-10 12:40:44 +00:00
|
|
|
Reflow(nsPresContext* aPresContext,
|
2016-07-21 10:36:38 +00:00
|
|
|
ReflowOutput& aDesiredSize,
|
2016-07-21 10:36:39 +00:00
|
|
|
const ReflowInput& aReflowInput,
|
2015-03-21 16:28:04 +00:00
|
|
|
nsReflowStatus& aStatus) override;
|
2013-05-10 12:40:44 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
virtual nsQueryFrame::FrameIID GetFrameId() override = 0;
|
2013-05-29 03:20:44 +00:00
|
|
|
|
2013-05-10 12:40:44 +00:00
|
|
|
protected:
|
2017-05-26 10:11:11 +00:00
|
|
|
nsMathMLSelectedFrame(nsStyleContext* aContext, ClassID aID) :
|
|
|
|
nsMathMLContainerFrame(aContext, aID),
|
2017-05-13 07:29:42 +00:00
|
|
|
mSelectedFrame(nullptr),
|
|
|
|
mInvalidMarkup(false) {}
|
2013-05-10 12:40:44 +00:00
|
|
|
virtual ~nsMathMLSelectedFrame();
|
2017-07-06 12:00:35 +00:00
|
|
|
|
2013-05-10 12:40:44 +00:00
|
|
|
virtual nsIFrame* GetSelectedFrame() = 0;
|
|
|
|
nsIFrame* mSelectedFrame;
|
|
|
|
|
|
|
|
bool mInvalidMarkup;
|
2017-07-06 12:00:35 +00:00
|
|
|
|
2013-05-29 03:20:44 +00:00
|
|
|
private:
|
2015-01-06 23:35:02 +00:00
|
|
|
void* operator new(size_t, nsIPresShell*) MOZ_MUST_OVERRIDE = delete;
|
2013-05-10 12:40:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLSelectedFrame_h___ */
|