/src/mozilla-central/layout/forms/nsLegendFrame.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #ifndef nsLegendFrame_h___ |
8 | | #define nsLegendFrame_h___ |
9 | | |
10 | | #include "mozilla/Attributes.h" |
11 | | #include "nsBlockFrame.h" |
12 | | |
13 | | class nsLegendFrame final : public nsBlockFrame |
14 | | { |
15 | | public: |
16 | | NS_DECL_QUERYFRAME |
17 | | NS_DECL_FRAMEARENA_HELPERS(nsLegendFrame) |
18 | | |
19 | | explicit nsLegendFrame(ComputedStyle* aStyle) |
20 | | : nsBlockFrame(aStyle, kClassID) |
21 | 0 | {} |
22 | | |
23 | | virtual void Reflow(nsPresContext* aPresContext, |
24 | | ReflowOutput& aDesiredSize, |
25 | | const ReflowInput& aReflowInput, |
26 | | nsReflowStatus& aStatus) override; |
27 | | |
28 | | virtual void DestroyFrom(nsIFrame* aDestructRoot, PostDestroyData& aPostDestroyData) override; |
29 | | |
30 | | #ifdef DEBUG_FRAME_DUMP |
31 | | virtual nsresult GetFrameName(nsAString& aResult) const override; |
32 | | #endif |
33 | | |
34 | | int32_t GetLogicalAlign(mozilla::WritingMode aCBWM); |
35 | | }; |
36 | | |
37 | | |
38 | | #endif // guard |