1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsLegendFrame_h___
7 #define nsLegendFrame_h___
9 #include "nsBlockFrame.h"
11 class nsLegendFrame
: public nsBlockFrame
{
13 NS_DECL_QUERYFRAME_TARGET(nsLegendFrame
)
15 NS_DECL_FRAMEARENA_HELPERS
17 nsLegendFrame(nsStyleContext
* aContext
) : nsBlockFrame(aContext
) {}
19 NS_IMETHOD
Reflow(nsPresContext
* aPresContext
,
20 nsHTMLReflowMetrics
& aDesiredSize
,
21 const nsHTMLReflowState
& aReflowState
,
22 nsReflowStatus
& aStatus
);
24 virtual void DestroyFrom(nsIFrame
* aDestructRoot
);
26 virtual nsIAtom
* GetType() const;
29 NS_IMETHOD
GetFrameName(nsAString
& aResult
) const;