2017-10-27 20:33:53 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2013-05-10 16:40:44 +04:00
|
|
|
/* 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:
|
2019-02-15 04:38:04 +03:00
|
|
|
NS_DECL_ABSTRACT_FRAME(nsMathMLSelectedFrame)
|
|
|
|
|
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
|
|
|
|
|
|
|
virtual void SetInitialChildList(ChildListID aListID,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsFrameList& aChildList) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
virtual nsresult ChildListChanged(int32_t aModType) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
2015-03-21 19:28:04 +03:00
|
|
|
const nsDisplayListSet& aLists) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
2015-12-16 00:56:41 +03:00
|
|
|
virtual nsresult Place(DrawTarget* aDrawTarget, bool aPlaceOrigin,
|
2016-07-21 13:36:38 +03:00
|
|
|
ReflowOutput& aDesiredSize) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
2021-01-26 05:47:40 +03:00
|
|
|
SizeComputationResult ComputeSize(
|
|
|
|
gfxContext* aRenderingContext, mozilla::WritingMode aWM,
|
|
|
|
const mozilla::LogicalSize& aCBSize, nscoord aAvailableISize,
|
|
|
|
const mozilla::LogicalSize& aMargin,
|
|
|
|
const mozilla::LogicalSize& aBorderPadding,
|
|
|
|
const mozilla::StyleSizeOverrides& aSizeOverrides,
|
|
|
|
mozilla::ComputeSizeFlags aFlags) override;
|
2015-03-05 07:06:32 +03:00
|
|
|
|
2013-05-10 16:40:44 +04:00
|
|
|
virtual void Reflow(nsPresContext* aPresContext, ReflowOutput& aDesiredSize,
|
2016-07-21 13:36:39 +03:00
|
|
|
const ReflowInput& aReflowInput,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsReflowStatus& aStatus) override;
|
2013-05-10 16:40:44 +04:00
|
|
|
|
|
|
|
protected:
|
2019-02-05 19:45:54 +03:00
|
|
|
nsMathMLSelectedFrame(ComputedStyle* aStyle, nsPresContext* aPresContext,
|
|
|
|
ClassID aID)
|
|
|
|
: nsMathMLContainerFrame(aStyle, aPresContext, aID),
|
2017-05-13 10:29:42 +03:00
|
|
|
mSelectedFrame(nullptr),
|
|
|
|
mInvalidMarkup(false) {}
|
2013-05-10 16:40:44 +04:00
|
|
|
virtual ~nsMathMLSelectedFrame();
|
2017-07-06 15:00:35 +03:00
|
|
|
|
2013-05-10 16:40:44 +04:00
|
|
|
virtual nsIFrame* GetSelectedFrame() = 0;
|
|
|
|
nsIFrame* mSelectedFrame;
|
|
|
|
|
|
|
|
bool mInvalidMarkup;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLSelectedFrame_h___ */
|