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 "nsCOMPtr.h"
|
|
|
|
#include "nsMathMLContainerFrame.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// <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,
|
2003-02-22 00:32:13 +00:00
|
|
|
nsStyleContext* aStyleContext);
|
|
|
|
virtual nsStyleContext*
|
2012-08-22 15:56:38 +00:00
|
|
|
GetAdditionalStyleContext(int32_t aIndex) const;
|
2000-03-28 09:38:24 +00:00
|
|
|
|
1999-09-21 02:12:01 +00:00
|
|
|
NS_IMETHOD
|
2006-03-09 18:55:21 +00:00
|
|
|
Init(nsIContent* aContent,
|
1999-09-21 02:12:01 +00:00
|
|
|
nsIFrame* aParent,
|
|
|
|
nsIFrame* aPrevInFlow);
|
|
|
|
|
|
|
|
NS_IMETHOD
|
2012-09-14 16:10:08 +00:00
|
|
|
TransmitAutomaticData() MOZ_OVERRIDE;
|
1999-09-21 02:12:01 +00:00
|
|
|
|
1999-11-22 12:35:36 +00:00
|
|
|
NS_IMETHOD
|
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
|
|
|
|
2008-03-14 05:02:49 +00:00
|
|
|
virtual nscoord
|
2012-09-14 16:10:08 +00:00
|
|
|
GetIntrinsicWidth(nsRenderingContext* aRenderingContext) MOZ_OVERRIDE;
|
2008-03-14 05:02:49 +00:00
|
|
|
|
2006-01-26 02:29:17 +00:00
|
|
|
NS_IMETHOD BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
2012-09-14 16:10:08 +00:00
|
|
|
const nsDisplayListSet& aLists) MOZ_OVERRIDE;
|
1999-11-22 12:35:36 +00:00
|
|
|
|
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();
|
|
|
|
|
2012-08-09 07:09:40 +00:00
|
|
|
virtual int GetSkipSides() const { return 0; }
|
1999-11-22 12:35:36 +00:00
|
|
|
|
2000-03-28 09:38:24 +00:00
|
|
|
nsMathMLChar mSqrChar;
|
|
|
|
nsRect mBarRect;
|
1999-09-21 02:12:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmrootFrame_h___ */
|