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