2013-05-10 16:40:44 +04: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:
|
|
|
|
virtual void
|
2014-05-25 02:20:40 +04:00
|
|
|
Init(nsIContent* aContent,
|
|
|
|
nsContainerFrame* aParent,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsIFrame* aPrevInFlow) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
TransmitAutomaticData() override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
2014-05-28 23:36:58 +04:00
|
|
|
virtual void
|
2013-05-10 16:40:44 +04:00
|
|
|
SetInitialChildList(ChildListID aListID,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsFrameList& aChildList) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
|
|
|
virtual nsresult
|
2015-03-21 19:28:04 +03:00
|
|
|
ChildListChanged(int32_t aModType) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
2015-03-21 19:28:04 +03:00
|
|
|
const nsDisplayListSet& aLists) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
|
|
|
virtual nsresult
|
|
|
|
Place(nsRenderingContext& aRenderingContext,
|
|
|
|
bool aPlaceOrigin,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
2015-03-05 07:06:32 +03:00
|
|
|
virtual mozilla::LogicalSize
|
|
|
|
ComputeSize(nsRenderingContext *aRenderingContext,
|
|
|
|
mozilla::WritingMode aWritingMode,
|
|
|
|
const mozilla::LogicalSize& aCBSize,
|
|
|
|
nscoord aAvailableISize,
|
|
|
|
const mozilla::LogicalSize& aMargin,
|
|
|
|
const mozilla::LogicalSize& aBorder,
|
|
|
|
const mozilla::LogicalSize& aPadding,
|
2015-03-21 19:28:04 +03:00
|
|
|
ComputeSizeFlags aFlags) override;
|
2015-03-05 07:06:32 +03:00
|
|
|
|
2014-05-13 04:47:52 +04:00
|
|
|
virtual void
|
2013-05-10 16:40:44 +04:00
|
|
|
Reflow(nsPresContext* aPresContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsReflowStatus& aStatus) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual nsQueryFrame::FrameIID GetFrameId() override = 0;
|
2013-05-29 07:20:44 +04:00
|
|
|
|
2013-05-10 16:40:44 +04:00
|
|
|
protected:
|
2014-09-01 07:36:37 +04:00
|
|
|
explicit nsMathMLSelectedFrame(nsStyleContext* aContext) :
|
2013-05-10 16:40:44 +04:00
|
|
|
nsMathMLContainerFrame(aContext) {}
|
|
|
|
virtual ~nsMathMLSelectedFrame();
|
|
|
|
|
|
|
|
virtual nsIFrame* GetSelectedFrame() = 0;
|
|
|
|
nsIFrame* mSelectedFrame;
|
|
|
|
|
|
|
|
bool mInvalidMarkup;
|
2013-05-29 07:20:44 +04:00
|
|
|
|
|
|
|
private:
|
2015-01-07 02:35:02 +03:00
|
|
|
void* operator new(size_t, nsIPresShell*) MOZ_MUST_OVERRIDE = delete;
|
2013-05-10 16:40:44 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLSelectedFrame_h___ */
|