2007-06-12 06:10:23 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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 02:12:01 +00:00
|
|
|
|
|
|
|
#ifndef nsMathMLmrootFrame_h___
|
|
|
|
#define nsMathMLmrootFrame_h___
|
|
|
|
|
2012-09-14 16:10:08 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
1999-09-21 02:12:01 +00:00
|
|
|
#include "nsMathMLContainerFrame.h"
|
2013-08-30 21:37:12 +00:00
|
|
|
#include "nsMathMLChar.h"
|
1999-09-21 02:12:01 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// <msqrt> and <mroot> -- form a radical
|
|
|
|
//
|
|
|
|
|
|
|
|
class nsMathMLmrootFrame : public nsMathMLContainerFrame {
|
|
|
|
public:
|
2009-09-12 16:49:24 +00:00
|
|
|
NS_DECL_FRAMEARENA_HELPERS
|
|
|
|
|
2006-03-26 21:30:36 +00:00
|
|
|
friend nsIFrame* NS_NewMathMLmrootFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
|
2000-03-28 09:38:24 +00:00
|
|
|
|
2003-02-22 00:32:13 +00:00
|
|
|
virtual void
|
2012-08-22 15:56:38 +00:00
|
|
|
SetAdditionalStyleContext(int32_t aIndex,
|
2013-05-14 16:33:23 +00:00
|
|
|
nsStyleContext* aStyleContext) MOZ_OVERRIDE;
|
2003-02-22 00:32:13 +00:00
|
|
|
virtual nsStyleContext*
|
2013-05-14 16:33:23 +00:00
|
|
|
GetAdditionalStyleContext(int32_t aIndex) const MOZ_OVERRIDE;
|
2000-03-28 09:38:24 +00:00
|
|
|
|
2013-03-20 01:47:48 +00:00
|
|
|
virtual void
|
2006-03-09 18:55:21 +00:00
|
|
|
Init(nsIContent* aContent,
|
1999-09-21 02:12:01 +00:00
|
|
|
nsIFrame* aParent,
|
2013-03-20 01:47:48 +00:00
|
|
|
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
1999-09-21 02:12:01 +00:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2012-09-14 16:10:08 +00:00
|
|
|
TransmitAutomaticData() MOZ_OVERRIDE;
|
1999-09-21 02:12:01 +00:00
|
|
|
|
2014-02-18 07:47:48 +00:00
|
|
|
virtual nsresult
|
2004-07-31 23:15:21 +00:00
|
|
|
Reflow(nsPresContext* aPresContext,
|
1999-11-22 12:35:36 +00:00
|
|
|
nsHTMLReflowMetrics& aDesiredSize,
|
|
|
|
const nsHTMLReflowState& aReflowState,
|
2012-09-14 16:10:08 +00:00
|
|
|
nsReflowStatus& aStatus) MOZ_OVERRIDE;
|
1999-11-22 12:35:36 +00:00
|
|
|
|
2013-11-25 14:20:20 +00:00
|
|
|
virtual void
|
|
|
|
GetIntrinsicWidthMetrics(nsRenderingContext* aRenderingContext,
|
|
|
|
nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
|
2008-03-14 05:02:49 +00:00
|
|
|
|
2013-02-14 11:12:27 +00:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
1999-11-22 12:35:36 +00:00
|
|
|
|
2014-01-15 14:49:00 +00:00
|
|
|
uint8_t
|
|
|
|
ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE
|
|
|
|
{
|
|
|
|
return (aFrame && aFrame == mFrames.LastChild()) ? 2 : 0;
|
|
|
|
}
|
|
|
|
|
1999-09-21 02:12:01 +00:00
|
|
|
protected:
|
2006-03-26 21:30:36 +00:00
|
|
|
nsMathMLmrootFrame(nsStyleContext* aContext);
|
1999-09-21 02:12:01 +00:00
|
|
|
virtual ~nsMathMLmrootFrame();
|
|
|
|
|
2000-03-28 09:38:24 +00:00
|
|
|
nsMathMLChar mSqrChar;
|
|
|
|
nsRect mBarRect;
|
1999-09-21 02:12:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmrootFrame_h___ */
|