2007-06-12 10:10:23 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +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/. */
|
1999-09-21 06:12:01 +04:00
|
|
|
|
|
|
|
#ifndef nsMathMLmunderoverFrame_h___
|
|
|
|
#define nsMathMLmunderoverFrame_h___
|
|
|
|
|
2012-09-14 20:10:08 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-09-21 06:12:01 +04:00
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// <munderover> -- attach an underscript-overscript pair to a base
|
|
|
|
//
|
|
|
|
|
|
|
|
class nsMathMLmunderoverFrame : public nsMathMLContainerFrame {
|
|
|
|
public:
|
2009-09-12 20:49:24 +04:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-27 01:30:36 +04:00
|
|
|
friend nsIFrame* NS_NewMathMLmunderoverFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
1999-12-10 16:02:23 +03:00
|
|
|
|
2008-03-18 07:52:48 +03:00
|
|
|
virtual nsresult
|
2015-12-16 00:56:41 +03:00
|
|
|
Place(DrawTarget* aDrawTarget,
|
2011-09-29 10:19:26 +04:00
|
|
|
bool aPlaceOrigin,
|
2015-03-21 19:28:04 +03:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize) override;
|
1999-12-10 16:02:23 +03:00
|
|
|
|
2002-02-07 07:38:08 +03:00
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
InheritAutomaticData(nsIFrame* aParent) override;
|
2002-02-07 07:38:08 +03:00
|
|
|
|
1999-09-21 06:12:01 +04:00
|
|
|
NS_IMETHOD
|
2015-03-21 19:28:04 +03:00
|
|
|
TransmitAutomaticData() override;
|
1999-09-21 06:12:01 +04:00
|
|
|
|
2002-01-05 04:06:05 +03:00
|
|
|
NS_IMETHOD
|
2012-08-22 19:56:38 +04:00
|
|
|
UpdatePresentationData(uint32_t aFlagsValues,
|
2015-03-21 19:28:04 +03:00
|
|
|
uint32_t aFlagsToUpdate) override;
|
2002-01-05 04:06:05 +03:00
|
|
|
|
2014-02-18 11:47:48 +04:00
|
|
|
virtual nsresult
|
2012-08-22 19:56:38 +04:00
|
|
|
AttributeChanged(int32_t aNameSpaceID,
|
2002-02-07 07:38:08 +03:00
|
|
|
nsIAtom* aAttribute,
|
2015-03-21 19:28:04 +03:00
|
|
|
int32_t aModType) override;
|
2002-02-07 07:38:08 +03:00
|
|
|
|
2014-01-15 18:49:00 +04:00
|
|
|
uint8_t
|
2015-03-21 19:28:04 +03:00
|
|
|
ScriptIncrement(nsIFrame* aFrame) override;
|
2014-01-15 18:49:00 +04:00
|
|
|
|
1999-09-21 06:12:01 +04:00
|
|
|
protected:
|
2014-09-01 07:36:37 +04:00
|
|
|
explicit nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext),
|
|
|
|
mIncrementUnder(false),
|
|
|
|
mIncrementOver(false) {}
|
1999-09-21 06:12:01 +04:00
|
|
|
virtual ~nsMathMLmunderoverFrame();
|
2014-01-15 18:49:00 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool mIncrementUnder;
|
|
|
|
bool mIncrementOver;
|
1999-09-21 06:12:01 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* nsMathMLmunderoverFrame_h___ */
|