2007-06-11 23:10:23 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 12:12:37 +01: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 09:10:08 -07: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 17:49:24 +01: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 11:56:38 -04:00
|
|
|
SetAdditionalStyleContext(int32_t aIndex,
|
2013-05-14 09:33:23 -07:00
|
|
|
nsStyleContext* aStyleContext) MOZ_OVERRIDE;
|
2003-02-22 00:32:13 +00:00
|
|
|
virtual nsStyleContext*
|
2013-05-14 09:33:23 -07:00
|
|
|
GetAdditionalStyleContext(int32_t aIndex) const MOZ_OVERRIDE;
|
2000-03-28 09:38:24 +00:00
|
|
|
|
2013-03-19 21:47:48 -04: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-19 21:47:48 -04:00
|
|
|
nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
|
1999-09-21 02:12:01 +00:00
|
|
|
|
|
|
|
NS_IMETHOD
|
2012-09-14 09:10:08 -07: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 09:10:08 -07:00
|
|
|
nsReflowStatus& aStatus) MOZ_OVERRIDE;
|
1999-11-22 12:35:36 +00:00
|
|
|
|
2008-03-13 22:02:49 -07:00
|
|
|
virtual nscoord
|
2012-09-14 09:10:08 -07:00
|
|
|
GetIntrinsicWidth(nsRenderingContext* aRenderingContext) MOZ_OVERRIDE;
|
2008-03-13 22:02:49 -07:00
|
|
|
|
2013-02-15 00:12:27 +13:00
|
|
|
virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|
|
|
const nsRect& aDirtyRect,
|
|
|
|
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();
|
|
|
|
|
2000-03-28 09:38:24 +00:00
|
|
|
nsMathMLChar mSqrChar;
|
|
|
|
nsRect mBarRect;
|
1999-09-21 02:12:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsMathMLmrootFrame_h___ */
|