Line data Source code
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/. */
5 :
6 : #ifndef nsLegendFrame_h___
7 : #define nsLegendFrame_h___
8 :
9 : #include "mozilla/Attributes.h"
10 : #include "nsBlockFrame.h"
11 :
12 0 : class nsLegendFrame final : public nsBlockFrame
13 : {
14 : public:
15 : NS_DECL_QUERYFRAME
16 0 : NS_DECL_FRAMEARENA_HELPERS(nsLegendFrame)
17 :
18 0 : explicit nsLegendFrame(nsStyleContext* aContext)
19 0 : : nsBlockFrame(aContext, kClassID)
20 0 : {}
21 :
22 : virtual void Reflow(nsPresContext* aPresContext,
23 : ReflowOutput& aDesiredSize,
24 : const ReflowInput& aReflowInput,
25 : nsReflowStatus& aStatus) override;
26 :
27 : virtual void DestroyFrom(nsIFrame* aDestructRoot) override;
28 :
29 : #ifdef DEBUG_FRAME_DUMP
30 : virtual nsresult GetFrameName(nsAString& aResult) const override;
31 : #endif
32 :
33 : int32_t GetLogicalAlign(mozilla::WritingMode aCBWM);
34 : };
35 :
36 :
37 : #endif // guard
|